Hi,
I decided to clean my drive and removed the fink installation
(removed the /sw directory). I now want to install xemacs 21.5.4
(current beta version at xemacs.org).
My problem is that the configure script does not complete and
stop with the following message: (last lines from screen output)
checking for module support
checking for dlfcn.h... no
checking for shl_load in -ldld... no
checking for dld_init in -ldld... no
No module support.
*** 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
checking for dlfcn.h... no
checking for shl_load in -ldld... no
checking for dld_init in -ldld... no
No module support.
*** 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.
The problem seems to have something to do with fink: in the
config.log file the compiler looks for libraries in /sw and does not
find them. I have all libraries now installed in /usr/local/lib and I
obtained them from osxgnu. A friend has the same setup and can compile
xemacs just fine; the only difference: he never installed fink in the
past. So my question is, has fink changed a setup file so that the
compiler and linker aren't able to find libraries in usr/local/lib? I
have tried to supply explicit path to the configure script but with no
success.
For information, the end of the config.log file is copied below.
I have posted the full config.log file and configure output on my web
site:
http://users.skynet.be/fa030129/config.log
http://users.skynet.be/fa030129/configure.output
thanks for any reply,
Bernard.
ps: please don't suggest to reinstall fink to get xemacs...before
that I want to educate myself and understand what's going on :-)
char shl_load();
int main() {
shl_load()
; return 0; }
configure:14562: checking for dld_init in -ldld
configure:14578: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wsign-compare -Wshadow -Wpointer-arith -I/usr/X11R6/include -L/usr/X11R6/lib conftest.c -ldld -ltiff -lpng -ljpeg -lz -lXpm -lXmu -lXt -lXext -lX11 -lSM -lICE -lncurses 1>&5
/usr/bin/ld: can't locate file for: -ldld
configure: failed program was:
#line 14567 "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 dld_init();
int main() {
dld_init()
; return 0; }
configure:15273: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wsign-compare -Wshadow -Wpointer-arith -I/usr/X11R6/include -L/usr/X11R6/lib conftest.c -ltiff -lpng -ljpeg -lz -lXpm -lXmu -lXt -lXext -lX11 -lSM -lICE -lncurses 1>&5
/usr/bin/ld: warning can't open dynamic library: /sw/lib/libjpeg.62.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
/usr/bin/ld: warning can't open dynamic library: /sw/lib/libz.1.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
dyld: ./conftest can't open library: /sw/lib/libtiff.3.dylib (No such file or directory, errno = 2)
configure: failed program was:
#line 15269 "configure"
#include "confdefs.h"
int main(int c,char *v[]){return 0;}
int main() {
shl_load()
; return 0; }
configure:14562: checking for dld_init in -ldld
configure:14578: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wsign-compare -Wshadow -Wpointer-arith -I/usr/X11R6/include -L/usr/X11R6/lib conftest.c -ldld -ltiff -lpng -ljpeg -lz -lXpm -lXmu -lXt -lXext -lX11 -lSM -lICE -lncurses 1>&5
/usr/bin/ld: can't locate file for: -ldld
configure: failed program was:
#line 14567 "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 dld_init();
int main() {
dld_init()
; return 0; }
configure:15273: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wsign-compare -Wshadow -Wpointer-arith -I/usr/X11R6/include -L/usr/X11R6/lib conftest.c -ltiff -lpng -ljpeg -lz -lXpm -lXmu -lXt -lXext -lX11 -lSM -lICE -lncurses 1>&5
/usr/bin/ld: warning can't open dynamic library: /sw/lib/libjpeg.62.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
/usr/bin/ld: warning can't open dynamic library: /sw/lib/libz.1.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
dyld: ./conftest can't open library: /sw/lib/libtiff.3.dylib (No such file or directory, errno = 2)
configure: failed program was:
#line 15269 "configure"
#include "confdefs.h"
int main(int c,char *v[]){return 0;}
