[Snort-devel] Error compiling Snort 3.0.0-a1 with enable-linux-smp-stats

Y M snort at ...3347...
Mon Jan 19 08:29:30 EST 2015


Hi,
Not sure if this is a known issue or I am just missing something. When compiling Snort 3.0.0-a1 (Build 132) from 2.9.6-9 (github clone) using either cmake or autotools compilation breaks with below messages. This also happens with the previous release Snort 3.0.0-a1 (Build 130) from 2.9.6-9. The assumption that --enable-linux-smp-stats is available was based on its existence in the --help
cmake:......[ 93%] Building CXX object src/CMakeFiles/snort.dir/main.cc.oLinking CXX executable snortnetwork_inspectors/perf_monitor/libperf_monitor.a(perf_base.cc.o): In function `GetProcessingTime':/usr/src/setup/snort3/src/network_inspectors/perf_monitor/perf_base.cc:544: undefined reference to `sfProcessProcPidStats(_SFPROCPIDSTATS*)'network_inspectors/perf_monitor/libperf_monitor.a(perf.cc.o): In function `InitPerfStats(_SFPERF*)':/usr/src/setup/snort3/src/network_inspectors/perf_monitor/perf.cc:566: undefined reference to `sfInitProcPidStats(_SFPROCPIDSTATS*)'network_inspectors/perf_monitor/libperf_monitor.a(perf_monitor.cc.o): In function `PerfMonitor::tterm()':/usr/src/setup/snort3/src/network_inspectors/perf_monitor/perf_monitor.cc:300: undefined reference to `FreeProcPidStats(_SFPROCPIDSTATS*)'collect2: error: ld returned 1 exit statusmake[2]: *** [src/snort] Error 1make[1]: *** [src/CMakeFiles/snort.dir/all] Error 2make: *** [all] Error 2
autotools:......sfprocpidstats.cc:236:23: error: ‘gpStatCPUs_2’ was not declared in this scope     if(GetProcStatCpu(gpStatCPUs_2, giCPUs))                       ^sfprocpidstats.cc:236:37: error: ‘giCPUs’ was not declared in this scope     if(GetProcStatCpu(gpStatCPUs_2, giCPUs))                                     ^sfprocpidstats.cc:238:13: error: ‘iError’ was not declared in this scope         if(!iError)             ^sfprocpidstats.cc:253:26: error: ‘giCPUs’ was not declared in this scope     for(iCtr = 0; iCtr < giCPUs; iCtr++)                          ^sfprocpidstats.cc:255:25: error: ‘gpStatCPUs_2’ was not declared in this scope         ulCPUjiffies = (gpStatCPUs_2[iCtr].user - gpStatCPUs[iCtr].user) +                         ^sfprocpidstats.cc:255:51: error: ‘gpStatCPUs’ was not declared in this scope         ulCPUjiffies = (gpStatCPUs_2[iCtr].user - gpStatCPUs[iCtr].user) +                                                   ^make[4]: *** [sfprocpidstats.o] Error 1make[4]: *** Waiting for unfinished jobs....make[4]: Leaving directory `/usr/src/setup/snort3/src/network_inspectors/perf_monitor'make[3]: *** [all-recursive] Error 1make[3]: Leaving directory `/usr/src/setup/snort3/src/network_inspectors'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/usr/src/setup/snort3/src'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/usr/src/setup/snort3'make: *** [all] Error 2
Thanks.YM 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20150119/7ebc48de/attachment.html>


More information about the Snort-devel mailing list