Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68183 - installing expect-5.40.0-r1 on machine w/o expect fails
Summary: installing expect-5.40.0-r1 on machine w/o expect fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: TCL/TK Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-19 11:05 UTC by Chris
Modified: 2005-02-12 10:45 UTC (History)
1 user (show)

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 Chris 2004-10-19 11:05:49 UTC
Tried installing expect-5.40.0-r1 on ~amd64.  Failed with:

>>> Install expect-5.37.1-r2 into /var/tmp/portage/expect-5.37.1-r2/image/ category dev-tcltk
make[1]: Entering directory `/var/tmp/portage/expect-5.37.1-r2/work/expect-5.37'
Making binaries in testsuite...
make[2]: Entering directory `/var/tmp/portage/expect-5.37.1-r2/work/expect-5.37/testsuite'
make[2]: Nothing to be done for `binaries'.
make[2]: Leaving directory `/var/tmp/portage/expect-5.37.1-r2/work/expect-5.37/testsuite'
make[1]: Leaving directory `/var/tmp/portage/expect-5.37.1-r2/work/expect-5.37'
./mkinstalldirs /var/tmp/portage/expect-5.37.1-r2/image///usr/lib64/expect5.37
mkdir /var/tmp/portage/expect-5.37.1-r2/image/usr
mkdir /var/tmp/portage/expect-5.37.1-r2/image/usr/lib64
mkdir /var/tmp/portage/expect-5.37.1-r2/image/usr/lib64/expect5.37
if [ -s libexpect5.37.a ] ; then \
  /bin/install -c -m 644 libexpect5.37.a /var/tmp/portage/expect-5.37.1-r2/image///usr/lib64/expect5.37/libexpect5.37.a ; \
  ranlib /var/tmp/portage/expect-5.37.1-r2/image///usr/lib64/expect5.37/libexpect5.37.a ; \
  /bin/install -c -m 644 libexpect5.37.a /var/tmp/portage/expect-5.37.1-r2/image///usr/lib64/libexpect5.37.a ; \
  ranlib /var/tmp/portage/expect-5.37.1-r2/image///usr/lib64/libexpect5.37.a ; \
else true; fi
if [ -s libexpect5.37.so ] ; then \
  /bin/install -c libexpect5.37.so /var/tmp/portage/expect-5.37.1-r2/image///usr/lib64/libexpect5.37.so ; \
  /bin/install -c pkgIndex /var/tmp/portage/expect-5.37.1-r2/image///usr/lib64/expect5.37/pkgIndex.tcl ; \
else true; fi
gcc -pipe -O2 -march=opteron -pipe -fweb -ftracer  -fPIC -rdynamic -o expect_installed exp_main_exp.o -L/var/tmp/portage/expect-5.37.1-r2/image//usr/lib -lexpect5.37 -L/usr/lib -ltcl8.4  -ldl  -lieee -lm -lutil -Wl,-rpath,/var/tmp/portage/expect-5.37.1-r2/image///usr/lib64:/usr/lib
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lexpect5.37
collect2: ld returned 1 exit status
make: *** [expect_installed] Error 1

!!! ERROR: dev-tcltk/expect-5.37.1-r2 failed.
!!! Function src_install, Line 93, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


I then tried expect-5.37.1-r2 with same problem

Then I tried expect-5.40.0, it worked, and then I tried expect-5.40.0-r1 again and it upgraded fine.

btw, changelog didn't work on expect either

Reproducible: Didn't try
Steps to Reproduce:
1. ~amd64 system w/o expect
2. try to install expect

Actual Results:  
gcc -pipe -O2 -march=opteron -pipe -fweb -ftracer  -fPIC -rdynamic -o 
expect_installed exp_main_exp.o -L/var/tmp/portage/expect-5.37.1-
r2/image//usr/lib -lexpect5.37 -L/usr/lib -ltcl8.4  -ldl  -lieee -lm -lutil -
Wl,-rpath,/var/tmp/portage/expect-5.37.1-r2/image///usr/lib64:/usr/lib
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/../../../../x86_64-pc-linux-gnu/bin/ld: 
cannot find -lexpect5.37
collect2: ld returned 1 exit status
make: *** [expect_installed] Error 1


Portage 2.0.51_rc9 (default-linux/amd64/gcc34-2004.2, gcc-3.4.2, glibc-
2.3.4.20041006-r0, 2.6.9.rc4CK1 x86_64)
=================================================================
System uname: 2.6.9.rc4CK1 x86_64 AMD Opteron(tm) Processor 244
Gentoo Base System version 1.5.3
distcc 2.17 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2
Headers:  sys-kernel/linux26-headers-2.6.7-r4
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=opteron -pipe -fweb -ftracer"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/
share/config /usr/share/config /var/qmail/alias /var/qmail/control /var/vpopmai
l/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=opteron -pipe -fweb -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks"
GENTOO_MIRRORS="http://gentoo.osuosl.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acpi amd64 apache2 apm bzlib crypt curl encode exif f77 fbcon foomaticdb 
gdbm gif gpm gps gtk2 imagemagick imlib innodb jpeg junit libg++ libwww mikmod 
motif mpeg mysql ncurses nls oss pam pdflib perl php png python readline sdl 
slang sockets spell ssl svg tcpd tidy tiff truetype usb vhosts xml2 xmms xv 
zlib"
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2004-10-19 12:28:57 UTC
Michael, chose you semi-randomly from the Changelog. Could you test and maybe find someone for maintanance/metadata.xml, please? :)
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2004-10-19 12:42:06 UTC
I'd like to see the tcltk group take this over and add expect to the tcltk herd.
Comment 3 Ming Zhao (RETIRED) gentoo-dev 2004-11-22 09:24:41 UTC
gcc -pipe -O2 -march=opteron -pipe -fweb -ftracer  -fPIC -rdynamic -o expect_installed exp_main_exp.o -L/var/tmp/portage/expect-5.37.1-r2/image//usr/lib -lexpect5.37 -L/usr/lib -ltcl8.4  -ldl  -lieee -lm -lutil -Wl,-rpath,/var/tmp/portage/expect-5.37.1-r2/image///usr/lib64:/usr/lib

I think it should be -L/var/tmp/portage/expect-5.37.1-r2/image//usr/lib64, not
-L/var/tmp/portage/expect-5.37.1-r2/image//usr/lib 

Maybe it's due to the wrong definition of EXP_LIB_SPEC in configure script:
EXP_LIB_SPEC="-L\${INSTALL_ROOT}\${exec_prefix}/lib -lexpect${EXP_LIB_VERSION}${DBGX}"

Changing it to the following may resolve this problem:
EXP_LIB_SPEC="-L\${INSTALL_ROOT}\${exec_prefix}/${libdir}
-lexpect${EXP_LIB_VERSION}${DBGX}"
Comment 4 SpanKY gentoo-dev 2005-02-12 10:45:05 UTC
expect-5.42.1 is stable and that works fine for me (emerge -C expect && emerge expect)