[kaffe] Cross-compile error

FAbel klm@lmib.org
Thu, 8 Aug 2002 20:28:39 +0200


On Thursday 08 August 2002 19:06, Mathieu Dube wrote:
> Hi,
> 	have you tried passing --with-libraries=/usr/arm-linux/lib to the
> configure script?
>
> Maybe thats it...?
>

With

./configure --prefix=/home/abel/usr/kaffe-yopy 
--with-includes=/usr/arm-linux/include --with-libraries=/usr/arm-linux/lib

it's the same, I can go on with compilation with this configure:

./configure --prefix=/home/abel/usr/kaffe-yopy --with-staticlib 
--with-libraries=/usr/arm-linux/lib --with-includes=/usr/arm-linux/include 
--with-staticbin --with-staticvm --disable-shared && make

but then I got this

creating .libs/kaffe-binS.c
extracting global C symbols from 
`../../libraries/clib/native/.libs/libnative.a'
extracting global C symbols from `../../libraries/clib/net/.libs/libnet.a'
extracting global C symbols from `../../libraries/clib/io/.libs/libio.a'
extracting global C symbols from `../../libraries/clib/zip/.libs/libzip.a'
extracting global C symbols from `../../libraries/clib/math/.libs/libmath.a'
extracting global C symbols from 
`../../libraries/clib/management/.libs/libmanagement.a'
extracting global C symbols from 
`../../libraries/clib/security/.libs/libsecurity.a'
extracting global C symbols from 
`../../libraries/extensions/microsoft/clib/.libs/libmicrosoft.a'
extracting global C symbols from `../../libraries/clib/awt/X/.libs/libawt.a'
(cd .libs && arm-linux-gcc -c -fno-builtin -fno-rtti -fno-exceptions 
"kaffe-binS.c")
rm -f .libs/kaffe-binS.c .libs/kaffe-bin.nm .libs/kaffe-bin.nmS 
.libs/kaffe-bin.nmT
arm-linux-gcc -O2 -fno-exceptions -Wall -Wstrict-prototypes -fsigned-char -o 
kaffe-bin -static main.o version.o .libs/kaffe-binS.o -Wl,--export-dynamic  
../../libraries/clib/native/.libs/libnative.a -L/usr/arm-linux/lib 
../../libraries/clib/net/.libs/libnet.a ../../libraries/clib/io/.libs/libio.a 
../../libraries/clib/zip/.libs/libzip.a 
../../libraries/clib/math/.libs/libmath.a 
../../libraries/clib/management/.libs/libmanagement.a 
../../libraries/clib/security/.libs/libsecurity.a 
../../libraries/extensions/microsoft/clib/.libs/libmicrosoft.a 
../../libraries/clib/awt/X/.libs/libawt.a /usr/lib/libjpeg.a -lpng -lz 
-L/usr/arm-linux/X11R6/lib -lXext -lSM -lICE -lX11 
../kaffevm/.libs/libkaffevm.a -ldl -lm -Wl,--rpath -Wl,/usr/arm-linux/lib 
-Wl,--rpath -Wl,/usr/arm-linux/X11R6/lib
/usr/arm-linux/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
rm -f .libs/kaffe-binS.o
make[2]: *** [kaffe-bin] Error 1
make[2]: Leaving directory `/home/abel/usr/kaffe-1.0.7/kaffe/kaffe'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/abel/usr/kaffe-1.0.7/kaffe'
make: *** [all-recursive] Error 1

strange because libXext is there in /usr/arm-linux/X11R6/lib

ciao,
	Fabio.