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

Russ Combs (rucombs) rucombs at ...3461...
Tue Jan 20 10:09:12 EST 2015


Thanks, we will get this cleaned up.

________________________________
From: Y M [snort at ...3347...]
Sent: Monday, January 19, 2015 8:29 AM
To: snort-devel at lists.sourceforge.net
Subject: [Snort-devel] Error compiling Snort 3.0.0-a1 with enable-linux-smp-stats

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.o
Linking CXX executable snort
network_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 status
make[2]: *** [src/snort] Error 1
make[1]: *** [src/CMakeFiles/snort.dir/all] Error 2
make: *** [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 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/usr/src/setup/snort3/src/network_inspectors/perf_monitor'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/setup/snort3/src/network_inspectors'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/setup/snort3/src'
make[1]: *** [all-recursive] Error 1
make[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/20150120/0b11c60f/attachment.html>


More information about the Snort-devel mailing list