[Solved] Cross Compile Error
Added by Dan over 8 years ago
Hello,
Light 1.4.43 does not cross compile in my embedded ARM environment. LIBBSD is the culprit. I cannot add libbsd to my development environment because it requires glibc to compile and we use UCLIBC. Is there a work around for this? A switch like --without-libbsd would be nice.
Thank you,
Dan Pattison
Replies (5)
RE: Cross Compile Error - Added by gstrauss over 8 years ago
Do you know what is being detected that depends on libbsd? If you describe you cross-compilation environment in detail (or point me to a doc to set up my own in the same way you set up yours), I'll try to reproduce the issue.
RE: Cross Compile Error - Added by Dan over 8 years ago
Hello gstrauss,
Thanks for looking into this. Below is the compile error message.
lighttpd-rand.o: In function 'li_rand_reseed': rand.c:(text+0x1e8): undefined reference to 'arc4random_buf' collect2: ld returned 1 exit status
We are using buildroot to cross compile. Arch=ARM. Arch Variant=arm926t. CPU=AT91SAM9G20. LIBC=UCLIBC. UCLIBC=0.9.30.1. GCC=4.3.3.
Googling for undefined reference to 'arc4random_buf' shows libbsd to be the culprit. Let me know if you need more info.
Thanks,
Dan Pattison
RE: Cross Compile Error - Added by gstrauss over 8 years ago
See df61f19d
That might address the issue for you.
What is your base operating system and version?
RE: Cross Compile Error - Added by Dan over 8 years ago
Hello,
Thanks for the reply. Our build system is Centos 6. ARM OS is Linux 2.6.33. I tried those patches, but am having problems with 'automake 1.5' is missing on your system error message. I will battle with this and see if I can get it sorted out and will report back.
Regards,
Dan Pattison
RE: Cross Compile Error - Added by gstrauss over 8 years ago
Before running ./configure ..., try running ./autogen.sh to regenerate some of the autoconf/autotools settings to use the versions you have available.