[Olsr-dev] [(spam-protected): erro compiling 'master' with musl]

Bastian Bittorf (spam-protected)
Tue Feb 23 21:06:46 CET 2016


----- Forwarded message from Bastian Bittorf <(spam-protected)> -----

Date: Fri, 12 Feb 2016 11:12:14 +0100
From: Bastian Bittorf <(spam-protected)>
To: mailinglist <(spam-protected)>
Subject: erro compiling 'master' with musl

(spam-protected):~/openwrt$ cat logs/package/feeds/routing/olsrd/compile.txt
make[4]: Entering directory `/home/bastian/openwrt/build_dir/target-mips_34kc_musl-1.1.12/olsrd-master'
[CC] src/main.c
src/main.c:48:22: fatal error: execinfo.h: No such file or directory
compilation terminated.
make[4]: *** [src/main.o] Error 1
make[4]: Leaving directory
`/home/bastian/openwrt/build_dir/target-mips_34kc_musl-1.1.12/olsrd-master'
make[3]: ***
[/home/bastian/openwrt/build_dir/target-mips_34kc_musl-1.1.12/olsrd-master/.built]
Error 2

this was introduced with 9e95a76e
execinfo.h is a GNU specific header, and doesn't exist under musl.

as far as i read we should replace the 

#ifdef __linux__
with
#ifdef __GLIBC__

bye, bastian

----- End forwarded message -----



More information about the Olsr-dev mailing list