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

Yu Bady bady.yu at gmail.com
Fri May 14 05:00:19 CEST 2010


Thanks Martin and Steven for the quick response.

Compile options of "reed_solomon.c" is as follows, which already contains
"-fPIC -DPIC".

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -D_GNU_SOURCE -D_REENTRANT
-D_THREAD_SAFE -I../foreign/openpgm/libpgm-2.0.24/openpgm/pgm/include/
-Wno-variadic-macros -Wno-long-long -pthread -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -pipe -Wall -Wextra -Wfloat-equal -Wshadow
-Wunsafe-loop-optimizations -Wpointer-arith -Wbad-function-cast -Wcast-qual
-Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes
-Wold-style-definition -Wmissing-prototypes -Wmissing-declarations
-Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls
-Wnested-externs -Winline -pedantic -std=gnu99 --param
max-inline-insns-single=600 -D_REENTRANT -D_GNU_SOURCE -D__need_IOV_MAX
-DCONFIG_HAVE_PSELECT -DCONFIG_HAVE_POLL -DCONFIG_HAVE_PPOLL
-DCONFIG_HAVE_EPOLL -DCONFIG_HAVE_CLOCK_GETTIME
-DCONFIG_HAVE_CLOCK_NANOSLEEP -DCONFIG_HAVE_NANOSLEEP -DCONFIG_HAVE_USLEEP
-DCONFIG_HAVE_RTC -DCONFIG_HAVE_TSC -DCONFIG_HAVE_IFR_NETMASK
-DCONFIG_HAVE_GETIFADDRS -DCONFIG_HAVE_GETHOSTBYNAME2
-DCONFIG_HAVE_GETPROTOBYNAME_R -DCONFIG_BIND_INADDR_ANY
-DCONFIG_GALOIS_MUL_LUT -DCONFIG_HAVE_MCAST_JOIN -DCONFIG_HAVE_IP_MREQN
-DCONFIG_HAVE_SPRINTF_GROUPING -DCONFIG_HAVE_HPET
-DPGM_GNUC_INTERNAL=G_GNUC_INTERNAL -DGETTEXT_PACKAGE=\"pgm\"
-DG_LOG_DOMAIN=\"Pgm\" -g -O2 -MT libzmq_la-reed_solomon.lo -MD -MP -MF
.deps/libzmq_la-reed_solomon.Tpo -c
../foreign/openpgm/libpgm-2.0.24/openpgm/pgm/reed_solomon.c  -fPIC -DPIC -o
.libs/libzmq_la-reed_solomon.o


So does it mean it is a GCC regression issue?  My gcc version is :

Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic
--host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)



On Thu, May 13, 2010 at 9:43 PM, Steven McCoy <steven.mccoy at miru.hk> wrote:

> On 13 May 2010 21:15, Martin Lucina <mato at kotelna.sk> wrote:
>
>> 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.
>>
>>
> The reported error doesn't appear about DSO visibility, but aside from the
> previous thread I only ever see DSO restrictions when building on SPARC and
> Sun Studio.  Check the command line being used on reed_solomon.c for PIC, as
> otherwise it's a GCC regression.
>
> --
> Steve-o
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100514/df6d8404/attachment.htm>


More information about the zeromq-dev mailing list