Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61626 - pilot-link and other programs fail to find readline
Summary: pilot-link and other programs fail to find readline
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-25 05:34 UTC by Jesse Lovelace
Modified: 2004-09-02 08:01 UTC (History)
3 users (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 Jesse Lovelace 2004-08-25 05:34:47 UTC
When I try to emerge a program that uses readline in 2004.2 - Amd64 I get:

checking for readline... not found
configure: error: Development headers for readline were not found. Please correct.

but readline is installed:
emerge -s readline
*  sys-libs/readline
      Latest version available: 4.3-r5
      Latest version installed: 4.3-r5
      Size of downloaded files: 947 kB

ls /usr/lib/libread*

/usr/lib/libreadline.a     /usr/lib/libreadline.so.4.3
/usr/lib/libreadline.so    /usr/lib/libreadline.so.4.3.old
/usr/lib/libreadline.so.4

ls /usr/include/readline

chardefs.h  keymaps.h   rlconf.h  rltypedefs.h
history.h   readline.h  rlstdc.h  tilde.h


Reproducible: Always
Steps to Reproduce:
1. emerge pilot-link
2.
3.

Actual Results:  
checking for readline... not found
configure: error: Development headers for readline were not found. Please correct.


Expected Results:  
checking for readline... yes ;)

Portage 2.0.50-r9 (gcc34-2004.2, gcc-3.4.1, glibc-2.3.4.20040619-r1,
2.6.7-gentoo-r14)
=================================================================
System uname: 2.6.7-gentoo-r14 x86_64 AMD Opteron(tm) Processor 242
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -mmmx -msse -msse2 -m3dnow -m64 -O2 -pipe -ffast-math
-mfpmath=sse,387"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -mmmx -msse -msse2 -m3dnow -m64 -O2 -pipe -ffast-math
-mfpmath=sse,387"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
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="X alsa amd64 apm arts avi berkdb cdr crypt dvd dvdr encode esd evo
foomaticdb gdbm gif gnome gpm gtk gtk2 imlib joystick jpeg ldap libg++ libwww
mad matrox mikmod motif mozilla mpeg ncurses nls oggvorbis opengl opie oss pam
pda pdflib perl png python qt quicktime readline sdl slang spell ssl svg tcpd
truetype wxwindows xinerama xml2 xmms xv zlib"
Comment 1 Travis Tilley (RETIRED) gentoo-dev 2004-08-25 23:24:37 UTC
can you emerge sync and re-emerge readline? i cant reproduce this bug here, on my main install or in a clean chroot.
Comment 2 Rutger Hendriks 2004-08-25 23:45:34 UTC
Well, I have just synced 50 minutes ago and re-emerged readline-5.0, but still have the same problems. I guess this is recent enough?
I did notice these lines in the readline install when I tried it just now:

>>> Install readline-5.0 into /var/tmp/portage/readline-5.0/image/ category sys-libs

<snip>

make[1]: Leaving directory `/var/tmp/portage/readline-5.0/work/readline-5.0/doc'
mv /var/tmp/portage/readline-5.0/image//usr/lib/libreadline.a /var/tmp/portage/readline-5.0/image//usr/lib/libreadline.old
mv: cannot stat `/var/tmp/portage/readline-5.0/image//usr/lib/libreadline.a': No such file or directory
make: [install-static] Error 1 (ignored)
/bin/install -c -m 644 libreadline.a /var/tmp/portage/readline-5.0/image//usr/lib/libreadline.a
test -n "ranlib" && ranlib /var/tmp/portage/readline-5.0/image//usr/lib/libreadline.a
mv /var/tmp/portage/readline-5.0/image//usr/lib/libhistory.a /var/tmp/portage/readline-5.0/image//usr/lib/libhistory.old
mv: cannot stat `/var/tmp/portage/readline-5.0/image//usr/lib/libhistory.a': No such file or directory
make: [install-static] Error 1 (ignored)
/bin/install -c -m 644 libhistory.a /var/tmp/portage/readline-5.0/image//usr/lib/libhistory.a
test -n "ranlib" && ranlib /var/tmp/portage/readline-5.0/image//usr/lib/libhistory.a
test -d shlib || mkdir shlib
( cd shlib ; make  all )
make[1]: Entering directory `/var/tmp/portage/readline-5.0/work/readline-5.0/shlib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/readline-5.0/work/readline-5.0/shlib'
( cd shlib ; make  DESTDIR= install )
make[1]: Entering directory `/var/tmp/portage/readline-5.0/work/readline-5.0/shlib'
/bin/sh ../support/mkdirs /var/tmp/portage/readline-5.0/image//usr/lib
/bin/sh ../support/shlib-install -O linux-gnu -d /var/tmp/portage/readline-5.0/image//usr/lib -i "/bin/install -c -m 644" libhistory.so.5.0
/bin/sh ../support/shlib-install -O linux-gnu -d /var/tmp/portage/readline-5.0/image//usr/lib -i "/bin/install -c -m 644" libreadline.so.5.0
install: you may need to run ldconfig
make[1]: Leaving directory `/var/tmp/portage/readline-5.0/work/readline-5.0/shlib'
mv: cannot stat `/var/tmp/portage/readline-5.0/image//usr/lib64/*.so*': No such file or directory
man:
gzipping man page: readline.3
gzipping man page: history.3
info:
gzipping GNU info page: readline.info
gzipping GNU info page: rluserman.info
gzipping GNU info page: history.info
prepallstrip:
strip:
strip:
making executable: /usr/lib/libhistory.so.5.0
making executable: /usr/lib/libreadline.so.5.0
>>> Completed installing into /var/tmp/portage/readline-5.0/image/

Comment 3 Travis Tilley (RETIRED) gentoo-dev 2004-08-26 04:54:07 UTC
i think i might have broken readline for portage 2.0.50 while fixing it for portage 2.0.51 :/

keeping portage 2.0.50, can you emerge sync and try again? the md5sums of my (hopefully) fixed ebuilds are:

ayanami readline # md5sum readline-5.0.ebuild readline-4.3-r6.ebuild readline-4.3-r5.ebuild
d70232128e61a0654204d95cbe2ec3c5  readline-5.0.ebuild
92020b909df68acab79ef479f5fd8ce4  readline-4.3-r6.ebuild
83dda0cb2f24ebf73ac0a8c92bc41661  readline-4.3-r5.ebuild

Comment 4 Jesse Lovelace 2004-08-26 05:13:52 UTC
As of Thu Aug 26 08:12:16 EDT 2004

Tried to emerge sync but my md5s are still:

f72f4f19fcbf7bf962ae885d077142e0  readline-4.1-r5.ebuild
b9d2162607bb3d3508798a68cadd2c34  readline-4.3-r4.ebuild
0db1f5e16c684012ab48640a06f1a96e  readline-4.3-r5.ebuild
417504db86de5cd0688b9779779140c3  readline-4.3-r6.ebuild
42d6aaf0f23d68a9ef3dedbd24556cff  readline-5.0.ebuild

I'm at portage .50r10 and the problem is still there.
Comment 5 Travis Tilley (RETIRED) gentoo-dev 2004-08-26 05:21:12 UTC
wow, quick response. new ebuild edits tend to take at least 15 minutes to make it to rsync, usually a bit more. try giving sync another try in 10-20 minutes. i wasnt expecting you to be around. ;)
Comment 6 Rutger Hendriks 2004-08-26 05:46:41 UTC
I have just synced and the problem of not finding readline is gone.
The build does not complete though, I'm having the infamous -fPIC error now. Should I file another bugreport or ...?

Making all in Java
make[3]: Entering directory `/var/tmp/portage/pilot-link-0.11.8/work/pilot-link-0.11.8/bindings/Java'
/opt/blackdown-jdk-1.4.2_rc1/bin/javac -d . ./org/gnu/pilotlink/AddressRecord.java              ./org/gnu/pilotlink/AppInfo.java          ./org/gnu/pilotlink/DatebookRecord.java          ./org/gnu/pilotlink/MemoRecord.java             ./org/gnu/pilotlink/PilotLink.java        ./org/gnu/pilotlink/RawAppInfo.java              ./org/gnu/pilotlink/RawRecord.java              ./org/gnu/pilotlink/Record.java           ./org/gnu/pilotlink/SysInfo.java         ./org/gnu/pilotlink/User.java                   ./test.java
g++ -I../../include                             -I ../../include                -I ../../include                -I /opt/blackdown-jdk-1.4.2_rc1/include                    -I /opt/blackdown-jdk-1.4.2_rc1/include/linux  -L ../../libpisock/.libs -lpisock -shared -o libjpisock.so ./libjpisock.c
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/pilot-link-0.11.8/temp/ccmilRbO.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
/var/tmp/portage/pilot-link-0.11.8/temp/ccmilRbO.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [java_lib] Error 1
make[3]: Leaving directory `/var/tmp/portage/pilot-link-0.11.8/work/pilot-link-0.11.8/bindings/Java'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/pilot-link-0.11.8/work/pilot-link-0.11.8/bindings'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/pilot-link-0.11.8/work/pilot-link-0.11.8'
make: *** [all-recursive-am] Error 2

!!! ERROR: app-pda/pilot-link-0.11.8 failed.
!!! Function src_compile, Line 57, Exitcode 2
!!! (no error message)



#  emerge info
Portage 2.0.50-r10 (gcc34-2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r1)
=================================================================
System uname: 2.6.8-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.5.3
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=k8 -fomit-frame-pointer -momit-leaf-frame-pointer -fweb -frename-registers -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /opt/gentoo-rsync /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /opt/gentoo-rsync/portage /etc/env.d"
CXXFLAGS="-O2 -march=k8 -fomit-frame-pointer -momit-leaf-frame-pointer -fweb -frename-registers -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.tiscali.nl/pub/mirror/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="S3TC X aac aalib acpi acpi4linux alsa amd64 apm arts asterisk audiofile avi berkdb cdparanoia cdr chroot crypt cups dga divx4linux dv dvd dvdr dvdread encode f77 faac faad fbcon fbdev ffmpeg fftw flac flash foomaticdb ftp gcj gd gdbm ggi gif gpm gstreamer gtk2 icq ieee1394 imagemagick imap imlib imlib2 irmc jabber java javascript joystick jp2 jpeg kde lcd lcms ldap libg++ libwww linguas_en_GB linguas_nl lirc live lzo lzw lzw-tiff mad mbox mikmod mng motif mozaccess mozcalendar mozdomi mozilla mozp3p mozsvg mozxmlterm mpeg mpeg4 mpi mplayer msn mysql mythtv nas ncurses net nls nptl oav objc offensive oggvorbis opengl opie oss pam pda pdflib perl pic plotutils png pthreads python qt quicktime readline rtc samba sasl sdl slang slp speex spell ssl svg tcltk tcpd theora tiff transcode truetype usb v4l v4l2 videos wmf xml2 xmms xosd xprint xrandr xv xvid zlib zvbi"
Comment 7 Travis Tilley (RETIRED) gentoo-dev 2004-08-26 06:07:35 UTC
*phew*
i'm definately very relieved to hear that readline is working properly for you now. yeah, file a new bug for the -fPIC issue. that's definately not related to readline and lies in a package not maintained by the base-system project.
Comment 8 Rutger Hendriks 2004-08-26 06:17:58 UTC
Okay
Thanks Travis! :)

Oh, I still get the:

mv /var/tmp/portage/readline-5.0/image//usr/lib/libreadline.a /var/tmp/portage/readline-5.0/image//usr/lib/libreadline.old
mv: cannot stat `/var/tmp/portage/readline-5.0/image//usr/lib/libreadline.a': No such file or directory
make: [install-static] Error 1 (ignored)

kind of errors. Looks like they are harmless though :), I guess they're just there for backup...

Thanks again!
Comment 9 Travis Tilley (RETIRED) gentoo-dev 2004-08-26 07:30:38 UTC
no, that's actually pretty bad... are you using the ebuilds with the md5sums i mentioned?
Comment 10 Rutger Hendriks 2004-08-26 08:24:12 UTC
Yes, the exact same...
Comment 11 Travis Tilley (RETIRED) gentoo-dev 2004-08-26 08:59:59 UTC
can someone else from base-system take a poke at readline? i thought i fixed everything, but i guess not... that and i am in need of sleep, even though this looks like a pretty important bug ^^;
Comment 12 SpanKY gentoo-dev 2004-08-26 10:32:04 UTC
you shouldnt have any librealine.so's in /usr/lib/ except for just 'libreadline.so'

try removing all of those and re-emerging readline

as for the mv .old thing, that's just a stupid backup rule the readline makefile has in place, it can be ignored
Comment 13 SpanKY gentoo-dev 2004-08-30 16:57:21 UTC
get back to us
Comment 14 Rutger Hendriks 2004-08-30 22:09:23 UTC
I didn't have any 'other' libreadline.so's

# ls -la /usr/lib/libread*
-rw-r--r--  1 root root 439138 Aug 26 17:24 /usr/lib/libreadline.a
-rwxr-xr-x  1 root root    308 Aug 26 17:24 /usr/lib/libreadline.so

# ls -la /lib/libreadline.so*
lrwxrwxrwx  1 root root     16 Aug 31 07:05 /lib/libreadline.so -> libreadline.so.5
lrwxrwxrwx  1 root root     18 Aug 31 07:05 /lib/libreadline.so.5 -> libreadline.so.5.0
-rwxr-xr-x  1 root root 237384 Aug 31 07:05 /lib/libreadline.so.5.0

and I have just re-emerged sys-libs/readline, and none get installed

>>> Install readline-5.0 into /var/tmp/portage/readline-5.0/image/ category sys-libs
/bin/sh ./support/mkinstalldirs /var/tmp/portage/readline-5.0/image//usr/include \
        /var/tmp/portage/readline-5.0/image//usr/include/readline /var/tmp/portage/readline-5.0/image//usr/lib \
        /var/tmp/portage/readline-5.0/image//usr/share/info /var/tmp/portage/readline-5.0/image//usr/share/man/man3
mkdir -p -- /var/tmp/portage/readline-5.0/image//usr/include /var/tmp/portage/readline-5.0/image//usr/include/readline /var/tmp/portage/readline-5.0/image//usr/lib /var/tmp/portage/readline-5.0/image//usr/share/info /var/tmp/portage/readline-5.0/image//usr/share/man/man3
for f in readline.h chardefs.h keymaps.h history.h tilde.h rlstdc.h rlconf.h rltypedefs.h; do \
        /bin/install -c -m 644 ./$f /var/tmp/portage/readline-5.0/image//usr/include/readline ; \
done
( if test -d doc ; then \
        cd doc && \
        make  infodir=/usr/share/info DESTDIR=/var/tmp/portage/readline-5.0/image/ install; \
  fi )
make[1]: Entering directory `/var/tmp/portage/readline-5.0/work/readline-5.0/doc'
/bin/sh ../support/mkdirs /var/tmp/portage/readline-5.0/image//usr/share/info /var/tmp/portage/readline-5.0/image//usr/share/man/man3
if test -n "" ; then \
        /bin/sh ../support/mkdirs /var/tmp/portage/readline-5.0/image/ ; \
fi
if test -f readline.info; then \
        /bin/install -c -m 644 readline.info /var/tmp/portage/readline-5.0/image//usr/share/info/readline.info; \
else \
        /bin/install -c -m 644 ./readline.info /var/tmp/portage/readline-5.0/image//usr/share/info/readline.info; \
fi
if test -f rluserman.info; then \
        /bin/install -c -m 644 rluserman.info /var/tmp/portage/readline-5.0/image//usr/share/info/rluserman.info; \
else \
        /bin/install -c -m 644 ./rluserman.info /var/tmp/portage/readline-5.0/image//usr/share/info/rluserman.info; \
fi
if test -f history.info; then \
        /bin/install -c -m 644 history.info /var/tmp/portage/readline-5.0/image//usr/share/info/history.info; \
else \
        /bin/install -c -m 644 ./history.info /var/tmp/portage/readline-5.0/image//usr/share/info/history.info; \
fi
if /bin/sh -c 'install-info --version' >/dev/null 2>&1; then \
        install-info --dir-file=/var/tmp/portage/readline-5.0/image//usr/share/info/dir \
                /var/tmp/portage/readline-5.0/image//usr/share/info/readline.info ; \
        install-info --dir-file=/var/tmp/portage/readline-5.0/image//usr/share/info/dir \
                /var/tmp/portage/readline-5.0/image//usr/share/info/history.info ; \
        install-info --dir-file=/var/tmp/portage/readline-5.0/image//usr/share/info/dir \
                /var/tmp/portage/readline-5.0/image//usr/share/info/rluserman.info ; \
else true; fi
/bin/install -c -m 644 ./readline.3 /var/tmp/portage/readline-5.0/image//usr/share/man/man3/readline.3
/bin/install -c -m 644 ./history.3 /var/tmp/portage/readline-5.0/image//usr/share/man/man3/history.3
if test -n "" ; then \
        if test -f readline.html; then \
                /bin/install -c -m 644 readline.html /var/tmp/portage/readline-5.0/image//readline.html; \
        else \
                /bin/install -c -m 644 ./readline.html /var/tmp/portage/readline-5.0/image//readline.html; \
        fi ; \
        if test -f history.html; then \
                /bin/install -c -m 644 history.html /var/tmp/portage/readline-5.0/image//history.html; \
        else \
                /bin/install -c -m 644 ./history.html /var/tmp/portage/readline-5.0/image//history.html; \
        fi ; \
        if test -f rluserman.html; then \
                /bin/install -c -m 644 rluserman.html /var/tmp/portage/readline-5.0/image//rluserman.html; \
        else \
                /bin/install -c -m 644 ./rluserman.html /var/tmp/portage/readline-5.0/image//rluserman.html; \
        fi ; \
fi
make[1]: Leaving directory `/var/tmp/portage/readline-5.0/work/readline-5.0/doc'
mv /var/tmp/portage/readline-5.0/image//usr/lib/libreadline.a /var/tmp/portage/readline-5.0/image//usr/lib/libreadline.old
mv: cannot stat `/var/tmp/portage/readline-5.0/image//usr/lib/libreadline.a': No such file or directory
make: [install-static] Error 1 (ignored)
/bin/install -c -m 644 libreadline.a /var/tmp/portage/readline-5.0/image//usr/lib/libreadline.a
test -n "ranlib" && ranlib /var/tmp/portage/readline-5.0/image//usr/lib/libreadline.a
mv /var/tmp/portage/readline-5.0/image//usr/lib/libhistory.a /var/tmp/portage/readline-5.0/image//usr/lib/libhistory.old
mv: cannot stat `/var/tmp/portage/readline-5.0/image//usr/lib/libhistory.a': No such file or directory
make: [install-static] Error 1 (ignored)
/bin/install -c -m 644 libhistory.a /var/tmp/portage/readline-5.0/image//usr/lib/libhistory.a
test -n "ranlib" && ranlib /var/tmp/portage/readline-5.0/image//usr/lib/libhistory.a
test -d shlib || mkdir shlib
( cd shlib ; make  all )
make[1]: Entering directory `/var/tmp/portage/readline-5.0/work/readline-5.0/shlib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/readline-5.0/work/readline-5.0/shlib'
( cd shlib ; make  DESTDIR=/var/tmp/portage/readline-5.0/image/ install )
make[1]: Entering directory `/var/tmp/portage/readline-5.0/work/readline-5.0/shlib'
/bin/sh ../support/mkdirs /var/tmp/portage/readline-5.0/image//usr/lib
/bin/sh ../support/shlib-install -O linux-gnu -d /var/tmp/portage/readline-5.0/image//usr/lib -i "/bin/install -c -m 644" libhistory.so.5.0
/bin/sh ../support/shlib-install -O linux-gnu -d /var/tmp/portage/readline-5.0/image//usr/lib -i "/bin/install -c -m 644" libreadline.so.5.0
install: you may need to run ldconfig
make[1]: Leaving directory `/var/tmp/portage/readline-5.0/work/readline-5.0/shlib'
Comment 15 SpanKY gentoo-dev 2004-08-30 22:14:54 UTC
so in other words you dont have any readline bugs left
Comment 16 Rutger Hendriks 2004-08-30 22:19:03 UTC
None that I know of.
Thanks
Comment 17 Thierry Carrez (RETIRED) gentoo-dev 2004-09-02 08:01:01 UTC
*** Bug 62623 has been marked as a duplicate of this bug. ***