Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 312895 - net-analyzer/tcpdump-4.1.0-r1 fails to build
Summary: net-analyzer/tcpdump-4.1.0-r1 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-02 22:55 UTC by Davide Pesavento
Modified: 2010-04-04 07:30 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,42.71 KB, text/plain)
2010-04-02 22:58 UTC, Davide Pesavento (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Davide Pesavento (RETIRED) gentoo-dev 2010-04-02 22:55:11 UTC
x86_64-pc-linux-gnu-gcc -O2 -march=core2 -ggdb -pipe -DHAVE_CONFIG_H  -I/usr/include  -I/usr/include -I./missing  -D_U_="__attribute__((unused))" -I. -I/usr/include  -I/usr/include -I./missing -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o tcpdump addrtoname.o af.o checksum.o cpack.o gmpls.o oui.o gmt2local.o ipproto.o nlpid.o l2vpn.o machdep.o parsenfsfh.o print-802_11.o print-ap1394.o print-ah.o print-arcnet.o print-aodv.o print-arp.o print-ascii.o print-atalk.o print-atm.o print-beep.o print-bfd.o print-bgp.o print-bootp.o print-bt.o print-cdp.o print-cfm.o print-chdlc.o print-cip.o print-cnfp.o print-dccp.o print-decnet.o print-domain.o print-dtp.o print-dvmrp.o print-enc.o print-egp.o print-eap.o print-eigrp.o print-esp.o print-ether.o print-fddi.o print-fr.o print-gre.o print-hsrp.o print-icmp.o print-igmp.o print-igrp.o print-ip.o print-ipcomp.o print-ipfc.o print-ipnet.o print-ipx.o print-isoclns.o print-juniper.o print-krb.o print-l2tp.o print-lane.o print-ldp.o print-lldp.o print-llc.o print-lmp.o print-lspping.o print-lwapp.o print-lwres.o print-mobile.o print-mpcp.o print-mpls.o print-msdp.o print-nfs.o print-ntp.o print-null.o print-olsr.o print-ospf.o print-pgm.o print-pim.o print-ppp.o print-pppoe.o print-pptp.o print-radius.o print-raw.o print-rip.o print-rrcp.o print-rsvp.o print-rx.o print-sctp.o print-sflow.o print-sip.o print-sl.o print-sll.o print-slow.o print-snmp.o print-stp.o print-sunatm.o print-sunrpc.o print-symantec.o print-syslog.o print-tcp.o print-telnet.o print-tftp.o print-timed.o print-token.o print-udld.o print-udp.o print-usb.o print-vjc.o print-vqp.o print-vrrp.o print-vtp.o print-forces.o print-wb.o print-zephyr.o signature.o setsignal.o tcpdump.o util.o version.o print-ip6.o print-ip6opts.o print-mobility.o print-ripng.o print-icmp6.o print-frag6.o print-rt6.o print-ospf6.o print-dhcp6.o strlcat.o strlcpy.o datalinks.o dlnames.o pcap_dump_ftell.o print-isakmp.o -lcrypto -L/usr/lib64 -Wl,-rpath,/usr/lib64 -lpcap 
/usr/lib64/libpcap.a(pcap.o): In function `pcap_datalink_name_to_val':
(.text+0x140): multiple definition of `pcap_datalink_name_to_val'
dlnames.o:/var/tmp/portage/net-analyzer/tcpdump-4.1.0-r1/work/tcpdump-4.1/./missing/dlnames.c:141: first defined here
/usr/lib64/libpcap.a(pcap.o): In function `pcap_datalink_val_to_name':
(.text+0x1b0): multiple definition of `pcap_datalink_val_to_name'
dlnames.o:/var/tmp/portage/net-analyzer/tcpdump-4.1.0-r1/work/tcpdump-4.1/./missing/dlnames.c:157: first defined here
/usr/lib64/libpcap.a(pcap.o): In function `pcap_datalink_val_to_description':
(.text+0x200): multiple definition of `pcap_datalink_val_to_description'
dlnames.o:/var/tmp/portage/net-analyzer/tcpdump-4.1.0-r1/work/tcpdump-4.1/./missing/dlnames.c:170: first defined here
/usr/lib64/libpcap.a(pcap.o): In function `pcap_list_datalinks':
(.text+0xcb0): multiple definition of `pcap_list_datalinks'
datalinks.o:/var/tmp/portage/net-analyzer/tcpdump-4.1.0-r1/work/tcpdump-4.1/./missing/datalinks.c:56: first defined here
/usr/lib64/libpcap.a(sf-pcap.o): In function `pcap_dump_ftell':
(.text+0x40): multiple definition of `pcap_dump_ftell'
pcap_dump_ftell.o:/var/tmp/portage/net-analyzer/tcpdump-4.1.0-r1/work/tcpdump-4.1/./pcap_dump_ftell.c:35: first defined here
/usr/lib64/libpcap.a(pcap-linux.o): In function `nl80211_init':
(.text+0x67d): undefined reference to `nl_handle_alloc'
/usr/lib64/libpcap.a(pcap-linux.o): In function `nl80211_init':
(.text+0x691): undefined reference to `genl_connect'
/usr/lib64/libpcap.a(pcap-linux.o): In function `nl80211_init':
(.text+0x69d): undefined reference to `genl_ctrl_alloc_cache'
/usr/lib64/libpcap.a(pcap-linux.o): In function `nl80211_init':
(.text+0x6b9): undefined reference to `genl_ctrl_search_by_name'
/usr/lib64/libpcap.a(pcap-linux.o): In function `nl80211_init':
(.text+0x70d): undefined reference to `nl_handle_destroy'
/usr/lib64/libpcap.a(pcap-linux.o): In function `nl80211_init':
(.text+0x79d): undefined reference to `nl_cache_free'
/usr/lib64/libpcap.a(pcap-linux.o): In function `nl80211_cleanup':
(.text+0x7b9): undefined reference to `genl_family_put'
/usr/lib64/libpcap.a(pcap-linux.o): In function `nl80211_cleanup':
(.text+0x7c2): undefined reference to `nl_cache_free'
/usr/lib64/libpcap.a(pcap-linux.o): In function `del_mon_if':
(.text+0x213e): undefined reference to `nlmsg_alloc'
/usr/lib64/libpcap.a(pcap-linux.o): In function `del_mon_if':
(.text+0x2154): undefined reference to `genl_family_get_id'
/usr/lib64/libpcap.a(pcap-linux.o): In function `del_mon_if':
(.text+0x2177): undefined reference to `genlmsg_put'
/usr/lib64/libpcap.a(pcap-linux.o): In function `del_mon_if':
(.text+0x2192): undefined reference to `nla_put'
/usr/lib64/libpcap.a(pcap-linux.o): In function `del_mon_if':
(.text+0x21a6): undefined reference to `nl_send_auto_complete'
/usr/lib64/libpcap.a(pcap-linux.o): In function `del_mon_if':
(.text+0x21b7): undefined reference to `nl_wait_for_ack'
/usr/lib64/libpcap.a(pcap-linux.o): In function `del_mon_if':
(.text+0x2203): undefined reference to `nlmsg_free'
/usr/lib64/libpcap.a(pcap-linux.o): In function `del_mon_if':
(.text+0x2241): undefined reference to `nlmsg_free'
/usr/lib64/libpcap.a(pcap-linux.o): In function `del_mon_if':
(.text+0x2254): undefined reference to `nlmsg_free'
/usr/lib64/libpcap.a(pcap-linux.o): In function `del_mon_if':
(.text+0x22ae): undefined reference to `nlmsg_free'
/usr/lib64/libpcap.a(pcap-linux.o): In function `enter_rfmon_mode_mac80211':
(.text+0x2cd7): undefined reference to `nlmsg_alloc'
/usr/lib64/libpcap.a(pcap-linux.o): In function `enter_rfmon_mode_mac80211':
(.text+0x2cf0): undefined reference to `genl_family_get_id'
/usr/lib64/libpcap.a(pcap-linux.o): In function `enter_rfmon_mode_mac80211':
(.text+0x2d13): undefined reference to `genlmsg_put'
/usr/lib64/libpcap.a(pcap-linux.o): In function `enter_rfmon_mode_mac80211':
(.text+0x2d31): undefined reference to `nla_put'
/usr/lib64/libpcap.a(pcap-linux.o): In function `enter_rfmon_mode_mac80211':
(.text+0x2d83): undefined reference to `nla_put'
/usr/lib64/libpcap.a(pcap-linux.o): In function `enter_rfmon_mode_mac80211':
(.text+0x2dad): undefined reference to `nla_put'
/usr/lib64/libpcap.a(pcap-linux.o): In function `enter_rfmon_mode_mac80211':
(.text+0x2dc5): undefined reference to `nl_send_auto_complete'
/usr/lib64/libpcap.a(pcap-linux.o): In function `enter_rfmon_mode_mac80211':
(.text+0x2dd6): undefined reference to `nl_wait_for_ack'
/usr/lib64/libpcap.a(pcap-linux.o): In function `enter_rfmon_mode_mac80211':
(.text+0x2df2): undefined reference to `nlmsg_free'
/usr/lib64/libpcap.a(pcap-linux.o): In function `enter_rfmon_mode_mac80211':
(.text+0x2e82): undefined reference to `nlmsg_free'
/usr/lib64/libpcap.a(pcap-linux.o): In function `enter_rfmon_mode_mac80211':
(.text+0x2eb4): undefined reference to `nlmsg_free'
/usr/lib64/libpcap.a(pcap-linux.o): In function `enter_rfmon_mode_mac80211':
(.text+0x2fb7): undefined reference to `nlmsg_free'
/usr/lib64/libpcap.a(pcap-linux.o): In function `nl80211_cleanup':
(.text+0x7cb): undefined reference to `nl_handle_destroy'
collect2: ld returned 1 exit status
make: *** [tcpdump] Error 1
 * ERROR: net-analyzer/tcpdump-4.1.0-r1 failed:
 *   make failed
 * 
 * Call stack:
 *     ebuild.sh, line  48:  Called src_compile
 *   environment, line 3519:  Called die
 * The specific snippet of code:
 *       make CCOPT="$CFLAGS" || die "make failed"
 * 
 * If you need support, post the output of 'emerge --info =net-analyzer/tcpdump-4.1.0-r1',
 * the complete build log and the output of 'emerge -pqv =net-analyzer/tcpdump-4.1.0-r1'.
 * The complete build log is located at '/var/tmp/portage/net-analyzer/tcpdump-4.1.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/tcpdump-4.1.0-r1/temp/environment'.
 * S: '/var/tmp/portage/net-analyzer/tcpdump-4.1.0-r1/work/tcpdump-4.1'


# emerge -pvq libpcap tcpdump
[ebuild   R   ] net-libs/libpcap-1.1.0  USE="bluetooth ipv6 libnl" 
[ebuild     U ] net-analyzer/tcpdump-4.1.0-r1 [4.0.1_pre20090709] USE="chroot ipv6 ssl suid%* -samba -smi -test"
Comment 1 Davide Pesavento (RETIRED) gentoo-dev 2010-04-02 22:57:24 UTC
emerge --info:

Portage 2.2_rc67 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.3, glibc-2.11-r1, 2.6.34-rc1-git9 x86_64)
=================================================================
System uname: Linux-2.6.34-rc1-git9-x86_64-Intel-R-_Core-TM-2_CPU_T7600_@_2.33GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 02 Apr 2010 20:45:02 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p2-r1
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -ggdb -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -ggdb -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="it"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS=""
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--human-readable --prune-empty-dirs"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/underlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avahi bash-completion bluetooth branding bzip2 cairo caps cdda cddb cdr cli consolekit cracklib crypt curl cxx dbus djvu dri dts dv dvd dvdr emacs emboss encode exif expat fam ffmpeg fftw flac fontconfig ftp gd gdbm gif gmp gnutls gpm graphviz hal iconv idn ipod ipv6 java5 java6 jingle jpeg jpeg2k kde kpathsea lame latex lcms ldap libsamplerate lm_sensors lua lzma lzo mad matroska mikmod mmap mmx mng modules mozilla mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz ncurses networkmanager nls nptl nptlonly offensive ogg opengl openmp pam pango pch pcre pdf png policykit ppds pppd pulseaudio qt3support qt4 quicktime readline reflection rss sasl sdl session slang sndfile speex spell spl sqlite sqlite3 sse sse2 ssl startup-notification svg sysfs syslog taglib tcpd theora threads tiff truetype unicode usb v4l2 vcd vorbis wifi x264 xattr xcb xcomposite xft xine xinerama xml xorg xpm xscreensaver xulrunner xv xvid zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2010-04-02 22:58:08 UTC
Created attachment 226323 [details]
build.log
Comment 3 Thomas Kahle (RETIRED) gentoo-dev 2010-04-03 18:23:09 UTC
Can't reproduce this on a mostly stable x86-system. Maybe amd64-related?
Comment 4 Roby 2010-04-04 03:50:56 UTC
Got this bug as well. AMD64. Maybe related to libpcap upgrade?
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2010-04-04 07:30:48 UTC
Thank you for report. Fixed in libpcap-1.1.0-r1.

+*libpcap-1.1.0-r1 (04 Apr 2010)
+
+  04 Apr 2010; Peter Volkov <pva@gentoo.org> -libpcap-1.1.0.ebuild,
+  +libpcap-1.1.0-r1.ebuild:
+  Don't install broken .so symlinks (this forced linkage with libpcap.a),
+  bug #312895, thank Davide Pesavento for report.