« Return to Thread: configure: error: cannot run test program while cross compiling (arm linux uclibc)

configure: error: cannot run test program while cross compiling (arm linux uclibc)

by arreche (Bugzilla) :: Rate this Message:

| View in Thread

Hi,

I'm trying to cross compile monit for arm linux uclibc in this way:

export CC=arm-linux-uclibc-gcc
./configure --without-ssl --host=arm-linux-uclibc

But got this error:

configure: error: in `/home/aentos/Descargas/monit-5.3.2/libmonit':
configure: error: cannot run test program while cross compiling
See `config.log' for more details.
configure: error: ./configure failed for libmonit

So I commented those checks in libmonit/configure and try again getting this error:

src/process/sysdep_LINUX.o: In function `getloadavg_sysdep':
sysdep_LINUX.c:(.text+0x4ac): undefined reference to `getloadavg'
collect2: ld returned 1 exit status

Any idea?

Thanks!

--
.



--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

config.log (59K) Download Attachment

 « Return to Thread: configure: error: cannot run test program while cross compiling (arm linux uclibc)