Compiling libmemcache in cross-compile
I am using the cross-compile environment from nslu2-linux.org. The toolchain built fine and most packages do so as well however libmemcache fails to do so at all.
It gets up to a certain point then fails complaining about either libtool or thinking the parameters given are commands.
My OS is Ubuntu 8.10 beta. It is using libtool version 2.2.4. Any ideas?
Here is the error code. I can't seem to find a fix for this.
Code:
shinji@shinji-laptop:~/optware/oleg$ make libmemcache
rm -f /home/shinji/optware/oleg/builds/libmemcache/.built
make -C /home/shinji/optware/oleg/builds/libmemcache
make[1]: Entering directory `/home/shinji/optware/oleg/builds/libmemcache'
make all-recursive
make[2]: Entering directory `/home/shinji/optware/oleg/builds/libmemcache'
Making all in doc
make[3]: Entering directory `/home/shinji/optware/oleg/builds/libmemcache/doc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/shinji/optware/oleg/builds/libmemcache/doc'
Making all in include
make[3]: Entering directory `/home/shinji/optware/oleg/builds/libmemcache/include'
Making all in memcache
make[4]: Entering directory `/home/shinji/optware/oleg/builds/libmemcache/include/memcache'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/shinji/optware/oleg/builds/libmemcache/include/memcache'
make[4]: Entering directory `/home/shinji/optware/oleg/builds/libmemcache/include'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/shinji/optware/oleg/builds/libmemcache/include'
make[3]: Leaving directory `/home/shinji/optware/oleg/builds/libmemcache/include'
Making all in src
make[3]: Entering directory `/home/shinji/optware/oleg/builds/libmemcache/src'
if /bin/sh ../libtool --tag=CC --mode=compile /home/shinji/optware/oleg/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -O2 -pipe -I/home/shinji/optware/oleg/staging/opt/include -D__linux -O3 -std=c99 -Wall -pipe -Wpacked -Wdisabled-optimization -MT memcache.lo -MD -MP -MF ".deps/memcache.Tpo" -c -o memcache.lo memcache.c; \
then mv -f ".deps/memcache.Tpo" ".deps/memcache.Plo"; else rm -f ".deps/memcache.Tpo"; exit 1; fi
../libtool: line 790: X--tag=CC: command not found
../libtool: line 823: libtool: ignoring unknown tag : command not found
../libtool: line 790: X--mode=compile: command not found
../libtool: line 956: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 957: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 1100: X/home/shinji/optware/oleg/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc: No such file or directory
../libtool: line 1100: X-DHAVE_CONFIG_H: command not found
../libtool: line 1100: X-I.: command not found
../libtool: line 1100: X-I.: command not found
../libtool: line 1100: X-I..: command not found
../libtool: line 1100: X-I../include: No such file or directory
../libtool: line 1100: X-O2: command not found
../libtool: line 1100: X-pipe: command not found
../libtool: line 1100: X-I/home/shinji/optware/oleg/staging/opt/include: No such file or directory
../libtool: line 1100: X-D__linux: command not found
../libtool: line 1100: X-O3: command not found
../libtool: line 1100: X-std=c99: command not found
../libtool: line 1100: X-Wall: command not found
../libtool: line 1100: X-pipe: command not found
../libtool: line 1100: X-Wpacked: command not found
../libtool: line 1100: X-Wdisabled-optimization: command not found
../libtool: line 1100: X-MT: command not found
../libtool: line 1100: Xmemcache.lo: command not found
../libtool: line 1100: X-MD: command not found
../libtool: line 1100: X-MP: command not found
../libtool: line 1100: X-MF: command not found
../libtool: line 1100: X.deps/memcache.Tpo: No such file or directory
../libtool: line 1100: X-c: command not found
../libtool: line 1151: Xmemcache.lo: command not found
../libtool: line 1156: libtool: compile: cannot determine name of library object from `': command not found
make[3]: *** [memcache.lo] Error 1
make[3]: Leaving directory `/home/shinji/optware/oleg/builds/libmemcache/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/shinji/optware/oleg/builds/libmemcache'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/shinji/optware/oleg/builds/libmemcache'
make: *** [/home/shinji/optware/oleg/builds/libmemcache/.built] Error 2
Any way of checking the binary before risking 100€
Is there a way of checking if binary is OK, before risking the upload?
As oleo explained, diff won't do:
Quote:
Oleg always post-include nmap binary in its firmwares.
So you can never expect the same binary. Even if nmap would not be included, binaries would not be the same becaus of possible difference in direcory tree traversing during LZMA compression.
Also there are several binaries in http://oleg.wl500g.info/1.9.2.7-10/, for each model a different one (diff reveals they ARE different).
How can you change for which target you are compiling. Either that's not written in the guides or I missed it.
Thanx for any help.
Crosscompile for WL500gpv2
Hallo,
I try to crosscompile packages for Wl50gpv2 but did not make it up to now. Using the oleg-target toolchain has no success. Is there a special toolchain for the v2?
Best regards
delmo