[Snort-users] Compile error with open-appid

Theron ZORBAS theronzorbas at ...131...
Sun Apr 13 09:05:58 EDT 2014


Hello Snort-Users,

I'm trying to compile Snort 2.9.7.0.Alpha under OpenBSD 5.5 amd64.
I've added these parameters to configure script:

./configure --disable-static-daq --enable-non-ether-decoders --enable-open-appid

and changed this line #include <endian.h> to <sys/endian.h> located at ./src/dynamic-preprocessors/appid/service_plugins/service_api.h file

But it fails with these error messages:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../src/dynamic-preprocessors/include -I./../libs -I./includes -I.. -I../client_plugins -I../detector_plugins -I../util -I /usr/local/include/luajit-2.0 -I/usr/local/include -I/usr/local/include -DZLIB -DGRE -DMPLS -DPPM_MGR -DNDEBUG -DENABLE_REACT -DENABLE_RESPOND -DENABLE_RESPONSE3 -DSF_WCHAR -DTARGET_BASED -DPERF_PROFILING -DSNORT_RELOAD -DNORMALIZER -DACTIVE_RESPONSE -DFEAT_OPEN_APPID -g -O2 -DSF_VISIBILITY -fvisibility=hidden -fno-strict-aliasing -Wall -c service_rfb.c  -fPIC -DPIC -o .libs/service_rfb.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../src/dynamic-preprocessors/include -I./../libs -I./includes -I.. -I../client_plugins -I../detector_plugins -I../util -I /usr/local/include/luajit-2.0 -I/usr/local/include -I/usr/local/include -DZLIB -DGRE -DMPLS -DPPM_MGR -DNDEBUG -DENABLE_REACT -DENABLE_RESPOND -DENABLE_RESPONSE3 -DSF_WCHAR -DTARGET_BASED -DPERF_PROFILING -DSNORT_RELOAD -DNORMALIZER -DACTIVE_RESPONSE -DFEAT_OPEN_APPID -g -O2 -DSF_VISIBILITY -fvisibility=hidden -fno-strict-aliasing -Wall -c service_rfb.c -o service_rfb.o >/dev/null 2>&1
/bin/sh ../../../../libtool  --tag=CC    --mode=compile gcc -DHAVE_CONFIG_H  -I. -I../../../.. -I../../../../src/dynamic-preprocessors/include  -I./../libs -I./includes   -I.. -I../client_plugins -I../detector_plugins  -I../util -I /usr/local/include/luajit-2.0   -I/usr/local/include -I/usr/local/include -DZLIB -DGRE -DMPLS -DPPM_MGR -DNDEBUG -DENABLE_REACT -DENABLE_RESPOND -DENABLE_RESPONSE3 -DSF_WCHAR -DTARGET_BASED -DPERF_PROFILING -DSNORT_RELOAD -DNORMALIZER -DACTIVE_RESPONSE -DFEAT_OPEN_APPID   -g -O2 -DSF_VISIBILITY -fvisibility=hidden -fno-strict-aliasing -Wall -c -o service_rpc.lo service_rpc.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../src/dynamic-preprocessors/include -I./../libs -I./includes -I.. -I../client_plugins -I../detector_plugins -I../util -I /usr/local/include/luajit-2.0 -I/usr/local/include -I/usr/local/include -DZLIB -DGRE -DMPLS -DPPM_MGR -DNDEBUG -DENABLE_REACT -DENABLE_RESPOND -DENABLE_RESPONSE3 -DSF_WCHAR -DTARGET_BASED -DPERF_PROFILING -DSNORT_RELOAD -DNORMALIZER -DACTIVE_RESPONSE -DFEAT_OPEN_APPID -g -O2 -DSF_VISIBILITY -fvisibility=hidden -fno-strict-aliasing -Wall -c service_rpc.c  -fPIC -DPIC -o .libs/service_rpc.o
service_rpc.c: In function 'rpc_init':
service_rpc.c:229: warning: implicit declaration of function 'getrpcent'
service_rpc.c:229: warning: assignment makes pointer from integer without a cast
service_rpc.c:231: error: dereferencing pointer to incomplete type
service_rpc.c:236: error: dereferencing pointer to incomplete type
service_rpc.c:237: error: dereferencing pointer to incomplete type
service_rpc.c:243: warning: implicit declaration of function 'endrpcent'
*** Error 1 in src/dynamic-preprocessors/appid/service_plugins (Makefile:440 'service_rpc.lo')
*** Error 1 in src/dynamic-preprocessors/appid (Makefile:571 'all-recursive')
*** Error 1 in src/dynamic-preprocessors (Makefile:908 'all-recursive')
*** Error 1 in src/dynamic-preprocessors (Makefile:716 'all')
*** Error 1 in src (Makefile:596 'all-recursive')
*** Error 1 in . (Makefile:529 'all-recursive')
*** Error 1 in /home/theron/snort-2.9.7.0.alpha (Makefile:369 'all')


Any help is appreciated. Thanks.

--
Theron




More information about the Snort-users mailing list