[tor-dev] OpenWrt cross compile build error in 0.2.6.8
Ondrej Mikle
ondrej.mikle at gmail.com
Sun May 24 22:56:39 UTC 2015
On 05/25/2015 12:32 AM, Lars Boegild Thomsen 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.
You used "-std=c99" which is strict C99 mode, note that this is "-std=gnu99",
C99 with GNU extensions. I've run into this as well with 0.2.6.x, took me a
while to figure out why it was failing with uClibc.
I've tried to crosscompile unpatched 0.2.6.8 in openwrt buildroot today and it
worked with "-std=gnu99".
Ondrej
More information about the tor-dev
mailing list