[I am using Linux kernel 2.2.0-pre6, pgcc/egcs-1.1.1 w/ GNU libc 2.0.109]
SL Baur <steve(a)xemacs.org> writes in xemacs-beta(a)xemacs.org:
Jan Vroonhof <vroonhof(a)math.ethz.ch> writes in
xemacs-beta(a)xemacs.org:
> I was playing with the new dl code on my debian hamm system at home
> which must be a fairly typical glibc2 linux and it only worked when I
> hand patched the makefile to add a "-Wl,-E" to the link flags.
What happens when you feed `--with-shlib=yes' to configure?
sysdll.o: In function `dll_open':
sysdll.o(.text+0x1b): undefined reference to `dlopen'
sysdll.o: In function `dll_close':
sysdll.o(.text+0x36): undefined reference to `dlclose'
sysdll.o: In function `dll_function':
sysdll.o(.text+0x4b): undefined reference to `dlsym'
sysdll.o: In function `dll_variable':
sysdll.o(.text+0x6b): undefined reference to `dlsym'
collect2: ld returned 1 exit status
make[1]: *** [temacs] Error 1
make[1]: Leaving directory `/devel/xemacs/xemacs-21.2/src'
make: *** [src] Error 2
> I guess this should have been configure's job. I did not
investigate
> further.
Yup. I've run one test and autodetection didn't work. It
looks like
it might be a logic error in configure because -ldl is being detected
and added to the link command,
Something is hosed. `-ldl' is only being added if `--with-shlib' is not
specified on the command line. It is _not_ added if `--with-shlib=yes'
is used.
It appears to work when I explicitly add --with-shlib.
I should have let the build complete ...
uname -a: Linux
demeter.xemacs.org 2.2.0-pre6 #2 SMP Sat Jan 9 02:20:26 PST 1999 i686
unknown
./configure '--cflags=-mpentiumpro -O6 -fno-exceptions'
'--error-checking=none' '--debug=no' '--with-mule=yes'
'--with-dialogs=athena3d' '--with-scrollbars=athena3d'
'--use-union-type=no' '--with-xim=xlib' '--with-xfs'
'--mail-locking=file' '--extra-verbose=no' '--with-shlib=yes'
XEmacs 21.2-b8 "Artemis" configured for `i686-pc-linux'.
Where should the build process find the source code? /devel/xemacs/xemacs-21.2
What installation prefix should install use? /usr/local
What operating system and machine description files should XEmacs use?
`s/linux.h' and `m/intel386.h'
What compiler should XEmacs be built with? gcc -mpentiumpro -O6
-fno-exceptions
Should XEmacs use the GNU version of malloc? yes
(Using Doug Lea's new malloc from the GNU C Library.)
Should XEmacs use the relocating allocator for buffers? yes
What window system should XEmacs use? x11
Where do we find X Windows header files? /usr/X11/include
Where do we find X Windows libraries? /usr/X11/lib
Compiling in support for XAUTH.
Compiling in support for XPM images.
Compiling in support for PNG image handling.
Compiling in support for (builtin) GIF image handling.
Compiling in support for JPEG image handling.
Compiling in support for TIFF image handling.
Compiling in support for X-Face message headers.
Compiling in native sound support.
Compiling in support for Berkeley DB.
Compiling in support for ncurses.
Compiling in support for GPM (General Purpose Mouse).
Compiling in Mule (multi-lingual) support.
Compiling in XIM (X11R5+ I18N input method) support.
Using raw Xlib to provide XIM support.
Using XFontSet to provide bilingual menubar.
Compiling in support for Canna on Mule.
Compiling in support for proper session-management.
Using Lucid menubars.
Using Athena-3d scrollbars.
Using Athena-3d dialog boxes.
Compiling in DLL support.
movemail will use "dot-locking" for locking mail spool files.
Using Lisp_Objects with minimal tagbits.