I'll have some time available for most of next week if you want to send any code (diffs) for me to test on my server. Jonathan
Date: Fri, 20 Sep 2013 16:01:59 +0200 From: [email protected] To: [email protected] Subject: Re: [Ntop] ntopng build failures on FreeBSD 9.1 Hello, i think BDS need adapt makeconfig and code for build. Platforms•Unix (including Linux, *BSD, and MacOSX) You can see BSD have got a Asterisk, and luca want a Diff,seeing the error i think BSD compatibility is not finish with the last SVN, you need adapt code for build. Reading the code i understand that this part depende from OS, and refer to the timezone, you can see this: daylight - initialize time conversion information this is from the system (time) , and on BSD must be different The fail is this: On BSD:the ctime(3) man page concludes with "Use of the external variable tzname is discouraged; the tm_zone entry in the tm structure is preferred." on linux: #include <time.h>void tzset (void);extern char *tzname[2]; extern long timezone; extern int daylight; On linux you can use Extern, but BSD now Not. You can solve it, but not is easy. Regards On Fri, Sep 20, 2013 at 6:24 AM, Luca Deri <[email protected]> wrote: JonathanI need a diff file. Working diff file Luca On Sep 19, 2013, at 9:01 PM, Jonathan Call <[email protected]> wrote: Per your request I changed it to the following: void Ntop::initTimezone() { /* Setup timezone differences We call it all the time as daylight can change during the night and thus we need to have it "fresh" */ tzset(); time_offset = timezone; } It didn't really like it: Ntop.cpp: In member function 'void Ntop::initTimezone()':Ntop.cpp:99: error: invalid conversion from 'char* (*)(int, int)' to 'long int' gmake: *** [Ntop.o] Error 1 Jonathan Date: Thu, 19 Sep 2013 18:39:20 +0200 From: [email protected] To: [email protected] Subject: Re: [Ntop] ntopng build failures on FreeBSD 9.1 Hello, in the code you can see this Ntop.cpp line 99: void Ntop::initTimezone() { /* Setup timezone differences We call it all the time as daylight can change during the night and thus we need to have it "fresh" */ tzset(); time_offset = timezone - (daylight * 3600); } This part refer about time zone, try to delete this part or only "- (daylight * 3600)"first you must test this This is for test and try build again, we can obtain more info if you continue installing, or a fail for BSD because i built yesterday but with other problems. Sorry for this little help, i haven got BSD at this moment for test. Regards Jose On Thu, Sep 19, 2013 at 5:19 PM, Jonathan Call <[email protected]> wrote: Per the recommendations of others I've abandoned ntop and I'm trying to build ntopng on my FreeBSD 9.1 (amd64) server. As has been already posted on this forum, the ntopng-1.0 build fails:...==== Building LuaJIT 2.0.1 ====/usr/local/bin/gmake -C src gmake[2]: Entering directory `/root/ntopng-1.0/third-party/LuaJIT-2.0.1/src'CC lj_cparse.olj_cparse.c: In function 'cp_get_bs':lj_cparse.c:60: sorry, unimplemented: inlining failed in call to 'cp_get': function body not available lj_cparse.c:77: sorry, unimplemented: called from heregmake[2]: *** [lj_cparse.o] Error 1gmake[2]: Leaving directory `/root/ntopng-1.0/third-party/LuaJIT-2.0.1/src'gmake[1]: *** [default] Error 2 gmake[1]: Leaving directory `/root/ntopng-1.0/third-party/LuaJIT-2.0.1'gmake: *** [third-party/LuaJIT-2.0.1/src/libluajit.a] Error 2 I did not see a solution posted for that error so I tried the latest svn download and attempted to build that. LuaJIT-2.0.2 builds without incident but I now get the following error: ...Making all in testsg++ -g -Wall -Ithird-party/credis-0.2.3 -I./third-party/mongoose -Ithird-party/json-c -I./nDPI/src/include -I./third-party/LuaJIT-2.0.2/src -Ithird-party/rrdtool-1.4.7/src/ -I./third-party/zeromq-3.2.3/include -I/usr/local/include -I/opt/local/include -Ithird-party/http-client-c/src/ -Ithird-party/EWAHBoolArray/headers -c PcapInterface.cpp -o PcapInterface.o g++ -g -Wall -Ithird-party/credis-0.2.3 -I./third-party/mongoose -Ithird-party/json-c -I./nDPI/src/include -I./third-party/LuaJIT-2.0.2/src -Ithird-party/rrdtool-1.4.7/src/ -I./third-party/zeromq-3.2.3/include -I/usr/local/include -I/opt/local/include -Ithird-party/http-client-c/src/ -Ithird-party/EWAHBoolArray/headers -c PeriodicActivities.cpp -o PeriodicActivities.o g++ -g -Wall -Ithird-party/credis-0.2.3 -I./third-party/mongoose -Ithird-party/json-c -I./nDPI/src/include -I./third-party/LuaJIT-2.0.2/src -Ithird-party/rrdtool-1.4.7/src/ -I./third-party/zeromq-3.2.3/include -I/usr/local/include -I/opt/local/include -Ithird-party/http-client-c/src/ -Ithird-party/EWAHBoolArray/headers -c Ntop.cpp -o Ntop.o Ntop.cpp: In member function 'void Ntop::initTimezone()':Ntop.cpp:99: error: 'daylight' was not declared in this scopegmake: *** [Ntop.o] Error 1 I'm not much of a programmer so any suggestions would be appreciated. Thank you _______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [email protected]http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
_______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
