[kaffe] arm linux compilation problem of kaffe-1.1.0

Dalibor Topic robilad at yahoo.com
Mon Jun 16 00:13:01 PDT 2003


Hi Sankalpa,

--- Sankalpa <sgamwarige at sri.crossvue.com> wrote:

> arm-linux-gcc -g -O2 -Wall -Wstrict-prototypes -fsigned-char -o kaffeh
> sigs.o support.o main.o mem.o inflate.o jar.o utf8const.o readClass.o
> constants.o debug.o  -L/tmp/qtopia/qtopia/qt-2.3.4/lib -lqte -Wl,--rpath
> -Wl,/usr/local/arm/2.95.3/lib
> /tmp/qtopia/qtopia/qt-2.3.4/lib/libqte.so: undefined reference to `cos'
> /tmp/qtopia/qtopia/qt-2.3.4/lib/libqte.so: undefined reference to `sin'
> /tmp/qtopia/qtopia/qt-2.3.4/lib/libqte.so: undefined reference to `pow'
> collect2: ld returned 1 exit status
> make[2]: *** [kaffeh] Error 1
> 
> 
> What may be the reason for this.

It uses mathematical functions in libqte, but doesn't link to libm. That should
be easy to fix by adding a -lm to the linking command above. Does

arm-linux-gcc -g -O2 -Wall -Wstrict-prototypes -fsigned-char -o kaffeh
 sigs.o support.o main.o mem.o inflate.o jar.o utf8const.o readClass.o
 constants.o debug.o  -L/tmp/qtopia/qtopia/qt-2.3.4/lib -lqte -Wl,--rpath
 -Wl,/usr/local/arm/2.95.3/lib -lm

work?

What puzzles me though, is that it tries to link qte with kaffeh. There is no
reason for kaffeh to use Qt. I'll have a look at it. 

The simple fix should be to just add -lm to QPE's QT_CXXFLAGS in gwqt.m4, and
run developers/autogen.sh.

cheers,
dalibor topic

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com




More information about the kaffe mailing list