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 <[email protected]> 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: [email protected] > To: [email protected] > 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: [email protected] >> Date: Fri, 19 Jun 2015 11:14:06 +0200 >> To: [email protected] >> 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 <[email protected]> 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 >> > [email protected] >> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev >> > >> _______________________________________________ >> zeromq-dev mailing list >> [email protected] >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev > > _______________________________________________ zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
