Jonathan
I 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.o
> lj_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 here
> gmake[2]: *** [lj_cparse.o] Error 1
> gmake[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 tests
> 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 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 scope
> gmake: *** [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

Reply via email to