error while cross-compiling konqueror

Sanjeev Manral konq-e@mail.kde.org
Mon, 21 Oct 2002 14:09:58 +0530


Hi all,


I'm trying to compile konqueror-embedded for powerPC405
I've compiled qte-2.3.1 and it is working.
Now I'm cross compiling konqueror. I've configure konqueror with options:-

CC=ppc_405-gcc CXX=ppc_405-g++ AR=ppc_405-ar RANLIB=ppc_405-ranlib
STRIP=ppc_405-strip ./configure --enable-qt-embedded --enable-embedded
--host=i386 --target=ppc 


when compiling konqueror I'm getting following error-

/***************ERRORS I'm getting******************************/

warning: include location /usr/include/pcre/ is unsafe for cross-compilation
/usr/local/qt/include/qasciidict.h: In method `void
QAsciiDict<void>::deleteItem(void *)':
klibloader.cpp:186:   instantiated from here
/usr/local/qt/include/qasciidict.h:74: warning: `void *' is not a
pointer-to-object type
warning: include location /usr/include/pcre/ is unsafe for cross-compilation
warning: include location /usr/include/pcre/ is unsafe for cross-compilation
In file included from
/opt/hardhat/devkit/ppc/405/bin/../target/usr/include/jpeglib.h:24,
                 from loader_jpeg.cpp:38:
/opt/hardhat/devkit/ppc/405/bin/../target/usr/include/jconfig.h:12: warning:
`HAVE_STDLIB_H' redefined
../../../../config.h:186: warning: this is the location of the previous
definition
warning: include location /usr/include/pcre/ is unsafe for cross-compilation
warning: include location /usr/include/pcre/ is unsafe for cross-compilation
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
/usr/lib/libz.so: In function `uncompress':
/usr/lib/libz.so(.text+0x1624): multiple definition of `uncompress'
/usr/local/qt/lib/libqte.so(.text+0x3ad1c): first defined here
/usr/lib/libz.so: In function `gzflush':
/usr/lib/libz.so(.text+0x1120): multiple definition of `gzflush'
/usr/local/qt/lib/libqte.so(.text+0x2feb8): first defined here
/usr/lib/libz.so: In function `deflate':



-----------------------


khtml_part.o(.text+0x13c8): undefined reference to `__assert_fail'
khtml_part.o(.text+0x13c8): relocation truncated to fit: R_PPC_REL24
__assert_fail
../../konq-embed/kdesrc/khtml/.libs/libkhtml_i.a(khtml_part.o): In function
`KHTMLPart::slotData(KIO::Job *, QArray<char> const &)':
khtml_part.o(.text+0xf9ec): undefined reference to `__assert_fail'
khtml_part.o(.text+0xf9ec): relocation truncated to fit: R_PPC_REL24
__assert_fail
../../konq-embed/kdesrc/khtml/.libs/libkhtml_i.a(khtml_part.o): In function
`KHTMLPart::write(char const *, int)':
khtml_part.o(.text+0x12bdc): undefined reference to `strlen'
khtml_part.o(.text+0x12bdc): relocation truncated to fit: R_PPC_REL24 strlen
../../konq-embed/kdesrc/khtml/.libs/libkhtml_i.a(khtml_part.o): In function
`KHTMLPart::overURL(QString const &, QString const &)':
khtml_part.o(.text+0x19b94): undefined reference to `__xstat'
--------------------------------------
netsupp.o(.text+0x2c): undefined reference to `free'
netsupp.o(.text+0x2c): relocation truncated to fit: R_PPC_REL24 free
netsupp.o(.text+0x3c): undefined reference to `free'
netsupp.o(.text+0x3c): relocation truncated to fit: R_PPC_REL24 free
netsupp.o(.text+0x48): undefined reference to `free'
netsupp.o(.text+0x48): relocation truncated to fit: R_PPC_REL24 free
../../konq-embed/kdesrc/khtml/.libs/libkhtml_i.a(netsupp.o): In function
`kde_freeaddrinfo(kde_addrinfo *)':
netsupp.o(.text+0xcc): undefined reference to `freeaddrinfo'
netsupp.o(.text+0xcc): relocation truncated to fit: R_PPC_REL24 freeaddrinfo
netsupp.o(.text+0xe0): undefined reference to `freeaddrinfo'
netsupp.o(.text+0xe0): relocation truncated to fit: R_PPC_REL24 freeaddrinfo
netsupp.o(.text+0xe8): undefined reference to `free'
netsupp.o(.text+0xe8): relocation truncated to fit: R_PPC_REL24 free
../../konq-embed/kdesrc/khtml/.libs/libkhtml_i.a(netsupp.o): In function
`make_unix(char const *, char const *)':
netsupp.o(.text+0x130): undefined reference to `malloc'
netsupp.o(.text+0x130): relocation truncated to fit: R_PPC_REL24 malloc
netsupp.o(.text+0x14c): undefined reference to `memset'
netsupp.o(.text+0x14c): relocation truncated to fit: R_PPC_REL24 memset
netsupp.o(.text+0x16c): undefined reference to `strlen'
netsupp.o(.text+0x16c): relocation truncated to fit: R_PPC_REL24 strlen
netsupp.o(.text+0x1a0): undefined reference to `malloc'
netsupp.o(.text+0x1a0): relocation truncated to fit: R_PPC_REL24 malloc
netsupp.o(.text+0x1b0): undefined reference to `free'
netsupp.o(.text+0x1b0): relocation truncated to fit: R_PPC_REL24 free
netsupp.o(.text+0x1f8): undefined reference to `strcpy'
netsupp.o(.text+0x1f8): relocation truncated to fit: R_PPC_REL24 strcpy
netsupp.o(.text+0x204): undefined reference to `strcat'
netsupp.o(.text+0x204): relocation truncated to fit: R_PPC_REL24 strcat
netsupp.o(.text+0x21c): undefined reference to `strdup'
netsupp.o(.text+0x21c): relocation truncated to fit: R_PPC_REL24 strdup
../../konq-embed/kdesrc/khtml/.libs/libkhtml_i.a(netsupp.o): In function
`kde_getaddrinfo(char const *, char const *, addrinfo const *, kde_addrinfo
**)':
netsupp.o(.text+0x288): undefined reference to `malloc'
netsupp.o(.text+0x288): relocation truncated to fit: R_PPC_REL24 malloc
netsupp.o(.text+0x2b8): undefined reference to `getaddrinfo'
netsupp.o(.text+0x2b8): relocation truncated to fit: R_PPC_REL24 getaddrinfo
netsupp.o(.text+0x324): undefined reference to `strcmp'
netsupp.o(.text+0x324): relocation truncated to fit: R_PPC_REL24 strcmp
netsupp.o(.text+0x3fc): undefined reference to `freeaddrinfo'
netsupp.o(.text+0x3fc): relocation truncated to fit: R_PPC_REL24
freeaddrinfo
netsupp.o(.text+0x404): undefined reference to `free'
netsupp.o(.text+0x404): relocation truncated to fit: R_PPC_REL24 free
make[3]: *** [konqueror] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


/**********************************/

do I need to add something in configure?
could anybody guide

thanks in advance,
Regards,
Sanjeev