installing tk4.0 on linux

installing tk4.0 on linux

Post by Kerry Hans » Tue, 23 Jan 1996 04:00:00



I recently upgraded to gcc272 using the ELF How-to and upgraded my kernel to
1.3.57.  In reinstalling my X stuff, tcl7.4 installs cleanly but I ran into a
problem installing the tk4.0 file.  I get the following:

cc -c -O -I. -I./../tcl7.4 -I/usr/X11R6/include -DHAVE_UNISTD_H=1
-DHAVE_LIMITS_H=1 -DSTDC_HEADERS=1 -DTK_FILE_READ_PTR=1      
-DTK_LIBRARY=\"/usr/local/lib/tk4.0\" tkAppInit.c
cc -O -I. -I./../tcl7.4 -I/usr/X11R6/include -DHAVE_UNISTD_H=1
-DHAVE_LIMITS_H=1 -DSTDC_HEADERS=1 -DTK_FILE_READ_PTR=1      
-DTK_LIBRARY=\"/usr/local/lib/tk4.0\" tkAppInit.o libtk.a ../tcl7.4/libtcl.a
-L/usr/X11R6/lib -lX11  -lieee -lm -o wish
libtk.a(tkMain.o): In function `Tk_Main':
tkMain.o(.text+0x274): undefined reference to `XSynchronize'
libtk.a(tkWindow.o): In function `GetScreen':
tkWindow.o(.text+0x1fa): undefined reference to `XOpenDisplay'
libtk.a(tkWindow.o): In function `Tk_CreateWindowFromPath':
tkWindow.o(.text+0xcb3): undefined reference to `XDestroyWindow'
tkWindow.o(.text+0xd0d): undefined reference to `XDestroyIC'

...and so on.

I've tried both the 1.2.X versions of the kernel and the 1.3.X versions.  I've
tried elf and aout formats.  I went back and reinstalled gcc2.6.3 but it won't
install with that compiler either now.  I tried tk4.1a2 with the same result.
 I tried all the different tcl porting suggestions at www.sunlabs.com as well
as various suggestions in the linux and tcl news groups over the last several
weeks. I've messed with tabs and spaces in the makefiles and remain
essentially clueless as to what is causing this.  

Can anyone help me?  

 
 
 

1. Cannot install tk4.0 on Linux :-(

OS: Linux 1.2.8
GCC: 2.7.0

When I compile tk4.0 I get the following errors,

gcc -O -I. -I./../tcl7.4 -I/usr/X11R6/include -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DSTDC_HEADERS=1 -DTK_FILE_READ_PTR=1      -DTK_LIBRARY=\"/usr/lib/tk4.0\" tkAppInit.o libtk.a ../tcl7.4/libtcl.a -L/usr/X11R6/lib -lX11  -lieee -lm -o wish
tkMain.o(.text+0x274): undefined reference to `XSynchronize'
tkWindow.o(.text+0x1fa): undefined reference to `XOpenDisplay'
tkWindow.o(.text+0xcb3): undefined reference to `XDestroyWindow'
tkWindow.o(.text+0xd0d): undefined reference to `XDestroyIC'
tkWindow.o(.text+0xe9f): undefined reference to `XMapWindow'
tkWindow.o(.text+0xf1b): undefined reference to `XRootWindow'
tkWindow.o(.text+0xf4b): undefined reference to `XConfigureWindow'
tkWindow.o(.text+0xfa6): undefined reference to `XCreateWindow'

I get many such errors. Any idea what is the problem?

thanks

--


The Dalmatian Group Inc.        | Home page: http://www.jagunet.com/~mahesh/
  User Interface Specialists    | FAQ Maintainer of TeleUSE GUI Builder

2. Installation woes: No disks that meet the critera in the Solaris install documentation found

3. installing tk4.0 over tk3.6

4. smail compiling problems

5. TK4.1 INSTALL???

6. kde-linux

7. How to: tcl7.5a1 and tk4.1a1 for Linux ELF

8. Installation problem (Network and CDROM)

9. ** Problems (Severe) with Tk4.0b2 and Linux on PC **

10. Compiling tcl7.4 and tk4.0 under LInux for ELF

11. tcl7.5, tk4.1, scotty-2.1.5, linux 2.0.22

12. Linux-Makefile shared [Tcl7.4/Tk4.0]b4 libs, used by tclsh+wish

13. Building Tcl7.4/Tk4.0 as shared libraries in Linux?