This is the mail archive of the insight@sourceware.org mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Solution to Insight TCL Build Problem on 64-bit RedHat EL4 U3


Solution:  The Insight TCL build looks for libX11.so in "/usr/X11R6/lib64".  It should exist there as a symbolic link but it doesn't, so one has to create the link.  Then, the tcl/unix Makefile has to be modified so that it searches "/usr/X11R6/lib64".

----- Original Message ----
From: Gary Schaps <gschaps@sbcglobal.net>
To: insight@sourceware.org
Sent: Friday, September 8, 2006 4:12:26 PM
Subject: Insight Build Problem on RedHat EL4 U3 EM64T


Summary: 
tk build either (1) rejects 32-bit X11 library it finds in /usr/X11R6/lib, or (2) can't find X11 library in after makefile is changed to /usr/X11R6/lib64 

Symptom: 
gcc -c -g -O2 -Wall -Wconversion -Wno-implicit-int -fPIC -I/home/gschaps/src/insight-6.5/tk/unix -I/home/gschaps/src/insight-6.5/tk/unix/../generic -I/home/gschaps/src/insight-6.5/tk/unix/../bitmaps -I/home/gschaps/src/insight-6.5/tcl/generic -I/usr/X11R6/include -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DSTATIC_BUILD=1 -DPEEK_XCLOSEIM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_PW_GECOS=1 -DTCL_NO_DEPRECATED /home/gschaps/src/insight-6.5/tk/unix/tkAppInit.c 
gcc tkAppInit.o \ 
-L/home/gschaps/src/insight-6.5/tk/unix -ltk8.4 \ 
-L/home/gschaps/src/insight-6.5/tcl/unix -ltcl8.4 -L/usr/X11R6/lib64 -lX11 -ldl -lieee -lm -Wl,-rpath,/usr/local/lib:/usr/X11R6/lib64 -o wish
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.a when searching for -lX11 
/usr/bin/ld: cannot find -lX11 

Fixes Tried: 
upgraded automake 1.9.2 -> 1.9.6 (autoconf is 2.59) 
ran configure "--enable-64bit" 
manually changed /tk/unix/Makefile ... 
    instances of "/usr/X11R6/lib" changed to "/usr/X11R6/lib64" 
    passed "-rpath-link,/usr/X11R6/lib64" to ld 
manually changed instances of "/usr/X11R6/lib" to "/usr/X11R6/lib64" in /tk/unix/tkConfig.sh 

Any suggestions will be appreciated. 

Thanks. 

Gary Schaps


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]