I wonder if any of you can help me. I'm trying to compile xemacs
21.1.14 on a new machine that runs Mandrake Linux 8.2 (I'm trying to
build it by hand because, as far as I can tell, the xemacs that comes
as an rpm is defective --- it can't successfully run a package update
because the version of efs that is in the binary won't do anonymous
ftp right. But that's a different story....).
Here's the command line I issue:
./configure --with-ldap --with-xface --with-jpeg --with-tiff
--with-xpm --with-png --with-mule=no --site-libraries=/lib
--site-runtime-libraries=/lib --prefix=/usr --dynamic=yes i386-Mandrake-linux
----------------------------------------------------------------------
Here's the error I get from configure:
*** PANIC *** The C compiler can no longer build working executables.
*** PANIC *** Please examine the tail of config.log for runtime errors.
*** PANIC *** The most likely reason for this problem is that configure
*** PANIC *** links with shared libraries, but those libraries cannot be
*** PANIC *** found at run time.
*** PANIC ***
*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig.
*** PANIC *** On other systems, try telling configure where to find the
*** PANIC *** shared libraries using the --site-runtime-libraries option
*** PANIC ***
*** PANIC *** Another way to shoot yourself in the foot is to specify
*** PANIC *** --with-FEATURE when FEATURE is not actually installed
*** PANIC *** on your system. Don't do that.
----------------------------------------------------------------------
tail config.log shows:
int main() {
dld_init()
; return 0; }
configure:12302: gcc -o conftest -g -O3 -Wall -Wno-switch
-I/usr/X11R6/include -L/lib -L/usr/X11R6/lib -Xlinker -rpath
-Xlinker /lib conftest.c -lcompface -ltiff -lpng -ljpeg -lXpm -lXmu
-lXt -lXext -lX11 -lSM -lICE -ltermcap
-lcurses -lldap -llber -lm -lgcc -lc -lgcc /usr/lib/crtn.o 1>&5
/usr/bin/ld: cannot find -ltermcap
collect2: ld returned 1 exit status
configure: failed program was:
#line 12298 "configure"
#include "confdefs.h"
int main(int c,char *v[]){return 0;}
----------------------------------------------------------------------
But I'm stumped about how to fix this. Per the instructions, I
changed my /etc/ld.so.conf to the following:
/usr/X11R6/lib
/usr/lib/qt2/lib
/lib
----------------------------------------------------------------------
And here's the termcap library:
[rpg at tsathoggua xemacs-21.1.14]$ ls -l /lib/libtermcap*
lrwxrwxrwx 1 root root 19 Jun 13 05:58 /lib/libtermcap.so.2 ->
libtermcap.so.2.0.8*
-rwxr-xr-x 1 root root 11856 Feb 21 11:14 /lib/libtermcap.so.2.0.8*
----------------------------------------------------------------------
Also, you'll see that I tried the --site-runtime-libraries flag.
So I just can't for the life of me figure out WHY the blasted compiler
can't find the library!
any suggestions?
Thanks!
R