This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
Insight Build Problem on RedHat EL4 U3 EM64T
- From: Gary Schaps <gschaps at sbcglobal dot net>
- To: insight at sourceware dot org
- Date: Fri, 8 Sep 2006 16:12:26 -0700 (PDT)
- Subject: Insight Build Problem on RedHat EL4 U3 EM64T
- Reply-to: Gary Schaps <gschaps at sbcglobal dot net>
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