[Snort-devel] Error building snort 2.9.7.0 on FreeBSD

elof at ...969... elof at ...969...
Mon Nov 3 09:56:20 EST 2014


Hi Ryan.

Will do this in a minute.

Meanwhile, here's another error:

When I tell poudriere to open up the options dialog for snort, nothing 
happens. :-/

#poudriere options -n -j 10amd64 security/snort
====>> Appending to make.conf: /usr/local/share/freebsd-ports/poudriere.d/make.conf
#

Thats it. No options, just that line.


My old options:
# cat poudriere.d/10amd64-options/security_snort/options

# This file is auto-generated by 'make config'.
# Options for snort-2.9.6.1
_OPTIONS_READ=snort-2.9.6.1
_FILE_COMPLETE_OPTIONS_LIST=DOCS FLEXRESP3 GRE IPV6 LRGPCAP MPLS NONETHER 
NORMALIZER PERFPROFILE REACT SOURCEFIRE TARGETBASED ZLIB BARNYARD 
PULLEDPORK DBGSNORT
OPTIONS_FILE_SET+=DOCS
OPTIONS_FILE_SET+=FLEXRESP3
OPTIONS_FILE_UNSET+=GRE
OPTIONS_FILE_UNSET+=IPV6
OPTIONS_FILE_UNSET+=LRGPCAP
OPTIONS_FILE_UNSET+=MPLS
OPTIONS_FILE_UNSET+=NONETHER
OPTIONS_FILE_SET+=NORMALIZER
OPTIONS_FILE_SET+=PERFPROFILE
OPTIONS_FILE_UNSET+=REACT
OPTIONS_FILE_UNSET+=SOURCEFIRE
OPTIONS_FILE_UNSET+=TARGETBASED
OPTIONS_FILE_SET+=ZLIB
OPTIONS_FILE_UNSET+=BARNYARD
OPTIONS_FILE_UNSET+=PULLEDPORK
OPTIONS_FILE_UNSET+=DBGSNORT


I remove the old options and try again:
#rm poudriere.d/10amd64-options/security_snort/options
#poudriere options -n -j 10amd64 security/snort

Now it works! I get the ncurses options dialog.
(but snort still don't compile. Same error as before.) I will now update 
my ports and try building again.

/Elof


On Mon, 3 Nov 2014, Ryan Steinmetz wrote:

> I've removed two configurable options that appear to be required for the
> build to succeed.
>
> Please update your ports tree and try once more.
>
> Thanks,
> -r
>
>
> On (11/03/14 15:00), elof at ...969... wrote:
>> 
>> End of the poudriere build log:
>> 
>> ...
>> ...
>> cc -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I../../../src
>> -I../../../src/sfutil  -I../../../src/output-plugins
>> -I../../../src/detection-plugins -I../../../src/dynamic-plugins
>> -I../../../src/preprocessors -I../../../src/preprocessors/portscan
>> -I../../../src/preprocessors/HttpInspect/include
>> -I../../../src/preprocessors/Session -I../../../src/preprocessors/Stream6
>> -I../../../src/target-based -I../../../src/control
>> -I../../../src/file-process -I../../../src/file-process/libs
>> -I../../../src/side-channel -I../../../src/side-channel/plugins
>> -I/usr/local/include -I/usr/local/include/libnet11 -DLZMA -DPPM_MGR
>> -DNDEBUG -DNOCOREFILE -DENABLE_RESPOND -DENABLE_RESPONSE3 -DSF_WCHAR
>> -DPERF_PROFILING -DSNORT_RELOAD -DNO_NON_ETHER_DECODER -DNORMALIZER
>> -DACTIVE_RESPONSE  -O2 -fstack-protector -fstack-protector
>> -fno-strict-aliasing -DSF_VISIBILITY -fvisibility=hidden -Wall -c
>> snort_stream_icmp.c
>> In file included from snort_stream_icmp.c:35:
>> In file included from
>> ../../../src/preprocessors/Session/snort_session.h:32:
>> ../../../src/preprocessors/Session/session_common.h:140:5: error: unknown
>> type name 'PreprocEnableMask'
>>     PreprocEnableMask enabled_pps;
>>     ^
>> ../../../src/preprocessors/Session/session_common.h:141:5: error: unknown
>> type name 'PreprocEvalFuncNode'
>>     PreprocEvalFuncNode *initial_pp;
>>     ^
>> 2 errors generated.
>> *** Error code 1
>> 
>> Stop.
>> make[5]: stopped in
>> /wrkdirs/usr/ports/security/snort/work/snort-2.9.7.0/src/preprocessors/Stream6
>> *** Error code 1
>> 
>> Stop.
>> make[4]: stopped in
>> /wrkdirs/usr/ports/security/snort/work/snort-2.9.7.0/src/preprocessors
>> *** Error code 1
>> 
>> Stop.
>> make[3]: stopped in
>> /wrkdirs/usr/ports/security/snort/work/snort-2.9.7.0/src
>> *** Error code 1
>> 
>> Stop.
>> make[2]: stopped in /wrkdirs/usr/ports/security/snort/work/snort-2.9.7.0
>> *** Error code 1
>> 
>> Stop.
>> make[1]: stopped in /wrkdirs/usr/ports/security/snort/work/snort-2.9.7.0
>> *** Error code 1
>> 
>> Stop.
>> make: stopped in /usr/ports/security/snort
>> 
>> 
>> 
>> 
>> 
>> Last port version, 2.9.6.2, compiled just fine, so it seems to be
>> something new in 2.9.7.0 that breaks.
>> 
>> /Elof
>
> -- 
> Ryan Steinmetz
> PGP: 9079 51A3 34EF 0CD4 F228  EDC6 1EF8 BA6B D028 46D7
>




More information about the Snort-devel mailing list