[tor-dev] OpenWrt cross compile build error in 0.2.6.8
zackw at panix.com
Sun May 24 22:41:33 UTC 2015
On Sun, May 24, 2015 at 6:32 PM, Lars Boegild Thomsen
<lth at reclaim-your-privacy.com> wrote:
> On Sunday 24 May 2015 20:32:41 Ondrej Mikle wrote:
>> There is also patchless way by adding "-std=gnu99" to CFLAGS (aside from C99 it
>> enables GNU extensions needed for compiling against uClibc on OpenWrt).
> Read my first message with this topic. That was my very first attempt. Unfortunately
> that resulted in a lot of new errors which I think was autoconf related mostly. I have
> no idea why that happened.
I see -std=c99 in there, not -std=gnu99.
If -std=gnu99 does not work, try adding -D_GNU_SOURCE=1 or
-D_XOPEN_SOURCE=700. If neither of those work, root around in
uClibc's header files for other macros named _SOMETHING_SOURCE to try.
More information about the tor-dev