|
|
|
|
Snort Forums Archive
Archive Home » Support » snort 2.3.1 and 2.3.2 compile errors
Please note that the categories listed below represent an archived version of our forums pages. To view the current version and be able to post and reply to threads, please register and login here to go to the full forums pages.
[ Notice: Full Version of This Topic ]
snort 2.3.1 and 2.3.2 compile errors
Posted by rickb on March 11, 2005 02:48:40
inline.c: In function `RejectLayer2':
inline.c:557: error: dereferencing pointer to incomplete type
when configured w/
./configure --enable-inline --with-libpcap-includes=/usr/include --with-libpcap-libraries=/usr/lib --with-postgresql=/usr/local/pgsql --with-libpq-includes=/usr/local/pgsql/include --with-libpq-libraries=/usr/local/pgsql/lib --with-libipq-includes=/usr/include/libipq --with-libipq-libraries=/usr/lib
compiles happily w/these options on 2.3.0, but 2.3.1 and 2.3.2 both error out.
diff'ing inline.c from all 3 versions yields no differences. Odd. |
|
Posted by roesch on March 11, 2005 18:30:16
Can you read your BUGS file and give us a full report (with things like platform, etc)?
-Marty |
|
Posted by rickb on March 16, 2005 03:38:52
System Architecture: x86 (Dell PowerEdge 1650)
Operating System and version: Linux 2.4.27-1 (Debian)
Version of Snort: 2.3.2
none of these apply, since compilation failed :)
What preprocessors you loaded
What rules (if any) you were using
What output plug-ins you loaded
What command line switches you were using
Any Snort error messages
other useful version info:
# autoconf --version
autoconf (GNU Autoconf) 2.59
# automake --version
automake (GNU automake) 1.4-p6
Libnet-1.0.2a
# gcc --version
gcc (GCC) 3.3.5 (Debian 1:3.3.5-8)
following the recommendation of "make distclean && aclocal && autoconf && automake" yields a bunch of:
automake: src/preprocessors/HttpInspect/utils/Makefile.am: not supported: source file `../include/hi_ad.h' is in subdirectory
.
.
automake: src/preprocessors/HttpInspect/user_interface/Makefile.am: not supported: source file `../include/hi_util_xmalloc.h' is in subdirectory
and "make still fails":
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I../src/sfutil\ -I/usr/include/pcap -I../src/output-plugins -I../src/detection-plugins\ -I../src/preprocessors -I../src/preprocessors/flow\ -I../src/preprocessors/portscan -I../src/preprocessors/flow/int-snort\ -I../src/preprocessors/HttpInspect/include -I/usr/local/pgsql/include\ -DENABLE_POSTGRESQL -I/usr/include/libipq -I/usr/local/include -g -O2 -Wall\ -DGIDS -DLIBNET_LIL_ENDIAN -c inline.c
inline.c: In function `RejectLayer2':
inline.c:557: error: dereferencing pointer to incomplete type
make[3]: *** [inline.o] Error 1
make[3]: Leaving directory `/usr/src/snort/snort-2.3.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/snort/snort-2.3.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/snort/snort-2.3.2'
make: *** [all-recursive-am] Error 2
|
|
Posted by rickb on March 24, 2005 03:18:26
well.... I cheated. I copied Makefile.* from snort-2.3.0/src to snort-2.3.2/src and it worked.. and I'm too lazy to figure out why :P |
|
Posted by rickb on April 27, 2005 07:02:29
same issue with 2.3.3, same fix. copy the makefiles from 2.3.1
My questions must now be, why was the formatting of the makefiles changed? |
|
Posted by rickb on May 02, 2005 11:46:56
So I finally got around to looking at this again, in a more thorough way than just copying Makefiles around. Still not as thorough as I should be, but adding a
structure definition such as:
struct ether_addr
{
u_char ether_addr_octet[6];
};
fixed my problem. |
|
|
|
|
|