Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247282 - net-analyzer/hping-3_pre20051105 - ld: cannot find -ltcllibz1.2.3
Summary: net-analyzer/hping-3_pre20051105 - ld: cannot find -ltcllibz1.2.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
: 276567 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-11-17 22:41 UTC by Willard Dawson
Modified: 2009-12-24 03:25 UTC (History)
3 users (show)

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


Attachments
Build log (build.log,9.40 KB, text/plain)
2009-12-23 11:36 UTC, Willard Dawson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Willard Dawson 2008-11-17 22:41:09 UTC
Upgraded libpcap with `emerge --update world` to 1.0.0-r1. Followed that with `emerge @preserved-rebuild`.  That failed on updating hping.


Reproducible: Always

Steps to Reproduce:
1.Update libpcap to 1.0.0-r1
2.emerge @preserved-rebuild
3.emerge failure on hping

Actual Results:  
blah...

...

===> Found Tclsh in: /usr/bin/tclsh8.4                                          
--------------------------------------                                          
system type: LINUX                                                              

LIBPCAP      : PCAP=-lpcap
PCAP_INCLUDE :            
MANPATH      : /usr/local/man
USE_TCL      : -DUSE_TCL     
TCL_VER      : 8.4           
TCL_INC      :               
LIBTCL       : -ltcllibz1.2.3 -lm -lpthread
TCLSH        : /usr/bin/tclsh8.4           

...


i686-pc-linux-gnu-gcc -o hping3 -march=i686 -O2 -pipe -ggdb -Wall   -DUSE_TCL  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/local/lib -lpcap  -ltcllibz1.2.3 -lm -lpthread    
/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ltcllibz1.2.3                                                           
collect2: ld returned 1 exit status                                             
make: *** [hping3] Error 1


Expected Results:  
Successful install.

Interesting, the error complains that ld cannot find -ltcllibz1.2.3, but a casual search of the filesystem turns up the file /usr/lib/libzlibtcl1.2.3.so.  Perhaps there's a typo in the LIBTCL spec.  Should it be -lzlibtcl1.2.3 rather than -ltcllibz1.2.3?

# emerge --info                                                     
WARNING: repository at /usr/portage is missing a repo_name entry                
Portage 2.2_rc14 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r8 i686)                                                   
=================================================================               
System uname: Linux-2.6.25-gentoo-r8-i686-Intel-R-_Pentium-R-_M_processor_2.00GHz-with-glibc2.0                                                                 
Timestamp of tree: Mon, 17 Nov 2008 21:09:01 +0000                              
app-shells/bash:     3.2_p39                                                    
dev-java/java-config: 1.3.7, 2.1.6-r1                                           
dev-lang/python:     2.4.4-r15, 2.5.2-r8                                        
dev-python/pycrypto: 2.0.1-r6                                                   
dev-util/cmake:      2.6.2                                                      
sys-apps/baselayout: 2.0.0                                                      
sys-apps/openrc:     0.3.0-r1                                                   
sys-apps/sandbox:    1.2.18.1-r3                                                
sys-devel/autoconf:  2.13, 2.63                                                 
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1               
sys-devel/binutils:  2.19                                                       
sys-devel/gcc-config: 1.4.0-r4                                                  
sys-devel/libtool:   2.2.6a                                                     
virtual/os-headers:  2.6.27-r2                                                  
ACCEPT_KEYWORDS="x86 ~x86"                                                      
CBUILD="i686-pc-linux-gnu"                                                      
CFLAGS="-march=i686 -O2 -pipe -ggdb"                                            
CHOST="i686-pc-linux-gnu"                                                       
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /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/terminfo /etc/udev/rules.d"                                              
CXXFLAGS="-march=i686 -O2 -pipe -ggdb"                                          
DISTDIR="/usr/portage/distfiles"                                                
FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                                
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                                                           
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
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 arts ati audiofile avahi avi bash-completion berkdb bitmap-fonts bluetooth branding bzip2 cairo caps cardbus cdr cli cracklib crypt ctype cups dba dbtool dbus digitalradio diskio djvu dri dts dvd dvdr dvdread eds emboss encode esd ethereal evo exif expat fam fastbuild ffmpeg fftw fglrx firefox foomaticdb force-cgi-redirect fortran ftp fuse gamin gd gdbm gif glib glitz glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile hal iconv idn imlib ipv6 isdnlog ithreads jack java jpeg kde kerberos kqemu lcms ldap libclamav libg++ libnotify libwww lirc live lm_sensors lua mad madwifi matroska mdnsresponder-compat memlimit mhash midi mikmod mmx mmxext mng mono motif mozilla mp3 mpeg mudflap mysql ncurses netboot netjack networking nforce2 nls nptl nptlonly nvidia ocaml ogg oggvorbis opengl openmp oss pam pango pch pcmcia pcre pdf pdflib pear perl php pmu png portaudio posix ppds pppd pulseaudio python qt qt3 qt3support qt4 qtmt quicktime readline reflection ruby samba sasl sdl session simplexml slang sndfile snmp soap sockets spell spl sqlite sse sse2 ssl startup-notification svg sysfs tcl tcltk tcpd theora threads threadsafe tiff tk tokenizer truetype truetype-fonts type1-fonts udev unicode usb utempter vorbis wifi win32codecs x86 xanim xinerama xml xmlrpc xorg xscreensaver xsl xulrunnerxv 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="adpcmalaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspalfloat 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" USERLAND="GNU" VIDEO_CARDS="radeon ati fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Willard Dawson 2009-01-21 15:30:25 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.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2009-11-01 22:56:25 UTC
It's not fixed. The workaround may be valid but the problem remains.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2009-11-01 22:56:41 UTC
*** Bug 276567 has been marked as a duplicate of this bug. ***
Comment 4 Willard Dawson 2009-12-23 11:35:38 UTC
(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

Comment 5 Willard Dawson 2009-12-23 11:36:30 UTC
Created attachment 213912 [details]
Build log
Comment 6 Willard Dawson 2009-12-23 11:58:07 UTC
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.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2009-12-23 14:15:56 UTC
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).
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2009-12-23 14:21:31 UTC
(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.
Comment 9 Willard Dawson 2009-12-24 03:01:43 UTC
(In reply to comment #7)
> Please test and verify the fix. (tcltk@g.o should handle that in bug #298113).

Works for me.

Thanks!
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2009-12-24 03:25:19 UTC
Thank you for reporting and testing, and not least your patience. :)