Re: [tor-dev] OpenWrt cross compile build error in 0.2.6.8

2015-05-24 Thread Ondrej Mikle
On 05/24/2015 05:19 AM, Lars Boegild Thomsen wrote: On Friday 22 May 2015 09:20:29 Shawn Nock wrote: Will you post the Makefile for the buildroot package? Sorry guys, I sorted this one out. The culprit was actually my added -std=c99 that made lots of other stuff break. Taking that out it

Re: [tor-dev] OpenWrt cross compile build error in 0.2.6.8

2015-05-24 Thread Lars Boegild Thomsen
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

Re: [tor-dev] OpenWrt cross compile build error in 0.2.6.8

2015-05-24 Thread Ondrej Mikle
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

Re: [tor-dev] OpenWrt cross compile build error in 0.2.6.8

2015-05-24 Thread Lars Boegild Thomsen
On Sunday 24 May 2015 18:41:33 Zack Weinberg wrote: 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. Ah, you

Re: [tor-dev] OpenWrt cross compile build error in 0.2.6.8

2015-05-24 Thread Nick Mathewson
On Sun, May 24, 2015 at 2:32 PM, Ondrej Mikle ondrej.mi...@gmail.com wrote: On 05/24/2015 05:19 AM, Lars Boegild Thomsen wrote: On Friday 22 May 2015 09:20:29 Shawn Nock wrote: Will you post the Makefile for the buildroot package? Sorry guys, I sorted this one out. The culprit was actually

Re: [tor-dev] OpenWrt cross compile build error in 0.2.6.8

2015-05-24 Thread Zack Weinberg
On Sun, May 24, 2015 at 6:32 PM, Lars Boegild Thomsen l...@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).

Re: [tor-dev] OpenWrt cross compile build error in 0.2.6.8

2015-05-23 Thread Lars Boegild Thomsen
On Friday 22 May 2015 09:20:29 Shawn Nock wrote: Will you post the Makefile for the buildroot package? Sorry guys, I sorted this one out. The culprit was actually my added -stdÉ9 that made lots of other stuff break. Taking that out it boiled down to a few uses of: for (int i = 0; ..

Re: [tor-dev] OpenWrt cross compile build error in 0.2.6.8

2015-05-22 Thread Lars Boegild Thomsen
On Friday 22 May 2015 09:20:29 Shawn Nock wrote: Will you post the Makefile for the buildroot package? Sure - attached. The TARGET_CFLAGS += -stdÉ9 was added for this version - it was not necessary in the previous version. -- Lars Boegild Thomsen https://reclaim-your-privacy.com Jabber/XMPP: