[Snort-users] compile error "parse error before `sa_family_t"

mike at ...10621... mike at ...10621...
Sun Nov 23 18:10:04 EST 2003


I get a compile error on snort-2.0.5 when attempting to compile
on a Slackware Linux 2.2.6 .

make[3]: Entering directory `/sys/snort/snort-2.0.5/src/output-plugins'
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src
-I/usr/include/pcap -I../../src/output-plugins
-I../../src/detection-plugins -I../../src/preprocessors
-I/sys/snort/include  -g -O2 -Wall -c `test -f 'spo_alert_unixsock.c' ||
echo './'`spo_alert_unixsock.c
In file included from /usr/include/sys/un.h:1,
                 from spo_alert_unixsock.c:41:
/usr/include/linux/un.h:7: parse error before `sa_family_t'
/usr/include/linux/un.h:7: warning: no semicolon at end of struct or union
/usr/include/linux/un.h:9: parse error before `}'

--------------------------------------------------------------------
I have looked at un.h and it looks OK.
snort-1.8.2 has compiled and run OK on the system.
snort-1.8.2 is located in /usr/local/. I wanted the new version
to be compiled and run-able before wiping out the old one.

I used the parameter --prefix=/sys/snort/ with configure.
this is the directory where both snort and libpcap-0.7.2
are located.

I get the same error if I define
--with-libpcap-libraries=DIR
--with-libpcap-includes=DIR

I am out of places to look.
I could not find a list of dependencies that snort needs i.e.
does it require libpcap-0.7.2? and what maybe else?







More information about the Snort-users mailing list