Snort mailing list archives
Re: error configure --with-snmp
From: "Michael J. McCasland" <mjm () eitsystems com>
Date: Sun, 17 Nov 2002 16:45:46 -0500
Andrew,Thanks. That certainly gets me buy the show stopper however it does seem that GCC has some issue with the snmp libraries. I would also assume that snort will not perform SNMP trapping with the workaround?
Additionally, it seems that the issue is specific to redhat 8. I have it working on 7.2 fine. Let me know how you make out and again thanks for the support.
- Mike McCasland config.log: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:587: checking for a BSD compatible install configure:640: checking whether build environment is sane configure:697: checking whether make sets ${MAKE} configure:743: checking for working aclocal configure:756: checking for working autoconf configure:769: checking for working automake configure:782: checking for working autoheader configure:795: checking for working makeinfo configure:811: checking for gcc configure:924: checking whether the C compiler (gcc ) works configure:940: gcc -o conftest conftest.c 1>&5 configure:966: checking whether the C compiler (gcc ) is a cross-compiler configure:971: checking whether we are using GNU C configure:980: gcc -E conftest.c configure:999: checking whether gcc accepts -g configure:1034: checking for gcc option to accept ANSI C configure:1087: gcc -c -g -O2 conftest.c 1>&5 configure:1113: checking for ranlib configure:1144: checking for gcc configure:1257: checking whether the C compiler (gcc -g -O2 ) works configure:1273: gcc -o conftest -g -O2 conftest.c 1>&5configure:1299: checking whether the C compiler (gcc -g -O2 ) is a cross-compiler
configure:1304: checking whether we are using GNU C configure:1332: checking whether gcc accepts -g configure:1399: checking host system type configure:1423: checking whether byte ordering is bigendian configure:1441: gcc -c -g -O2 -Wall conftest.c 1>&5 configure:1456: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:1451: `not' undeclared (first use in this function) configure:1451: (Each undeclared identifier is reported only once configure:1451: for each function it appears in.) configure:1451: parse error before "big" configure: failed program was: #line 1445 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/param.h> int main() { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } configure:1656: checking for sparc alignment configure:1668: checking how to run the C preprocessor configure:1689: gcc -E conftest.c >/dev/null 2>conftest.out configure:1751: checking for strings.h configure:1761: gcc -E conftest.c >/dev/null 2>conftest.out configure:1791: checking for string.h configure:1801: gcc -E conftest.c >/dev/null 2>conftest.out configure:1831: checking for stdlib.h configure:1841: gcc -E conftest.c >/dev/null 2>conftest.out configure:1871: checking for unistd.h configure:1881: gcc -E conftest.c >/dev/null 2>conftest.out configure:1911: checking for sys/sockio.h configure:1921: gcc -E conftest.c >/dev/null 2>conftest.out configure:1917:24: sys/sockio.h: No such file or directory configure: failed program was: #line 1916 "configure" #include "confdefs.h" #include <sys/sockio.h> configure:1951: checking for paths.h configure:1961: gcc -E conftest.c >/dev/null 2>conftest.out configure:1990: checking for inet_ntoa in -lnsl configure:2009: gcc -o conftest -g -O2 -Wall conftest.c -lnsl 1>&5 configure:2040: checking for socket in -lsocketconfigure:2059: gcc -o conftest -g -O2 -Wall conftest.c -lsocket -lnsl 1>&5
/usr/bin/ld: cannot find -lsocket collect2: ld returned 1 exit status configure: failed program was: #line 2048 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char socket(); int main() { socket() ; return 0; } configure:2226: checking whether printf must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether fprintf must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether syslog must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether puts must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether fputs must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether fputc must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether fopen must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether fclose must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether fwrite must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether fflush must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether getopt must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether bzero must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether bcopy must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether memset must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether strtol must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether strcasecmp must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether strncasecmp must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether strerror must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether perror must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether socket must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether sendto must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether vsnprintf must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether snprintf must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2226: checking whether strtoul must be declared configure:2255: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main': configure:2251: warning: unused variable `pfn' configure:2286: checking for snprintf configure:2314: gcc -o conftest -g -O2 -Wall conftest.c -lnsl 1>&5 configure:2341: checking for strlcpy configure:2369: gcc -o conftest -g -O2 -Wall conftest.c -lnsl 1>&5 /tmp/ccEI7NVk.o: In function `main': /root/snort-1.9.0/configure:2363: undefined reference to `strlcpy' collect2: ld returned 1 exit status configure: failed program was: #line 2346 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char strlcpy(); below. */ #include <assert.h> /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strlcpy(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_strlcpy) || defined (__stub___strlcpy) choke me #else strlcpy(); #endif ; return 0; } configure:2396: checking for strlcat configure:2424: gcc -o conftest -g -O2 -Wall conftest.c -lnsl 1>&5 /tmp/ccmDqeTc.o: In function `main': /root/snort-1.9.0/configure:2418: undefined reference to `strlcat' collect2: ld returned 1 exit status configure: failed program was: #line 2401 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char strlcat(); below. */ #include <assert.h> /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strlcat(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_strlcat) || defined (__stub___strlcat) choke me #else strlcat(); #endif ; return 0; } configure:2451: checking for strerror configure:2479: gcc -o conftest -g -O2 -Wall conftest.c -lnsl 1>&5 configure:2514: gcc -c -g -O2 -Wall conftest.c 1>&5 configure: In function `main':configure:2510: warning: assignment discards qualifiers from pointer target type
configure:2554: checking for floor in -lm configure:2573: gcc -o conftest -g -O2 -Wall conftest.c -lm -lnsl 1>&5 configure:2603: checking for pcap_datalink in -lpcapconfigure:2622: gcc -o conftest -g -O2 -Wall conftest.c -lpcap -lm -lnsl 1>&5
configure:3089: checking for kstat_open in -lkstatconfigure:3108: gcc -o conftest -g -O2 -Wall conftest.c -lkstat -lpcap -lm -lnsl 1>&5
/usr/bin/ld: cannot find -lkstat collect2: ld returned 1 exit status configure: failed program was: #line 3097 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char kstat_open(); int main() { kstat_open() ; return 0; } configure:3251: checking for net-snmp configure:3316: checking for net-snmp/library/snmp_parse_args.hconfigure:3326: gcc -E -I/usr/include -DENABLE_SNMP conftest.c >/dev/null 2>conftest.out
cpp0: warning: changing search order for system directory "/usr/include" cpp0: warning: as it has already been specified as a non-system directory configure: failed program was: #line 3321 "configure" #include "confdefs.h" #include <net-snmp/library/snmp_parse_args.h> Andrew R. Baker wrote:
Michael J. McCasland wrote:I tried from RPM and Source compiling net-snmp under redhat 8 I get this error trying to run configure --with-snmp: checking for net-snmp/library/snmp_parse_args.h... no **********************************************ERROR: unable to find snmp headers (snmp_parse_args.h in net-snmp-5.0.x)checked in the following places /usr/include /usr/include/net-snmp /usr/local/include /usr/local/include/net-snmp Any Ideas?It looks like configure.in has some issues. For now, comment out (add "dnl" to the beginning of) line 624, run autoconf, and then try to configure again. I will see if I can get some time to fix the issues with configure.in today.-A
-------------------------------------------------------This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________ Snort-users mailing list Snort-users () lists sourceforge net Go to this URL to change user options or unsubscribe: https://lists.sourceforge.net/lists/listinfo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.php3?list=snort-users
Current thread:
- error configure --with-snmp Michael J. McCasland (Nov 15)
- Re: error configure --with-snmp Phil Wood (Nov 15)
- Re: error configure --with-snmp Michael J. McCasland (Nov 15)
- News of tcpdump and libcap hacks Gregory W. Ratcliff (Nov 15)
- Re: error configure --with-snmp Andrew R. Baker (Nov 17)
- Re: error configure --with-snmp Michael J. McCasland (Nov 17)
- <Possible follow-ups>
- Re: error configure --with-snmp Justin Jessup (Nov 16)
- Re: error configure --with-snmp Justin Jessup (Nov 17)
- Re: error configure --with-snmp Phil Wood (Nov 15)