Hello,

I generally dislike doing this, but I'm also having the permissions issue.  
The `make install` command fails for me with the following error:

libtool: install: warning: relinking `libprotoc.la'
libtool: install: (cd /home/pattonmj/make/protobuf-2.6.1/src; /bin/sh 
/home/pattonmj/make/protobuf-2.6.1/libtool  --tag CXX --mode=relink g++ 
-pthread -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 
-g -DNDEBUG -version-info 9:1:0 -export-dynamic -no-undefined -o 
libprotoc.la -rpath /usr/local/lib 
google/protobuf/compiler/code_generator.lo 
google/protobuf/compiler/command_line_interface.lo 
google/protobuf/compiler/plugin.lo google/protobuf/compiler/plugin.pb.lo 
google/protobuf/compiler/subprocess.lo 
google/protobuf/compiler/zip_writer.lo 
google/protobuf/compiler/cpp/cpp_enum.lo 
google/protobuf/compiler/cpp/cpp_enum_field.lo 
google/protobuf/compiler/cpp/cpp_extension.lo 
google/protobuf/compiler/cpp/cpp_field.lo 
google/protobuf/compiler/cpp/cpp_file.lo 
google/protobuf/compiler/cpp/cpp_generator.lo 
google/protobuf/compiler/cpp/cpp_helpers.lo 
google/protobuf/compiler/cpp/cpp_message.lo 
google/protobuf/compiler/cpp/cpp_message_field.lo 
google/protobuf/compiler/cpp/cpp_primitive_field.lo 
google/protobuf/compiler/cpp/cpp_service.lo 
google/protobuf/compiler/cpp/cpp_string_field.lo 
google/protobuf/compiler/java/java_context.lo 
google/protobuf/compiler/java/java_enum.lo 
google/protobuf/compiler/java/java_enum_field.lo 
google/protobuf/compiler/java/java_extension.lo 
google/protobuf/compiler/java/java_field.lo 
google/protobuf/compiler/java/java_file.lo 
google/protobuf/compiler/java/java_generator.lo 
google/protobuf/compiler/java/java_generator_factory.lo 
google/protobuf/compiler/java/java_helpers.lo 
google/protobuf/compiler/java/java_lazy_message_field.lo 
google/protobuf/compiler/java/java_message.lo 
google/protobuf/compiler/java/java_message_field.lo 
google/protobuf/compiler/java/java_name_resolver.lo 
google/protobuf/compiler/java/java_primitive_field.lo 
google/protobuf/compiler/java/java_shared_code_generator.lo 
google/protobuf/compiler/java/java_service.lo 
google/protobuf/compiler/java/java_string_field.lo 
google/protobuf/compiler/java/java_doc_comment.lo 
google/protobuf/compiler/python/python_generator.lo -lpthread 
libprotobuf.la -lz )
mv: cannot move 'libprotoc.so.9.0.1' to 'libprotoc.so.9.0.1U': Permission 
denied
libtool: install: error: relink `libprotoc.la' with the above command 
before installing it
make[3]: *** [install-libLTLIBRARIES] Error 1
make[3]: Leaving directory `/home/pattonmj/make/protobuf-2.6.1/src'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/pattonmj/make/protobuf-2.6.1/src'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/pattonmj/make/protobuf-2.6.1/src'
make: *** [install-recursive] Error 1

The permission problem is strange to me.  I've used sudo to run `make 
install`.  If I su to root, I can rename that file easily, so I'm not sure 
what's happening.  The last message here asks to post the output of `ls -l 
src/.libs/libprotoc*`.  I'll paste mine here in case it helps.  

```
-bash-4.2$ ls -l src/.libs/libprotoc*
-rw-r--r-- 1 pattonmj hpcstaff 38538972 Jul  2 14:14 src/.libs/libprotoc.a
lrwxrwxrwx 1 pattonmj hpcstaff       15 Jul  2 14:14 src/.libs/libprotoc.la 
-> ../libprotoc.la
-rw-r--r-- 1 pattonmj hpcstaff      984 Jul  2 14:14 src/.libs/libprotoc.lai
lrwxrwxrwx 1 pattonmj hpcstaff       18 Jul  2 14:14 src/.libs/libprotoc.so 
-> libprotoc.so.9.0.1
lrwxrwxrwx 1 pattonmj hpcstaff       18 Jul  2 14:14 
src/.libs/libprotoc.so.9 -> libprotoc.so.9.0.1
-rwxr-xr-x 1 pattonmj hpcstaff 13171408 Jul  2 14:14 
src/.libs/libprotoc.so.9.0.1
```

I should point out that I'm trying to install an older version of protobuf 
(2.6.1, if it matters).  

Thank you,

-Marc

On Thursday, January 7, 2010 at 5:37:06 PM UTC-5, mancha wrote:
>
> I get these error during make install. make and make check suceeded
> earlier.
> Can you please advise how to resolve this.
>
> Thanks,
> Madhav.
>
> /usr/bin/ld: /usr/local/lib/libz.a(deflate.o): relocation R_X86_64_32S
> against `.rodata' can not be used when making a shared object;
> recompile with -fPIC
> /usr/local/lib/libz.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> libtool: install: error: relink `libprotoc.la' with the above command
> before installing it
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to