Summary: | net-analyzer/hping-3_pre20051105 - ld: cannot find -ltcllibz1.2.3 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Willard Dawson <willard.dawson> |
Component: | Current packages | Assignee: | Gentoo Netmon project <netmon> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bicatali, jer, tcltk |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Build log |
Description
Willard Dawson
2008-11-17 22:41:09 UTC
No one ever acknowledged this "bug," but it is finally resolved, anyway. I found that /usr/lib/libzlibtcl1.2.3.so was strictly a bogus link, added by what I'll probably never know. Simply removing it allowed hping3 to build normally. It's not fixed. The workaround may be valid but the problem remains. *** Bug 276567 has been marked as a duplicate of this bug. *** (In reply to comment #1) > No one ever acknowledged this "bug," but it is finally resolved, anyway. I > found that /usr/lib/libzlibtcl1.2.3.so was strictly a bogus link, added by what > I'll probably never know. Simply removing it allowed hping3 to build normally. > This one has resurfaced for me again, this time with net-analyzer/hping-3_pre20051105-r1: i686-pc-linux-gnu-gcc -c -march=i686 -O2 -pipe -ggdb -Wall -DUSE_TCL rapd.c i686-pc-linux-gnu-gcc -o hping3 -march=i686 -O2 -pipe -ggdb -Wall -DUSE_TCL -Wl,-O1 main.o getifname.o getlhs.o parseoptions.o datafiller.o datahandler.o gethostname.o binding.o getusec.o opensockraw.o logicmp.o waitpacket.o resolve.o sendip.o sendicmp.o sendudp.o sendtcp.o cksum.o statistics.o usage.o version.o antigetopt.o sockopt.o listen.o sendhcmp.o memstr.o rtt.o relid.o sendip_handler.o libpcap_stuff.o memlockall.o memunlockall.o memlock.o memunlock.o ip_opt_build.o display_ipopt.o sendrawip.o signal.o send.o strlcpy.o arsglue.o random.o scan.o hstring.o script.o interface.o adbuf.o hex.o apdutils.o sbignum.o sbignum-tables.o ars.o apd.o split.o rapd.o -L/usr/lib -lpcap -ltcllibz1.2.3 -lm -lpthread /usr/lib/gcc/i686-pc-linux-gnu/4.4.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ltcllibz1.2.3 collect2: ld returned 1 exit status make: *** [hping3] Error 1 Here's an updated `emerge --info`: # emerge --info Portage 2.1.7.15 (default/linux/x86/10.0, gcc-4.4.2, glibc-2.11-r1, 2.6.30-gentoo-r6 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r6-i686-Intel-R-_Pentium-R-_M_processor_2.00GHz-with-gentoo-2.0.1 Timestamp of tree: Wed, 23 Dec 2009 10:30:01 +0000 app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.10 dev-lang/python: 2.5.4-r3, 2.6.4, 3.1.1-r1 dev-python/pycrypto: 2.1.0 dev-util/cmake: 2.8.0 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.0 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.64 sys-devel/automake: 1.5-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 Nessus-EULA sun-bcla-java-vm" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=i686 -O2 -pipe -ggdb" CHOST="i686-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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=i686 -O2 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" MAKEOPTS="" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acl acpi aiglx alsa apache2 apm ati audiofile avahi avi bash-completion berkdb bitmap-fonts bzip2 cairo caps cardbus cdio cdr cli consolekit cracklib crypt ctype cups cxx dba dbtool dbus digitalradio diskio djvu dri dts dvdread eds emboss encode esd ethereal exif expat fastbuild ffmpeg fftw fglrx foomaticdb force-cgi-redirect fortran ftp fuse gamin gd gdbm gif glib glitz glut gmp gpm gstreamer gtk gtk2 gtkhtml guile hal iconv idn imlib ipv6 ithreads jack java jpeg kde kerberos kqemu lcms ldap libclamav libg++ libwww lirc live lm_sensors lua mad madwifi matroska mdnsresponder-compat memlimit mhash mikmod mmx mmxext mng modules mono motif mozilla mp3 mpeg mudflap mysql ncurses netboot netjack networking nforce2 nls nptl nptlonly nsplugin nvidia ocaml ogg oggvorbis opengl openmp oss pam pango pch pcmcia pcre pdf pdflib pear perl php pmu png policykit portaudio posix pppd pulseaudio python qt qt3support qtmt quicktime readline reflection ruby samba sasl sdl session simplexml slang sndfile snmp soap sockets spell spl sql sqlite sse sse2 ssl svg sysfs tcl tcltk tcpd theora threads threadsafe tiff tk tokenizer truetype truetype-fonts type1-fonts udev unicode utempter vorbis webkit wifi win32codecs x86 xanim xinerama xml xmlrpc xorg xscreensaver xsl xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" FOO2ZJS_DEVICES="hp2600n" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Created attachment 213912 [details]
Build log
So, now I know a bit more about identifying files / packages... # ls -l /usr/lib/libzlibtcl1.2.3.so lrwxrwxrwx 1 root root 25 Aug 22 13:32 /usr/lib/libzlibtcl1.2.3.so -> Img1.3/libzlibtcl1.2.3.so # ls -lL /usr/lib/libzlibtcl1.2.3.so ls: cannot access /usr/lib/libzlibtcl1.2.3.so: No such file or directory # ls -lL /usr/lib/Img1.3 ls: cannot access /usr/lib/Img1.3: No such file or directory # ls -lL /usr/lib/Img1.4/libzlibtcl1.2.3.so -rwxr--r-- 1 root root 9584 Aug 22 13:32 /usr/lib/Img1.4/libzlibtcl1.2.3.so # equery belongs /usr/lib/libzlibtcl1.2.3.so * Searching for /usr/lib/libzlibtcl1.2.3.so ... dev-tcltk/tkimg-1.3.20081202 (/usr/lib/libzlibtcl1.2.3.so -> Img1.3/libzlibtcl1.2.3.so) # equery belongs /usr/lib/Img1.4/libzlibtcl1.2.3.so * Searching for /usr/lib/Img1.4/libzlibtcl1.2.3.so ... dev-tcltk/tkimg-1.3.20081202 (/usr/lib/Img1.4/libzlibtcl1.2.3.so) I unmerged and re-merged dev-tcltk/tkimg. After unmerging, /usr/lib/libzlibtcl1.2.3.so had been deleted. After re-merging, it was recreated as the same bogus link as before. This would appear to rightfully be a bug with dev-tcltk/tkimg vs. net-analyzer/hping. I have added a patch hping-3_pre20051105-libtcl.patch that the -r1 build now applies. I also installed dev-tcltk/tkimg to verify the problem. net-analyzer/hping-3_pre20051105 now fails to build, displaying: LIBTCL : -ltcllibz1.2.3 -lm -lpthread whilst net-analyzer/hping-3_pre20051105-r1 now shows this: LIBTCL : -ltcl8.5 -lm -lpthread because I changed the configure script not to go fishing for filenames and then finding the version (8.5) in this case to suffix to -ltcl, but instead to simply use the TCL_VER variable that it had found earlier. Please test and verify the fix. (tcltk@g.o should handle that in bug #298113). (In reply to comment #7) > (tcltk@g.o should handle that in bug #298113). I meant: tcltk@g.o should handle the dead symlink problem in bug #298113. (In reply to comment #7) > Please test and verify the fix. (tcltk@g.o should handle that in bug #298113). Works for me. Thanks! Thank you for reporting and testing, and not least your patience. :) |