Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449134 - dev-lang/{tcl,tk}: tkConfig.sh and tclConfig.sh has lines with value of ':/usr/lib' causing reverse deps to not build (like dev-tcltk/expect)
Summary: dev-lang/{tcl,tk}: tkConfig.sh and tclConfig.sh has lines with value of ':/us...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal major (vote)
Assignee: TCL/TK Project
URL:
Whiteboard: See Comment #1
Keywords:
: 447990 449286 449770 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-12-29 05:24 UTC by Guy
Modified: 2013-01-09 16:42 UTC (History)
5 users (show)

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


Attachments
dev-tcltk/expect-5.45 build.log (build.log,56.88 KB, text/plain)
2012-12-29 05:24 UTC, Guy
Details
build.log (file_449134.txt,57.63 KB, text/plain)
2012-12-29 12:02 UTC, Michael Weber (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guy 2012-12-29 05:24:24 UTC
Created attachment 333656 [details]
dev-tcltk/expect-5.45 build.log

dev-tcltk/expect is a requirement for net-misc/nxwserver-freenx-0.7.*

I could get no version of dev-tcltk/expect in the current gentoo portage tree to completion when attempting compilation on several x86 based systems. On the other hand, I have successfully installed dev-tcltk/expect-5.45 on several amd64 based systems.

In all versions, the compilation failed on the missing directory /usr/lib.


snip of 5.43.0 build.log:

rm -f libexpect5.43.a
rm -f libexpect5.43.so
ar cr libexpect5.43.a exp_command.o expect.o pty_termios.o exp_inter.o exp_regexp.o exp_tty.o exp_log.o exp_main_sub.o exp_pty.o exp_trap.o exp_console.o exp_strf.o exp_glob.o exp_win.o exp_clib.o exp_closetcl.o exp_memmove.o exp_tty_comm.o exp_select.o exp_event.o exp_chan.o Dbg.o
i686-pc-linux-gnu-gcc -shared -O2 -march=atom -Wl,-O1 -Wl,--as-needed -fPIC -Wl,-soname,libexpect5.43.so -o libexpect5.43.so shared/exp_command.o shared/expect.o shared/pty_termios.o shared/exp_inter.o shared/exp_regexp.o shared/exp_tty.o shared/exp_log.o shared/exp_main_sub.o shared/exp_pty.o shared/exp_trap.o shared/exp_console.o shared/exp_strf.o shared/exp_glob.o shared/exp_win.o shared/exp_clib.o shared/exp_closetcl.o shared/exp_memmove.o shared/exp_tty_comm.o shared/exp_select.o shared/exp_event.o shared/exp_chan.o shared/Dbg.o :/usr/lib -ltcl8.5 -ldl  -lm -lutil -lc
i686-pc-linux-gnu-gcc: error: :/usr/lib: No such file or directory
make: *** [libexpect5.43.so] Error 1


snip of 5.44.1.15 build.log:

rm -f libexpect5.44.1.15.so
i686-pc-linux-gnu-gcc -pipe -shared -Wl,-O1 -Wl,--as-needed -o libexpect5.44.1.15.so exp_command.o expect.o exp_inter.o exp_regexp.o exp_tty.o exp_log.o exp
_main_sub.o exp_pty.o exp_trap.o exp_strf.o exp_console.o exp_glob.o exp_win.o exp_clib.o exp_closetcl.o exp_memmove.o exp_tty_comm.o exp_chan.o Dbg.o pty_t
ermios.o exp_select.o exp_event.o -ldl  -lutil -lieee -lm -Wl,-rpath,/usr/lib -ltclstub8.5 -ltkstub8.5 
: libexpect5.44.1.15.so
i686-pc-linux-gnu-gcc -pipe -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.44.1.15\" -DPACKAGE_STRING=\"expect\ 5.44.1.15\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DUSE_TCL_STUBS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYSMACROS_H=1 -DHAVE_STROPTS_H=1 -DHAVE_SYS_FCNTL_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_OPENPTY=1 -DHAVE_MEMMOVE=1 -DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 -DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1 -DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=1 -DSELECT_MASK_TYPE=fd_set -DHAVE_PTMX=1 -DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_TERMIO=1 -DHAVE_TERMIOS=1 -DSETPGRP_VOID=1 -DHAVE_SV_TIMEZONE=1 -DHAVE_LONG_FILE_NAMES=1 -DTCL_DEBUGGER -DUSE_NON_CONST -DSCRIPTDIR=\"/usr/lib/expect5.44.1.15\" -DEXECSCRIPTDIR=\"/usr/lib/expect5.44.1.15\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/lib/tcl8.5/include/generic" -I"/usr/lib/tcl8.5/include/unix" -I"/usr/include"    -O2 -march=i686  -Wall -Wno-implicit-int -fPIC -c `echo exp_main_exp.c` -o exp_main_exp.o
i686-pc-linux-gnu-gcc -pipe \
        -O2 -march=i686  -Wall -Wno-implicit-int -fPIC \
         \
        -fPIC \
        -Wl,-O1 -Wl,--as-needed -Wl,--export-dynamic  \
        -o expect exp_main_exp.o \
        -L/var/tmp/portage/dev-tcltk/expect-5.44.1.15/work/expect-5.44.1.15 -lexpect5.44.1.15 \
        -ltcl8.5 \
        -ldl  -lieee -lm \
        :/usr/lib \
        :/usr/lib
i686-pc-linux-gnu-gcc: error: :/usr/lib: No such file or directory
i686-pc-linux-gnu-gcc: error: :/usr/lib: No such file or directory
make: *** [expect] Error 1


snip of 5.45 build.log:

rm -f libexpect5.45.so
i686-pc-linux-gnu-gcc -shared -O2 -march=i686 -pipe -O2 -fomit-frame-pointer -Wall -fPIC  -Wl,-O1 -Wl,--as-needed -Wl,--export-dynamic  -Wl,-O1 -Wl,--as-needed -o libexpect5.45.so exp_command.o expect.o exp_inter.o exp_regexp.o exp_tty.o exp_log.o exp_main_sub.o exp_pty.o exp_trap.o exp_strf.o exp_console.o exp_glob.o exp_win.o exp_clib.o exp_closetcl.o exp_memmove.o exp_tty_comm.o exp_chan.o Dbg.o pty_termios.o exp_select.o exp_event.o -lutil -lieee -lm -Wl,-rpath,/usr/lib -ltclstub8.5 
: libexpect5.45.so
i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45\" -DPACKAGE_STRING=\"expect\ 5.45\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DUSE_TCL_STUBS=1 -DUSE_TCL_STUBS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYSMACROS_H=1 -DHAVE_STROPTS_H=1 -DHAVE_SYS_FCNTL_H=1 -DHAVE_PTY_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_OPENPTY=1 -DHAVE_MEMMOVE=1 -DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 -DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1 -DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=1 -DSELECT_MASK_TYPE=fd_set -DHAVE_PTMX=1 -DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_TERMIO=1 -DHAVE_TERMIOS=1 -DSETPGRP_VOID=1 -DHAVE_SV_TIMEZONE=1 -DHAVE_LONG_FILE_NAMES=1 -DTCL_DEBUGGER -DUSE_NON_CONST -DSCRIPTDIR=\"/usr/lib/expect5.45\" -DEXECSCRIPTDIR=\"/usr/lib/expect5.45\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/lib/tcl8.5/include/generic" -I"/usr/lib/tcl8.5/include/unix"    -O2 -march=i686 -pipe -O2 -fomit-frame-pointer -Wall -fPIC  -c `echo exp_main_exp.c` -o exp_main_exp.o
i686-pc-linux-gnu-gcc \
        -O2 -march=i686 -pipe -O2 -fomit-frame-pointer -Wall -fPIC  \
        -Wl,-O1 -Wl,--as-needed -Wl,--export-dynamic  \
        -o expect exp_main_exp.o \
        -L/var/tmp/portage/dev-tcltk/expect-5.45/work/expect5.45 -lexpect5.45 \
        -ltcl8.5 \
        -ldl  -lieee -lm \
        :/usr/lib \
        :/usr/lib
i686-pc-linux-gnu-gcc: error: :/usr/lib: No such file or directory
i686-pc-linux-gnu-gcc: error: :/usr/lib: No such file or directory
make: *** [expect] Error 1
emake failed
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-12-29 06:01:04 UTC
I reproduced this one and found the culprit.

Filename: 
/usr/lib/tkConfig.sh

Lines:
TK_CC_SEARCH_FLAGS=':/usr/lib'
TK_LD_SEARCH_FLAGS=':/usr/lib'

Filename:
/usr/lib/tclConfig.sh

Lines:
TCL_CC_SEARCH_FLAGS=':/usr/lib'
TCL_LD_SEARCH_FLAGS=':/usr/lib'

Removing these lines, or commenting them out with #, solves the problem here... Not sure what changed, as in, why it's triggered now, and not before?
Comment 2 Michael Weber (RETIRED) gentoo-dev 2012-12-29 12:02:43 UTC
Created attachment 333674 [details]
build.log

Fairly fresh ~amd64 system, see http://b-4.xmw.de/ (ipv6 only) for details

Portage 2.2.0_alpha149 (default/linux/amd64/10.0/developer, gcc-4.6.3, glibc-2.16.0, 3.7.1-gentoo-b-4.0 x86_64)
=================================================================
System uname: Linux-3.7.1-gentoo-b-4.0-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7700_@_2.40GHz-with-gentoo-2.2
Timestamp of tree: Unknown
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p39-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo local xmw
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-log strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/var/cache/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/xmw-overlay"
SYNC="cvs://xmw@cvs.gentoo.org:/var/cvsroot"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jbig jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pppd python qt3support qt4 readline sdl session snmp spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" 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="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.2"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Guy 2012-12-29 13:37:18 UTC
As a point of reference, the installed version of dev-tcltk/expect which I have was installed Dec 26, 2010.

# eix dev-tcltk/expect
[I] dev-tcltk/expect
     Available versions:  5.43.0 (~)5.43.0-r1 5.44.1.15 (~)5.45 {X debug doc threads}
     Installed versions:  5.45(02:21:21 PM 12/26/2010)(threads -debug -doc)
     Homepage:            http://expect.nist.gov/
     Description:         tool for automating interactive applications
Comment 4 Michael Weber (RETIRED) gentoo-dev 2012-12-29 13:44:51 UTC
(In reply to comment #1)
> Removing these lines, or commenting them out with #, solves the problem
> here... Not sure what changed, as in, why it's triggered now, and not before?

I get an error during src_configure of dev-util/dejagnu-1.5
  checking Tcl version 8.3 or greater... /usr/bin/expect: error while loading shared libraries: libexpect5.45.so: cannot open shared object file: No such file or directory 
and expect is non-funtional
b-4 ~ 1 # expect
expect: error while loading shared libraries: libexpect5.45.so: cannot open shared object file: No such file or directory
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-12-30 11:40:33 UTC
*** Bug 449286 has been marked as a duplicate of this bug. ***
Comment 6 Michael Weber (RETIRED) gentoo-dev 2013-01-01 23:55:58 UTC
another system has these values defined to '-Wl,-rpath,${LIB_RUNTIME_DIR}:/usr/lib64' which brings expect back to life (mind the arch dependent 64)
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2013-01-09 16:12:08 UTC
+*tcl-8.5.13-r1 (09 Jan 2013)
+
+  09 Jan 2013; Justin Lecher <jlec@gentoo.org> +tcl-8.5.13-r1.ebuild,
+  +files/tcl-8.5.13-conf.patch, +files/tcl-8.5.13-multilib.patch, metadata.xml:
+  Fix build system so that autoconf will always be executed and sanitize sed so
+  that tclConfig.sh will be sane, #449134
+
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2013-01-09 16:30:46 UTC
+*tk-8.5.13-r1 (09 Jan 2013)
+
+  09 Jan 2013; Justin Lecher <jlec@gentoo.org> tk-8.5.13.ebuild,
+  +tk-8.5.13-r1.ebuild, +files/tk-8.5.13-conf.patch, metadata.xml:
+  Fix build system so that autoconf will always be executed and sanitize sed so
+  that tclConfig.sh will be sane, #449134
+
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2013-01-09 16:41:31 UTC
*** Bug 449770 has been marked as a duplicate of this bug. ***
Comment 10 Justin Lecher (RETIRED) gentoo-dev 2013-01-09 16:42:20 UTC
*** Bug 447990 has been marked as a duplicate of this bug. ***