[zeromq-dev] Compile Error of v2.0.6beta on RHEL5.4

Martin Lucina mato at kotelna.sk
Thu May 13 15:15:23 CEST 2010


bady.yu at gmail.com said:
> I downloaded v2.0.6 beta src codes and build it on my Redhat Enterprise 5.4
> system. 
> I configured it by "./configure --with-pgm --with-pic" and then make it.  But
> it seems error happen at the last step. 
> I noticed there was an similar thread at: http://lists.zeromq.org/pipermail/
> zeromq-dev/2010-January/001682.html.  But we did not install intel icc/icpc.

The latter portion of that thread is relevant.

> The error output is:
> [snip]
> /usr/bin/ld: .libs/libzmq_la-txwi.o: relocation R_X86_64_PC32 against
> `pgm_rs_create' can not be used when making a shared object; recompile with
> -fPIC
> /usr/bin/ld: final link failed: Bad value

This is a Redhat GCC bug that gets triggered by the use of G_GNUC_INTERNAL
to define symbol visibility. However, I have no idea why it's complaining
about about pgm_rs_create() which does not appear to be defined in this
way. Maybe Steven has some idea?

As a workaround you can compile with --disable-shared, or try a different
GCC version if one is available for your distribution.


More information about the zeromq-dev mailing list