Snort mailing list archives

Re: Error compiling Snort 3.0.0-a1 with enable-linux-smp-stats


From: "Russ Combs (rucombs)" <rucombs () cisco com>
Date: Tue, 20 Jan 2015 15:09:12 +0000

Thanks, we will get this cleaned up.

________________________________
From: Y M [snort () outlook com]
Sent: Monday, January 19, 2015 8:29 AM
To: snort-devel () 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
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Snort-devel mailing list
Snort-devel () lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/snort-devel
Archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=snort-devel

Please visit http://blog.snort.org for the latest news about Snort!

Current thread: