/usr/bin/install -c -m 644 `echo $i | sed 's/.manmisc.in/.manmisc/'` \ /home/test/test/output/host/usr/mipsel-unknown-linux-gnu/sysroot/usr/share/man/man7/`echo $i | sed 's/.manmisc.in/.7/'`; done make[1]: Leaving directory `/home/test/test/output/build/libpcap-1.2.1' for i in $(find /home/test/test/output/host/usr/mipsel-unknown-linux-gnu/sysroot/usr/lib* -name "*.la"); do cp -f $i $i~; /bin/sed -i -e "s:\(['= ]\)/usr:\\1/home/test/test/output/host/usr/mipsel-unknown-linux-gnu/sysroot/usr:g" $i; done >>> libpcap 1.2.1 Installing to target PATH="/home/test/test/output/host/bin:/home/test/test/output/host/usr/bin:/home/test/test/output/host/usr/sbin/:/usr/local/bin:/usr/bin:/bin:/usr/games" PERLLIB="/home/test/test/output/host/usr/lib/perl" /usr/bin/make -j12 DESTDIR="/home/test/test/output/target" install-shared -C /home/test/test/output/build/libpcap-1.2.1/ make[1]: Entering directory `/home/test/test/output/build/libpcap-1.2.1' VER=`cat ./VERSION`; \ MAJOR_VER=`sed 's/\([0-9][0-9]*\)\..*/\1/' ./VERSION`; \ /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -shared -Wl,-soname,libpcap.so.$MAJOR_VER \ -o libpcap.so.$VER pcap-linux.o pcap-usb-linux.o pcap-can-linux.o pcap-netfilter-linux.o fad-getad.o pcap.o inet.o gencode.o optimize.o nametoaddr.o etherent.o savefile.o sf-pcap.o sf-pcap-ng.o pcap-common.o bpf_image.o bpf_dump.o scanner.o grammar.o bpf_filter.o version.o [ -d /home/test/test/output/target/usr/lib ] || \ (mkdir -p /home/test/test/output/target/usr/lib; chmod 755 /home/test/test/output/target/usr/lib) VER=`cat ./VERSION`; \ MAJOR_VER=`sed 's/\([0-9][0-9]*\)\..*/\1/' ./VERSION`; \ /usr/bin/install -c libpcap.so.$VER /home/test/test/output/target/usr/lib/libpcap.so.$VER; \ ln -sf libpcap.so.$VER /home/test/test/output/target/usr/lib/libpcap.so.$MAJOR_VER; \ ln -sf libpcap.so.$MAJOR_VER /home/test/test/output/target/usr/lib/libpcap.so make[1]: Leaving directory `/home/test/test/output/build/libpcap-1.2.1' >>> lua 5.1.4 Extracting gzip -d -c /home/test/dl//lua-5.1.4.tar.gz | tar --strip-components=1 -C /home/test/test/output/build/lua-5.1.4 -xf - >>> lua 5.1.4 Patching package//lua Applying lua-bug3-boolean_expression.patch using patch: patching file src/lcode.c Applying lua-bug4-table.patch using patch: patching file src/lvm.c Applying lua-bug5-debug_getfenv.patch using patch: patching file src/ldblib.c Applying lua-bug6-gc_performance.patch using patch: patching file src/llex.c Applying lua-bug7-string_format.patch using patch: patching file src/lstrlib.c Applying lua-bug8-io_read.patch using patch: patching file src/liolib.c Applying lua-root-path.patch using patch: patching file src/luaconf.h Applying lua-shared-libs.patch using patch: patching file Makefile patching file src/ldo.h patching file src/lfunc.h patching file src/lmem.h patching file src/lstring.h patching file src/lundump.h patching file src/Makefile >>> lua 5.1.4 Configuring >>> lua 5.1.4 Building sed -i -e 's/-O2//' /home/test/test/output/build/lua-5.1.4/src/Makefile sed -i -e 's/\/usr\/local/\/usr/' /home/test/test/output/build/lua-5.1.4/etc/lua.pc /usr/bin/make -j12 CC="/home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc" RANLIB="/home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-ranlib" MYCFLAGS=" -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl" AR="/home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-ar rcu" PKG_VERSION=5.1.4 -C /home/test/test/output/build/lua-5.1.4/src all make[1]: Entering directory `/home/test/test/output/build/lua-5.1.4/src' /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o lapi.o lapi.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o lcode.o lcode.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o ldebug.o ldebug.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o ldo.o ldo.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o ldump.o ldump.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o lfunc.o lfunc.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o lgc.o lgc.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o llex.o llex.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o lmem.o lmem.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o lobject.o lobject.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o lopcodes.o lopcodes.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o lparser.o lparser.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o lstate.o lstate.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o lstring.o lstring.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o ltable.o ltable.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o ltm.o ltm.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o lundump.o lundump.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o lvm.o lvm.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o lzio.o lzio.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o lauxlib.o lauxlib.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o lbaselib.o lbaselib.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o ldblib.o ldblib.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o liolib.o liolib.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o lmathlib.o lmathlib.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o loslib.o loslib.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o ltablib.o ltablib.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o lstrlib.o lstrlib.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o loadlib.o loadlib.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o linit.o linit.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o lua.o lua.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o luac.o luac.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -Wall -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o print.o print.c /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-ar rcu liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o loadlib.o linit.o /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-gcc -o liblua.so.5.1.4 -shared -Wl,-soname="liblua.so.5.1.4" lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o loadlib.o linit.o -nostdlib -lgcc /home/test/test/output/host/usr/bin/mipsel-unknown-linux-gnu-ranlib liblua.a /home/test/test/output/host/usr/lib/gcc/mipsel-unknown-linux-gnu/4.4.6/../../../../mipsel-unknown-linux-gnu/bin/ld: lapi.o: relocation R_MIPS_HI16 against `luaO_nilobject_' can not be used when making a shared object; recompile with -fPIC lapi.o: could not read symbols: Bad value collect2: ld returned 1 exit status make[1]: *** [liblua.so] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/home/test/test/output/build/lua-5.1.4/src' make: *** [/home/test/test/output/build/lua-5.1.4/.stamp_built] Error 2