Red Hat Bugzilla – Bug 164808
can't compile (link) ethereal 0.10.11 with gcc-3.4: undefined reference to `.LC770'
Last modified: 2007-11-30 17:07:19 EST
+++ This bug was initially created as a clone of Bug #157308 +++
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910
Description of problem:
I (and several others) are not able to compile (actually link) the current
version of Ethereal (0.10.11) using an up-to-date FC3 system. This was filed as
Ethereal bug #156:
Some analysis by people there has us believing that this is a compiler bug (see
below or the Ethereal bug for more details).
I am putting this as a "High" severity bug since it was originally considered a
"blocker" bug for Ethereal (until it was thought to be a compiler bug with a
workaround). That and compiler bugs scare me. Feel free to downgrade if you
feel it appropriate.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. download the ethereal-0.10.11 source or the FC3 SRPM
2. ./configure --without-ucd-snmp (or ./configure --with-ssl)
(2 & 3 can be replaced with "rpmbuild -ba")
Actual Results: Linking failed with this error:
/bin/sh ./libtool --mode=link --tag=CC gcc -DINET6
-D_U_="__attribute__((unused))" -Wall -W -g -O2 -I/usr/local/include -DXTHREADS
-D_REENTRANT -DXUSE_MTSAFE_API -pthread -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0
-I/usr/lib/glib-2.0/include -L/usr/local/lib -L/usr/local/lib -o mergecap
mergecap.o merge.o wiretap/libwiretap.la -Wl,--export-dynamic -lgmodule-2.0 -ldl
epan/.libs/libethereal.so: undefined reference to `.LC771'
epan/.libs/libethereal.so: undefined reference to `.LC770'
epan/.libs/libethereal.so: undefined reference to `.LC772'
collect2: ld returned 1 exit status
make: *** [ethereal] Error 1
Expected Results: Binary should have been created.
NOTE that if I use "gcc32" (gcc32-3.2.3-6) (by doing "CC=gcc32 ./configure
--without-ucd-snmp") instead of "gcc" Ethereal compiles/links just fine (thus
supporting the hypothesis that this is a 'gcc' problem not an Ethereal problem).
NOTE that someone found another "workaround" for this problem: eliminating
having the same string constant in 2 .o files, see:
NOTE that I experienced the same problem attempting to build the
ethereal-0.10.11 SRPM released by FC3 (I had been hoping someone had patched
something before generating that SRPM but now I think that maybe the machine
used to build the binary RPM isn't at the latest (released) compiler version?).
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.