[zeromq-dev] czmq-3.0.2 and selftest build error

Pieter Hintjens ph at imatix.com
Fri Jun 19 12:23:13 CEST 2015


That's an error in the source; for loop declarations are not allowed.
I'm wondering how that stayed in master...

On Fri, Jun 19, 2015 at 11:47 AM, hhusp house <hhusp at outlook.com> wrote:
> embarrassed  :-(
>
> Initially I got the error:
> ziflist.c: In function ‘ziflist_print’:
> ziflist.c:101: error: ‘for’ loop initial declarations are only allowed in
> C99 mode
> ziflist.c:101: note: use option -std=c99 or -std=gnu99 to compile your code
>
> So I've added -std=c99 as option however it should be  -std=gnu99
>
> ________________________________
> From: hhusp at outlook.com
> To: zeromq-dev at lists.zeromq.org
> Date: Fri, 19 Jun 2015 11:28:30 +0200
>
> Subject: Re: [zeromq-dev] czmq-3.0.2 and selftest build error
>
> With release czmq-3.0.0 the build of the selftest was ok
>
>
>> From: ph at imatix.com
>> Date: Fri, 19 Jun 2015 11:14:06 +0200
>> To: zeromq-dev at lists.zeromq.org
>> Subject: Re: [zeromq-dev] czmq-3.0.2 and selftest build error
>>
>> Sounds like your box needs to be installed properly... try with an
>> older CZMQ on that same box, see if you get warnings and errors.
>>
>> On Fri, Jun 19, 2015 at 10:56 AM, hhusp house <hhusp at outlook.com> wrote:
>> > Platform: CentOS 6.6 x86_64
>> > I've run autogen.sh, configure, make and the make install
>> >
>> > When I try to build the czmq_selftest:
>> >
>> > ./selftest
>> > Rebuilding czmq_selftest...
>> > zarmour.c: In function ‘zarmour_new’:
>> > zarmour.c:95: warning: implicit declaration of function ‘strdup’
>> > zarmour.c:95: warning: assignment makes pointer from integer without a
>> > cast
>> > zbeacon.c:48: error: ‘NI_MAXHOST’ undeclared here (not in a function)
>> > zbeacon.c: In function ‘s_self_prepare_udp’:
>> > zbeacon.c:143: warning: implicit declaration of function ‘getnameinfo’
>> >
>> > etc.....
>> >
>> > with release czmq-3.0.0 the build of the selftest was ok
>> >
>> > regards
>> > Rob
>> >
>> > _______________________________________________
>> > zeromq-dev mailing list
>> > zeromq-dev at lists.zeromq.org
>> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>> >
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
> _______________________________________________ zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>



More information about the zeromq-dev mailing list