Portage fails to compile xemacs whenever the ldap useflag is on. Reproducible: Always Steps to Reproduce: 1. ebuild /usr/portage/app-editors/xemacs/xemacs-21.4.12.ebuild clean unpack compile Actual Results: checking for ndbm.h... yes checking for dbm_open in -lgdbm... no Error: Required GNU DBM support cannot be provided. !!! ERROR: app-editors/xemacs-21.4.12 failed. !!! Function src_compile, Line 164, Exitcode 1 !!! (no error message) Here's the tail of config.log: configure:13846: checking for ndbm.h configure:13854: gcc -E -I/usr/X11R6/include conftest.c >/dev/null 2>conftest.out configure:13884: checking for dbm_open in -lgdbm configure:13900: gcc -o conftest -march=i586 -O3 -pipe -I/usr/X11R6/include -L/usr/X11R6/lib conftest.c -lgdbm -lX m -ltiff -ljpeg -lXmu -lXt -lXext -lX11 -lSM -lICE -lgpm -lncurses -lldap -llber -lm 1>&5 /usr/lib/libldap.so: undefined reference to `__dn_expand' /usr/lib/libldap.so: undefined reference to `__res_query' collect2: ld returned 1 exit status configure: failed program was: #line 13889 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dbm_open(); int main() { dbm_open() ; return 0; } Workaround: 1. USE="-ldap" ebuild /usr/portage/app-editors/xemacs/xemacs-21.4.12.ebuild clean unpack compile
Woops... almost forgot. Here's the system info: Portage 2.0.48-r1 (default-1.0, gcc-2.95.3, glibc-2.2.5-r4,2.2.5-r8) ================================================================= System uname: 2.4.20-gentoo-r5 i586 GENTOO_MIRRORS="http://gentoo.felisberto.net/ http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow avi crypt cups encode jpeg libg++ mikmod mpeg ncurses pdflib quicktime spell truetype xml2 xmms xv berkdb gdbm gif gnome-libs gpm gtk imlib java libwww motif nls oggvorbis opengl pam png python qt readline sdl slang ssl svga tcpd X -3dfx aalib alsa -apm -arts cdr dga directfb doc esd fbcon gd ggi ggz gtkhtml imap -kde lcms ldap maildir -mmx mozilla mule mysql nocardbus oav odbc perl pic samba sasl slp snmp socks5 tcltk tetex tiff wmf xml zlib" COMPILER="" CHOST="i586-pc-linux-gnu" CFLAGS="-march=i586 -O3 -pipe" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://193.136.191.101/gentoo-portage" FEATURES="ccache fixpackages sandbox strict userpriv usersandbox"
Workaround doesn't work for me: checking for ncurses/curses.h... no checking for ncurses/term.h... no checking for ncurses/curses.h... no checking for database support checking for ndbm.h... no Error: Required DBM support cannot be provided. !!! ERROR: app-editors/xemacs-21.4.12 failed. !!! Function src_compile, Line 166, Exitcode 1 !!! (no error message) # locate ndbm.h /usr/include/db1/ndbm.h /usr/include/gdbm/ndbm.h /usr/include/ndbm.h Are all these versions of ndbm.h confusing it? Also, why can't it find curses.h? It's in /usr/include, but there is no /usr/include/ncurses directory... Stephen
Robert, can you check the status of this one?
fixed on version 21.4.15