It looks like you don't have a shared version of libz installed.  As a
result you'll need to compile libprotobuf as a static library only, which
you can do with:
  configure --disable-shared

However, it's odd that the tests worked.  It's also odd that your libz.a is
in /usr/local/lib rather than /usr/lib.  Did you compile your own copy of
libz?  Maybe you should delete it, or recompile it as a shared library.  It
might also help to install libprotobuf to /usr/lib instead:
  configure --prefix=/usr

Although installing to /usr instead of /usr/local can lead to conflicts with
your distro's package management.

On Thu, Jan 7, 2010 at 2:37 PM, mancha <[email protected]> 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 post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<protobuf%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>
>
>
--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.

Reply via email to