Build STk on Linux help

From: Qing Zhu <>
Date: Mon, 28 Oct 1996 19:48:17 -0600

Sorry my previous mail has a mess because I cut and paste poorly
Here is my problem. I want to build STk on Linux. The configure
shut the option for "-ldl"

checking for -ldl... no

While there is a in /lib on my computer. How to
enforce this option?

The summary of the configuration is:

   Your system is LINUX_ELF
   C compiler used: gcc
   Compilation options: -O2
   Dynamic loading is enabled
   You have choosed the following options
                Multiple precision library: libgmp
                Hash tables support: yes
                Posix support: yes
                STklos support: yes
                Socket support: yes
                Regexp support: yes
                Process support: yes
                Html support: yes
                Pixmap Images support: yes
If this is correct, you can just type 'make' now at your shell prompt.
Otherwise, rerun configure with proper options (see the README file for
a description of STk configure options.)

I just ignore it and try to make it. It runs to the final
stage while linking for stk and there are huge number of
errors, all X names are not found and ldopen, ldsym, etc
cannot be found either. Could anyone tell me what's wrong
there? Helps are highly appreciated. (We need to use it
for Programming Language Class very soon.)

/bin/rm -f stk
gcc -rdynamic -O2 -DSTK_VERSION=\"3.1\" -DMACHINE=\"Linux-1.X-ix86\" -DUSE_DYNLOAD -DUSE_TK -DSTk_CODE -DLINUX -DUSE_STKLOS -DLINUX_ELF -I/usr/X11R6/include -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SIGACTION=1 -DHAVE_SELECT=1 -DSTDC_HEADERS=1 -I. -I../Tk/generic -I../Tk/unix -I../Tcl -I../Mp -I/usr/X11R6/include -o stk userinit.o libstk.a ../Mp/libgmp.a ../Tk/unix/libtk.a ../Tcl/libtcl.a ../Tcl/libevtcl.a \
      -L/usr/X11R6/lib -lX11 -lm
libstk.a(tk-main.o): In function `Tk_main':
tk-main.o(.text+0x144): undefined reference to `XSynchronize'
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'


../Tk/unix/libtk.a(tkUnixEvent.o): In function `DisplayCheckProc':
tkUnixEvent.o(.text+0xaa): undefined reference to `XEventsQueued'
tkUnixEvent.o(.text+0xc6): undefined reference to `XNoOp'
tkUnixEvent.o(.text+0xce): undefined reference to `XFlush'
tkUnixEvent.o(.text+0xe4): undefined reference to `XQLength'
tkUnixEvent.o(.text+0xf8): undefined reference to `XNextEvent'

make[1]: *** [stk] Error 1
make[1]: Leaving directory `/users/zhuqing/STk/STk-3.1/Src'
make: *** [src] Error 2

QING ZHU, Dept. of Computer Sciences, UT-Austin;
+1 (512) 482-8523 (H), +1 (512) 471-9586 (O)
Received on Tue Oct 29 1996 - 02:47:54 CET

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