httpServer with lighttpd compile problem


#1

Hi!
I compile lighttpd and copy (with compiled .so, config file and pages) via ssh to wp8548 (version 16.10.4) and run it:

lighttpd -m /lib/ -D -f /cfg/lighttpd.conf

In lighttpd version 1.4.49 I have answer:

lighttpd: line 1: can’t create $/lib64/ld-linux-x86-64.so.2GNUGNU´Du²sÙÇ­Bµ*Uàå›: nonexistent directory
lighttpd: line 1: ELF: not found
lighttpd: line 1: syntax error: unexpected word (expecting “)”)

In version 1.4.39:

lighttpd: line 1: ELF: not found
lighttpd: line 2: Ä: not found
lighttpd: line 3: can’t open üÎ#»7M‹²aÊ+Ujíjʼn: no such file
lighttpd: line 5: syntax error: unexpected “)”

After cross compile I run command in Ubuntu

file ./lighttpd
./lighttpd: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=b44475b273d9c7eec28e951dad1942b52a55e0e5, with debug_info, not stripped

So I think that I compile lighttpd for X86 platform, but why?
I write here my commands for cross compile (it’s from httpServer example):

export TOOLCHAIN_DIR=/home/mangoh/legato/packages/legato.toolchain.1.7.3.SWI9X15Y_07121400-wp85-wp750x-native-x86_64-201712131256/resources/native/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
export CCFLAGS="-DDEBUG -g"
export CC=$TOOLCHAIN_DIR/arm-poky-linux-gnueabi-gcc
export RANLIB=$TOOLCHAIN_DIR/arm-poky-linux-gnueabi-ranlib
export STRIP=$TOOLCHAIN_DIR/arm-poky-linux-gnueabi-strip
sudo ./configure --host=arm-poky-linux --enable-static --enable-shared --without-zlib --without-bzip2 --without-pcre --with-openssl --with-openssl-libs=/usr/lib
sudo make

Any suggestion?