Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88870 - net-analyzer/ethereal-0.10.10 fails to build
Summary: net-analyzer/ethereal-0.10.10 fails to build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-12 09:25 UTC by Olivier Castan
Modified: 2005-05-10 05:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Castan 2005-04-12 09:25:57 UTC
>>> Unpacking ethereal-0.10.10.tar.bz2 to /home/portage/tmp/portage/ethereal-0.10.10/work
>>> Source unpacked.
 * econf: updating ethereal-0.10.10/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating ethereal-0.10.10/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --host=powerpc-unknown-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-ssl --disable-ipv6 --without-adns --without-krb5 --without-net-snmp --without-ucd-snmp --enable-dftest --enable-randpkt --sysconfdir=/etc/ethereal --enable-gtk2
[...]
creating mergecap
/bin/sh ./libtool --mode=link powerpc-unknown-linux-gnu-gcc  -D_U_="__attribute__((unused))" -Wall -W  -O -pipe -mcpu=7400 -maltivec -mabi=altivec -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/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -L/usr/local/lib -o tethereal -export-dynamic pcap-util-unix.o capture_stop_conditions.o capture_ui_utils.o cfile.o clopts_common.o conditions.o disabled_protos.o packet-range.o pcap-util.o print.o ps.o ringbuffer.o timestats.o util.o version_info.o tap-ansi_astat.o tap-bootpstat.o tap-dcerpcstat.o tap-gsm_astat.o tap-h225counter.o tap-h225rassrt.o tap-httpstat.o tap-iostat.o tap-iousers.o tap-mgcpstat.o tap-protocolinfo.o tap-protohierstat.o tap-rpcstat.o tap-rpcprogs.o tap-sipstat.o tap-smbsids.o tap-smbstat.o tap-stats_tree.o tap-wspstat.o capture_opts.o tethereal-tap-register.o tethereal.o  wiretap/libwiretap.la epan/libethereal.la -lcrypto "-dlopen" self "-dlopen" plugins/acn/acn.la "-dlopen" plugins/agentx/agentx.la "-dlopen" plugins/artnet/artnet.la "-dlopen" plugins/asn1/asn1.la "-dlopen" plugins/ciscosm/ciscosm.la "-dlopen" plugins/docsis/docsis.la "-dlopen" plugins/enttec/enttec.la "-dlopen" plugins/giop/cosnaming.la "-dlopen" plugins/giop/coseventcomm.la "-dlopen" plugins/gryphon/gryphon.la "-dlopen" plugins/irda/irda.la "-dlopen" plugins/lwres/lwres.la "-dlopen" plugins/megaco/megaco.la "-dlopen" plugins/mgcp/mgcp.la "-dlopen" plugins/opsi/opsi.la "-dlopen" plugins/pcli/pcli.la "-dlopen" plugins/rdm/rdm.la "-dlopen" plugins/rlm/rlm.la "-dlopen" plugins/rtnet/rtnet.la "-dlopen" plugins/rudp/rudp.la "-dlopen" plugins/v5ua/v5ua.la -lpcre -Wl,--export-dynamic -lgmodule-2.0 -ldl -lglib-2.0   -lm -lpcap     -lz
epan/.libs/libethereal.so: undefined reference to `.LC1046'
epan/.libs/libethereal.so: undefined reference to `.LC1045'
collect2: ld returned 1 exit status
make[2]: *** [ethereal] Error 1
make[2]: *** Waiting for unfinished jobs....
rm -f .libs/tethereal.nm .libs/tethereal.nmS .libs/tethereal.nmT
creating .libs/tetherealS.c
(cd .libs && powerpc-unknown-linux-gnu-gcc -c -fno-builtin "tetherealS.c")
rm -f .libs/tetherealS.c .libs/tethereal.nm .libs/tethereal.nmS .libs/tethereal.nmT
powerpc-unknown-linux-gnu-gcc "-D_U_=__attribute__((unused))" -Wall -W -O -pipe
-mcpu=7400 -maltivec -mabi=altivec -I/usr/local/include -DXTHREADS -D_REENTRANT
-DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -o .libs/tethereal pcap-util-unix.o capture_stop_conditions.o capture_ui_utils.o cfile.o clopts_common.o conditions.o disabled_protos.o packet-range.o pcap-util.o print.o ps.o ringbuffer.o timestats.o util.o version_info.o tap-ansi_astat.o tap-bootpstat.o tap-dcerpcstat.o tap-gsm_astat.o tap-h225counter.o tap-h225rassrt.o tap-httpstat.o tap-iostat.o tap-iousers.o tap-mgcpstat.o tap-protocolinfo.o tap-protohierstat.o tap-rpcstat.o tap-rpcprogs.o tap-sipstat.o tap-smbsids.o tap-smbstat.o tap-stats_tree.o tap-wspstat.o capture_opts.o tethereal-tap-register.o tethereal.o .libs/tetherealS.o -Wl,--export-dynamic -Wl,--export-dynamic  -pthread -L/usr/local/lib wiretap/.libs/libwiretap.so epan/.libs/libethereal.so -lcrypto /usr/lib/libpcre.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -lm -lpcap -lzepan/.libs/libethereal.so: undefined reference to `.LC1046'
epan/.libs/libethereal.so: undefined reference to `.LC1045'
collect2: ld returned 1 exit status
make[2]: *** [tethereal] Error 1
make[2]: Leaving directory `/home/portage/tmp/portage/ethereal-0.10.10/work/ethereal-0.10.10'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/portage/tmp/portage/ethereal-0.10.10/work/ethereal-0.10.10'
make: *** [all] Error 2


# ldd -d /home/portage/tmp/portage/ethereal-0.10.10/work/ethereal-0.10.10/epan/.libs/libethereal.so
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x6f20f000)
        libdl.so.2 => /lib/libdl.so.2 (0x6f1ed000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x6f137000)
        libpcre.so.0 => /usr/lib/libpcre.so.0 (0x6f107000)
        libz.so.1 => /usr/lib/libz.so.1 (0x6f0d0000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x6f09c000)
        libc.so.6 => /lib/tls/libc.so.6 (0x6ef54000)
        /lib/ld.so.1 (0x08000000)
undefined symbol: .LC1046       (/home/portage/tmp/portage/ethereal-0.10.10/work/ethereal-0.10.10/epan/.libs/libethereal.so)
undefined symbol: .LC1045       (/home/portage/tmp/portage/ethereal-0.10.10/work/ethereal-0.10.10/epan/.libs/libethereal.so)
undefined symbol: ceil  (/home/portage/tmp/portage/ethereal-0.10.10/work/ethereal-0.10.10/epan/.libs/libethereal.so)
undefined symbol: floor (/home/portage/tmp/portage/ethereal-0.10.10/work/ethereal-0.10.10/epan/.libs/libethereal.so)
undefined symbol: pow   (/home/portage/tmp/portage/ethereal-0.10.10/work/ethereal-0.10.10/epan/.libs/libethereal.so)

Looks like at least -lm is missing when linking libethereal.so

Adding "AC_SEARCH_LIBS(floor, [m])" to configure.in seems to solve the problem

Reproducible: Always
Steps to Reproduce:




Portage 2.0.51.19 (default-linux/ppc/2004.3, gcc-3.4.3-20050110,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 ppc)
=================================================================
System uname: 2.6.11-gentoo-r6 ppc 7455, altivec supported
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 03:22:49)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.5, 1.8.5-r3, 1.6.3, 1.9.5, 1.4_p6
sys-devel/binutils:  2.15.90.0.3-r4
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb
/usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
DISTDIR="/home/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://mir.zyrianes.net/gentoo/
ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X X509 a52 aac aalib alsa altivec async bash-completion berkdb bitmap-fonts
bonobo cdda cddb cdio cdparanoia cdr chroot crypt cups curl dga dillo directfb
divx4linux dlloader dts dv dvd dvdr dvdread edl emboss encode erandom esd exif
faac faad fam fb fbcon ffmpeg fla flac font-server foomaticdb fortran freetype
gd gdbm ggi gif gimpprint gnome gphoto2 gpm graphviz gs gstreamer gtk gtk2
gtkhtml hal hardened imagemagick imlib java javascript jp2 jpeg lcms libcaca
live lzo lzw lzw-tiff mad mailwrapper matroska md5sum mime mjpeg mng motif
mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg mpeg4 mplayer ncurses
network nls nptl ntlm odbc offensive ogg opengl pam pdflib perl pg-hier physfs
pic pie png ppc ppds pthreads python quicktime radeon readline rtc sdl session
sftplogging slang smime speex spell ssl stencil-buffer svg tcltk tcpd tga theora
tiff truetype truetype-fonts type1-fonts unicode usb userlocales utf8 v4l v4l2
vorbis wmf xanim xface xine xml xml2 xmms xosd xpm xprint xv xvid zlib
video_cards_radeon"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Olivier Castan 2005-04-12 10:21:35 UTC
:-( -lm does not seem to be the problem
undefined symbols are located in ethereal-0.10.10/epan/dissectors/.libs/packet-diameter.o but I don't understand where they come from...
Comment 2 Olivier Castan 2005-05-10 00:47:31 UTC
No problem anymore... I don't understand why... binutils has been upgraded to 2.15.92.0.2-r8 in the meantime.
Bug should be closed.
Comment 3 Aaron Walker (RETIRED) gentoo-dev 2005-05-10 05:15:50 UTC
oh goody.  I was worried because I couldn't reproduce this.