Install Lighttpd-1.4.26 on embedded ARM-Linux
Added by WingHo about 15 years ago
Hi, I try to install lighttpd-1.4.26 on embedded arm-linux
following this link:
http://blog.chinaunix.net/u1/34474/showart_487405.html
root@development-desktop:~# cd lighttpd-1.4.26
root@development-desktop:~/lighttpd-1.4.26# CC=/home/development/Roger_share/arm-2007q3/bin/arm-none-linux-gnueabi-gcc RANLIB=/home/development/Roger_share/arm-2007q3/bin/arm-none-linux-gnueabi-ranlib STRIP=/home/development/Roger_share/arm-2007q3/bin/arm-none-linux-gnueabi-strip ./configure -prefix=/lighttpd -host=arm-none-linux-gnueabi --enable-shared --without-zlib --without-bzip2
It makes the .config
However, I try to "make" command on it.
root@development-desktop:~/lighttpd-1.4.26# make
make all-recursive
make1: Entering directory `/root/lighttpd-1.4.26'
Making all in src
make2: Entering directory `/root/lighttpd-1.4.26/src'
make all-am
make3: Entering directory `/root/lighttpd-1.4.26/src'
/bin/bash ../libtool --tag=CC --mode=link /home/development/Roger_share/arm-2007q3/bin/arm-none-linux-gnueabi-gcc -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -module -export-dynamic -avoid-version -no-undefined -o mod_trigger_b4_dl.la -rpath /lighttpd/lib mod_trigger_b4_dl.lo -L/usr/local/lib -lpcre
libtool: link: /home/development/Roger_share/arm-2007q3/bin/arm-none-linux-gnueabi-gcc -shared .libs/mod_trigger_b4_dl.o -L/usr/local/lib /usr/local/lib/libpcre.so -Wl,-soname -Wl,mod_trigger_b4_dl.so -o .libs/mod_trigger_b4_dl.so
/home/development/Roger_share/arm-2007q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: library search path "/usr/local/lib" is unsafe for cross-compilation
/usr/local/lib/libpcre.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make3: * [mod_trigger_b4_dl.la] Error 1
make3: Leaving directory `/root/lighttpd-1.4.26/src'
make2: [all] Error 2
make2: Leaving directory `/root/lighttpd-1.4.26/src'
make1: [all-recursive] Error 1
make1: Leaving directory `/root/lighttpd-1.4.26'
make: * [all] Error 2
It shows the error. I am the begineer on lighttpd. Can anybody help me fix this problem?
Thx a lot!
Replies (2)
RE: Install Lighttpd-1.4.26 on embedded ARM-Linux - Added by azilber about 15 years ago
disclaimer: I've never done cross compilation before.
But, it looks like your build process is being polluted by local libraries and ld breaks when trying to link shared objects from different architectures (I'm assuming you're not compiling on the arm). You either need to use an ld under here: /home/development/Roger_share/arm-2007q3/bin/
or fix your search paths. Maybe even chroot over to into /home/development/Roger_share/arm-2007q3 and see if that works.
-alex
RE: Install Lighttpd-1.4.26 on embedded ARM-Linux - Added by lightning almost 15 years ago
"Yes you are right!" Does that mean you have managed to cross compile 1.4.26 --with-pcre or just that you agree with the previous post?
If you have got this to work please post the exact ./configure command.
I've spend the last 2 days banging away at this and trawling the net and best info I have got seems to indicate that it's not possible. Configure always finds the native libpcre but then make fails with the mismatch.
The best I managed to get was setting PCRECONFIG before running configure. This made it find the ARM pcre-config but it still fails to get libpcre and turns off the feature.
If anyone knows the right incantation to get this to build , please share it.
TIA.