Bug #236
closedlttng-ust compilation fail on RHEL 5.5 (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48))
100%
Description
Hi
I'm getting the following compilation error on RHEL 5.5 (latest git as of 10th May 2012):
make2: Entering directory `/opt/home/tomd/lttgit/lttng-ust/liblttng-ust'
CC lttng-probe-ust.lo
In file included from ../include/lttng/ust-tracepoint-event.h:501,
from ../include/lttng/tracepoint-event.h:41,
from probes/lttng-probe-ust.h:47,
from probes/lttng-probe-ust.c:25:
././probes/lttng-probe-ust.h:27: error: weak declaration of '__ref_loglevel___lttng_ust___metadata' must be public
././probes/lttng-probe-ust.h:27: error: '__ref_loglevel___lttng_ust___metadata' defined both normally and as an alias
make2: * [lttng-probe-ust.lo] Error 1
make2: Leaving directory `/opt/home/tomd/lttgit/lttng-ust/liblttng-ust'
make1: [all-recursive] Error 1
make1: Leaving directory `/opt/home/tomd/lttgit/lttng-ust'
make: ** [all] Error 2
I'm using the following toolchain:
[tomd@lhcfixdev2 lttng-ust]$ gcc v__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
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
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
[tomd@lhcfixdev2 lttng-ust]$ autoconf --version
autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David J. MacKenzie and Akim Demaille.
[tomd@lhcfixdev2 lttng-ust]$ automake --version
automake (GNU automake) 1.12
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Tom Tromey <tromey@redhat.com>
and Alexandre Duret-Lutz <adl@gnu.org>.
[tomd@lhcfixdev2 lttng-ust]$ libtool --version
libtool (GNU libtool) 2.4
Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I have attached my source files for your convenience.
Please let me know if I have missed anything.
Thanks
Tom
Files
Updated by Christian Babeux over 12 years ago
- Status changed from New to Confirmed
Updated by Mathieu Desnoyers about 12 years ago
We should add a weak symbol support test to UST configure. Won't support gcc 4.1, because this compiler version is known to be broken.
Updated by Mathieu Desnoyers over 10 years ago
- Priority changed from Normal to Low
Updated by Christian Babeux about 10 years ago
- Status changed from Confirmed to Resolved
- % Done changed from 0 to 100
Applied in changeset ust|commit:f1d4b8107c7bc613be855c6b0b15c4405e1edbf2.