Emerging xemacs gives this error every time. I have asked multiple times on the forums with no responses. I have tried clearing ccache before compiling but nothing. checking for working mmap... no checking for termios.h... yes checking for socket... no checking for msgget... no checking for dirent.h... yes checking for nlist.h... no checking for sound support checking for machine/soundcard.h... no checking for sys/soundcard.h... yes checking for audio/audiolib.h... no checking for TTY-related features checking for ncurses/curses.h... no checking for ncurses/term.h... no checking for ncurses/curses.h... no checking for module support checking for dlfcn.h... yes checking for dlopen in -lc... checking for dlopen in -ldl... checking for shl_load in -ldld... no checking for dld_init in -ldld... no configure: warning: Module support cannot be provided. *** PANIC *** configure forgot how to build working executables! *** This is most commonly due to an unforeseen environment, causing *** configure to incorrectly compute the sequence of libraries to link. *** Please examine the tail of config.log for runtime errors. *** Pay special attention to the -l flags, and perhaps -I and -L. *** Often adding or removing explicit options in the configure *** invocation can work around this kind of problem. If so, please *** report it as a bug to xemacs-beta@xemacs.org. *** *** Other possible causes are inability to write to the file system *** (bogus permissions or disk full) or a misconfiguration of the dynamic *** linker. On Linux, check /etc/ld.conf and rerun ldconfig if *** necessary. On other systems, try telling configure where to find *** the shared libraries using the --site-runtime-libraries option. *** *** Another way to shoot yourself in the foot is to specify *** --with-FEATURE when FEATURE is not actually installed on your *** system. Don't do that. !!! ERROR: app-editors/xemacs-21.4.15-r3 failed. !!! Function src_compile, Line 167, Exitcode 1 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. Emerge xemacs 2. 3. Actual Results: checking for working mmap... no checking for termios.h... yes checking for socket... no checking for msgget... no checking for dirent.h... yes checking for nlist.h... no checking for sound support checking for machine/soundcard.h... no checking for sys/soundcard.h... yes checking for audio/audiolib.h... no checking for TTY-related features checking for ncurses/curses.h... no checking for ncurses/term.h... no checking for ncurses/curses.h... no checking for module support checking for dlfcn.h... yes checking for dlopen in -lc... checking for dlopen in -ldl... checking for shl_load in -ldld... no checking for dld_init in -ldld... no configure: warning: Module support cannot be provided. *** PANIC *** configure forgot how to build working executables! *** This is most commonly due to an unforeseen environment, causing *** configure to incorrectly compute the sequence of libraries to link. *** Please examine the tail of config.log for runtime errors. *** Pay special attention to the -l flags, and perhaps -I and -L. *** Often adding or removing explicit options in the configure *** invocation can work around this kind of problem. If so, please *** report it as a bug to xemacs-beta@xemacs.org. *** *** Other possible causes are inability to write to the file system *** (bogus permissions or disk full) or a misconfiguration of the dynamic *** linker. On Linux, check /etc/ld.conf and rerun ldconfig if *** necessary. On other systems, try telling configure where to find *** the shared libraries using the --site-runtime-libraries option. *** *** Another way to shoot yourself in the foot is to specify *** --with-FEATURE when FEATURE is not actually installed on your *** system. Don't do that. !!! ERROR: app-editors/xemacs-21.4.15-r3 failed. !!! Function src_compile, Line 167, Exitcode 1 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Expected Results: Successful emerge. Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r4 i686) ================================================================= System uname: 2.6.11-gentoo-r4 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Mar 15 2005, 16:02:22)] ccache version 2.4 [enabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer -fforce-addr -falign- functions=4 -finline-limit=800" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/ share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb / usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer -fforce-addr -falign- functions=4 -finline-limit=800" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconf autoconfig automake ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://adelie.polymtl.ca/ ftp://cs. ubishops.ca/pub/gentoo ftp://gentoo.risq.qc.ca/ ftp://ftp.gtlib.cc.gatech.edu/ pub/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://csociety-ftp. ecn.purdue.edu/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp. ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.seren.com/gentoo http://gentoo. chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ http://cudlug.cudenver. edu/gentoo/ ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/ http:// gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ http://gentoo.ccccom.com ftp://gentoo.ccccom.com http://gentoo.mirrors.tds.net/gentoo ftp://gentoo. mirrors.tds.net/gentoo http://gentoo.netnitco.net ftp://gentoo.netnitco.net/pub/ mirrors/gentoo/source/ http://mirror.tucdemonic.org/gentoo/ http://mirror. clarkson.edu/pub/distributions/gentoo/ http://mirrors.acm.cs.rpi.edu/gentoo/ ftp://ftp.ndlug.nd.edu/pub/gentoo/ ftp://gentoo.agsn.ca/ http://open-systems. ufl.edu/mirrors/gentoo http://gentoo.llarian.net/ ftp://gentoo.llarian.net/pub/ gentoo http://gentoo.binarycompass.org http://gentoo.mirrored.ca/ ftp://gentoo. mirrored.ca/ http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://gentoo.eliteitminds.com http://gentoo.cs.lewisu.edu/gentoo/ ftp://linux. cs.lewisu.edu/gentoo/ http://prometheus.cs.wmich.edu/gentoo http://modzer0.cs. uaf.edu/public/gentoo/ http://mirror.usu.edu/mirrors/gentoo/ ftp://mirror.usu. edu/mirrors/gentoo/ http://lug.mtu.edu/gentoo ftp://planetmirror.com/pub/gentoo/ ftp://mirror.pacific.net.au/linux/Gentoo http://mirror.isp.net.au/pub/gentoo/ ftp://mirror.isp.net.au/pub/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="3dnow 3dnowex X aac acpi aim alsa apache2 apm avi bash-completion bitmap- fonts bzlib cdr crypt cups curl curlwrappers divx4linux dvd dvdr emacs emacs-W3 emboss encode esd fam fastcgi ffmpeg flac font-server foomaticdb fortran gd geoip gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal howl icc icq imagemagick imlib ipv6 java joystick jpeg libg++ libwww mad mikmod mmap mmx mmxext motif mozilla-firefox mozilla-thunderbird mp3 mpeg msn mysql ncurses nls nptl nptlonly nvidia offensive ogg oggvorbis opengl openssl oss pam pdf pdflib perl php png postgres python quicktime readline real sdl session sockets spell ssl svga szip tcpd tidy tiff tokenizer truetype truetype-fonts type1-fonts usb vhosts videos win32codecs x86 xine xinerama xml xml2 xmms xosd xpm xscreensaver xv xvid zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
tail /var/tmp/portage/xemacs-21.4.15-r3/work/xemacs-21.4.15/config.log int main() { dld_init() ; return 0; } configure:15462: gcc -o conftest -march=athlon -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -finline-limit=800 -I/usr/X11R6/include -L/usr/X11R6/lib conftest.c -lXm -ltiff -lpng -ljpeg -lz -lXpm -lXmu -lXt -lXext -lX11 -lSM -lICE -lgpm -lncurses -lpq -lm 1>&5 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lXm collect2: ld returned 1 exit status configure: failed program was: #line 15458 "configure" #include "confdefs.h" int main(int c,char *v[]){return 0;}
Reinstalling using emerge unmerge xemacs emerge xemacs fails too. Same error. Since xemacs is in "system", in my opinion it is a critical error with priority 1.
I have since gotten this to work, but I don't know how. I rebuild my system using emerge -eav system and xemacs compiled fine later on.
I've tried it too, but without success. After an upgrade xemacs doesn't compile again. Looks like this depends on some part of the system upgraded not needed by xemacs, but the build system. Since xemacs is in gentoo-base and the error isn't fixed, I'd like to see a solution. In my opinion there are two available: 1. Fix the error 2. Kick xemacs out of gentoo-base
(In reply to comment #1) > configure:15462: gcc -o conftest -march=athlon -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -finline-limit=800 -I/usr/X11R6/include -L/usr/X11R6/lib conftest.c -lXm -ltiff -lpng -ljpeg -lz -lXpm -lXmu -lXt -lXext -lX11 -lSM -lICE -lgpm -lncurses -lpq -lm 1>&5 > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lXm so where is you libXm? `ls -l /usr/X11R6/lib/libXm.* /usr/lib/libXm.*`
It looks like this is a duplicate of #77040. Could you please see if this still happens with xemacs-21.4.19, and if so, whether adding USE="athena" fixes this?