This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
Re: Some issues
- From: Paul Smith <psmith at netezza dot com>
- To: insight <insight at sourceware dot org>
- Date: Fri, 09 Feb 2007 15:49:40 -0500
- Subject: Re: Some issues
- References: <1171050528.26723.79.camel@psmithub>
- Reply-to: psmith at netezza dot com
Another build issue:
If I configure insight with LDFLAGS, like so:
CFLAGS=-m32 LDFLAGS=-m32 ../insight-6.6/configure ...
to build a 32-bit app on my 64-bit system, the LDFLAGS don't get passed
down to the tk directory properly and linking wish fails:
make[2]: Entering directory `/user/psmith/src/obj/insight/tk'
make[3]: Entering directory `/user/psmith/src/obj/insight/tk/unix'
gcc tkAppInit.o \
-L/user/psmith/src/obj/insight/tk/unix -ltk8.4 \
-L/user/psmith/src/obj/insight/tcl/unix -ltcl8.4 -L/usr/X11R6/lib -lX11 -ldl -lieee -lm -Wl,-rpath,/opt/net/tools/lib:/usr/X11R6/lib -o wish
/usr/bin/ld: skipping incompatible /user/psmith/src/obj/insight/tk/unix/libtk8.4.a when searching for -ltk8.4
/usr/bin/ld: skipping incompatible /user/psmith/src/obj/insight/tcl/unix/libtcl8.4.a when searching for -ltcl8.4
/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
collect2: ld returned 1 exit status
The incompatible libraries are because all the rest of the build
(including the compiler for tk... the CFLAGS value IS properly passed
down to the tk directory) has the -m32 option so these libraries are all
32-bit.
--
-----------------------------------------------------------------------------
Paul D. Smith <psmith@netezza.com> http://netezza.com
"Please remain calm--I may be mad, but I am a professional."--Mad Scientist
-----------------------------------------------------------------------------
These are my opinions--Netezza takes no responsibility for them.