Xmlto emerge dies during configure, because it can't find libreadline.so.4. If I emerge readline 4.3-r5, the problem is solved, and xmlto compiles, but readline isn't slotted an nothig prevents an upgrade of readline to 5.0-r2, but then xmlto can be emerged no more. Note: I'm experiencing this bug in a 32bit chroot that I'm finishing to build on top of a amd64 system, emerge --info provided is the chroot one. Chroot environment was built up following http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3 is not the first I make, and works flawlessly. Just after unpacking stage3-athlon-xp-2005.0.tar.bz2 I masked gcc and glibc in order to stick with the version from the tarball, modified /etc/make.conf adding some USE flags, then issued emerge -aDuvN world. Reproducible: Always Steps to Reproduce: 1. try to emerge xmlto when readline-5 is installed -> fail 2. downgrade readline to version 4, then emerge xmlto -> success 3. emerge -u world update readline. At this point xmlto is installed, but can be recompiled no more. Actual Results: bash-2.05b# emerge xmlto Calculating dependencies ...done! >>> emerge (1 of 1) app-text/xmlto-0.0.18 to / >>> md5 files ;-) xmlto-0.0.17.ebuild >>> md5 files ;-) xmlto-0.0.18.ebuild >>> md5 files ;-) files/xmlto-head-fix.patch >>> md5 files ;-) files/digest-xmlto-0.0.17 >>> md5 files ;-) files/digest-xmlto-0.0.18 >>> md5 src_uri ;-) xmlto-0.0.18.tar.bz2 >>> Unpacking source... >>> Unpacking xmlto-0.0.18.tar.bz2 to /var/tmp/portage/xmlto-0.0.18/work >>> Source unpacked. ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of i686-pc-linux-gnu-gcc... gcc3 checking whether i686-pc-linux-gnu-gcc and cc understand -c and -o together... yes checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for mktemp program... mktemp checking for GNU find program... find checking for bash... bash checking for getopt program... getopt checking whether getopt handles long options... yes configure: creating ./config.status config.status: creating Makefile config.status: creating xmlto config.status: creating xmlto.spec config.status: creating config.h config.status: executing depfiles commands make all-am make[1]: Entering directory `/var/tmp/portage/xmlto-0.0.18/work/xmlto-0.0.18' if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -march=athlon-xp -O2 -pipe -fomit-frame-pointer -MT xmlif/xmlif.o -MD -MP -MF "xmlif/.deps/xmlif.Tpo" -c -o xmlif/xmlif.o `test -f 'xmlif/xmlif.c' || echo './'`xmlif/xmlif.c; \ then mv -f "xmlif/.deps/xmlif.Tpo" "xmlif/.deps/xmlif.Po"; else rm -f "xmlif/.deps/xmlif.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc -march=athlon-xp -O2 -pipe -fomit-frame-pointer -o xmlif/xmlif xmlif/xmlif.o for xml in xmlif.xml xmlto.xml; do \ FORMAT_DIR=./format XSL_DIR=./xsl \ bash ./xmlto -o man/man1 man ./doc/$xml ; \ done || ( RC=$?; cat ./FAQ; exit $RC ) xmlto: input does not validate (status 127) xmllint: error while loading shared libraries: libreadline.so.4: cannot open shared object file: No such file or directory xmlto: input does not validate (status 127) xmllint: error while loading shared libraries: libreadline.so.4: cannot open shared object file: No such file or directory Q: I'm trying to build xmlto on my Debian box, but it doesn't work. A: If you get `Attempt to load network entity' errors when building xmlto, your system does not have the required support for XML Catalogs (http://www.oasis-open.org/committees/entity/spec-2001-08-06.html). In particular, Debian has no support for these. Try the Fedora Project <http://fedora.redhat.com>. make[1]: *** [man/man1/xmlto.1] Error 127 make[1]: Leaving directory `/var/tmp/portage/xmlto-0.0.18/work/xmlto-0.0.18' make: *** [all] Error 2 !!! ERROR: app-text/xmlto-0.0.18 failed. !!! Function src_compile, Line 27, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Expected Results: Differentiate DEPEND and RDEPEND, and/or find a way to have libreadline.so.4 and libreadline.so.5 coexist on the same system. # emerge --info Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.12-gentoo-r9 i686) ================================================================= System uname: 2.6.12-gentoo-r9 i686 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.6.13 dev-lang/python: 2.3.4-r1, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg candy ccache distlocks fixpackages sfperms strict" GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.solnet.ch/mirror/Gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://gentoo.math.bme.hu http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.ynet.sk/pub http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" MAKEOPTS="-j2" PKGDIR="/mnt/mobile/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X X509 a52 aac acl alsa apache2 apm arts artswrappersuid audiofile avi berkdb bitmap-fonts blas bzip2 ccache cddb cdparanoia crypt cups dba dbm dbx devmap dga doc dts dv dvd dvdr dvdread edl eds emboss encode expat fbcon ffmpeg fmod foomaticdb fortran freetype ftp gcj gd gdbm gif gnome gnutls gpm graphviz gs gstreamer gtk gtk2 imlib java jpeg kde kdeenablefinal lcms ldap libcaca libg++ libwww live lm_sensors lzo mad mikmod mng motif mozcalendar moznoirc moznomail mp3 mpeg mpeg2 mpeg4 mplayer msn mssql mysql mysqli mythtv ncurses network nls nvidia oci8 odbc ogg oggvorbis opengl oracle oss pam pdflib perl php png povray python qt quicktime readline real rtc sdl spell ssl stats t1lib tcpd tga theora tidy tiff truetype truetype-fonts type1 type1-fonts udev unicode v4l v4l2 vlm vorbis winbind wxgtk1 xanim xgetdefault xml2 xmms xscreensaver xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
revdep-rebuild --library=libreadline.so.4
It seems I spoke too fast Checking dynamic linking consistency... broken /usr/lib/python2.3/lib-dynload/readline.so (requires libreadline.so.4) broken /usr/lib/libORBit-imodule-2.so.0.0.0 (requires libIDL-2.so.0) broken /usr/bin/xmllint (requires libreadline.so.4 libhistory.so.4) broken /usr/bin/xmlcatalog (requires libreadline.so.4 libhistory.so.4) broken /usr/bin/mysql (requires libreadline.so.4) broken /usr/bin/orbit-idl-2 (requires libIDL-2.so.0) broken /usr/X11R6/lib/python2.3/lib-dynload/readline.so (requires libreadline.so.4) broken /usr/X11R6/lib/libORBit-imodule-2.so.0.0.0 (requires libIDL-2.so.0) broken /usr/X11R6/bin/xmllint (requires libreadline.so.4 libhistory.so.4) broken /usr/X11R6/bin/xmlcatalog (requires libreadline.so.4 libhistory.so.4) broken /usr/X11R6/bin/mysql (requires libreadline.so.4) broken /usr/X11R6/bin/orbit-idl-2 (requires libIDL-2.so.0) done. (/root/.revdep-rebuild.3_rebuild) Assigning files to ebuilds... done. (/root/.revdep-rebuild.4_ebuilds) Evaluating package order... done. (/root/.revdep-rebuild.5_order) All prepared. Starting rebuild... emerge --oneshot --nodeps =dev-libs/libxml2-2.6.22 =dev-db/mysql-4.1.14 =dev-lang/python-2.3.4-r1 =gnome-base/orbit-2.12.3 Thanks, sorry for the noise :-)
readline-5 ebuild points out that it's really important to run revdep-rebuild after upgrading from 4.x ;) Thanks for reporting back, closing.