build probs under Linux?

From: Andrew Dorrell <andrewd_at_ee.uts.edu.au>
Date: Tue, 3 Sep 1996 14:17:55 +1000 (EST)

Hi,

I am in the process of transferring my work to my new Linux box :-). I have
installed the latest slakware (3.1) and upgraded the kernel to 2.0.15. gcc
version is 2.7.2. When trying to compile STk-3.0, the build fails with:

gcc -rdynamic -O2 -DSTK_VERSION=\"3.0b2\" -DMACHINE=\"Linux-2.0.15-ix86\" -DUSE_DYNLOAD -DUSE_TK -DSTk_CODE -DLINUX -DLINUX_ELF -I/usr/X11R6/include -DHAVE_UNISTD_H=1 -DHAVE_SIGACTION=1 -DHAVE_SELECT=1 -DSTDC_HEADERS=1 -I. -I../Tk -I../Tcl -I../Mp -I/usr/X11R6/include -o stk userinit.o libstk.a ../Mp/libgmp.a ../Tk/libtk.a ../Tcl/libtcl.a \
      -L/usr/X11R6/lib -lX11 -lm
libstk.a(dynload.o): In function `load_and_call':
dynload.o(.text+0x1d): undefined reference to `dlopen'
dynload.o(.text+0x4b): undefined reference to `dlsym'
dynload.o(.text+0xe1): undefined reference to `dlopen'
dynload.o(.text+0xef): undefined reference to `dlerror'
dynload.o(.text+0x115): undefined reference to `dlsym'
make[1]: *** [stk] Error 1
make[1]: Leaving directory `/home/andrew/src/STk-3.0/Src'
make: *** [src] Error 2


On the Sun systems I have been using, these functions are in
libdl and linked in using -ldl... but on my Linux system I
only have a dynamic version /usr/i486-sysv4/lib/libdl.so.1.

Any advice?

Thanks,
-- 
------------------------------------------------------------------------------
Mr Andrew Dorrell
School of Electrical Engineering                 *
University of Technology, Sydney                     *
PO Box 123                                     *
Broadway NSW 2007                                   .  
AUSTRALIA
                                                    *       /---\  Whoo?
Phone:   61 2 330 2395                                      (o o) /
Fax:     61 2 330 2435                                      ( : )  
email:   andrewd_at_ee.uts.edu.au                               ^ ^     
    OR   dorrell_at_ihf.uts.edu.au
------------------------------------------------------------------------------
Received on Tue Sep 03 1996 - 06:20:18 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST