Snort fails to compile under 7-Current because ldd can't find -lpcre
Garrett Cooper
youshi10 at u.washington.edu
Thu Mar 8 07:05:21 UTC 2007
Here's a snippet of the build log.
configure:23477: result: no
configure:23494: checking for dlsym in -lc
configure:23524: cc -o conftest -O2 -pipe -fno-strict-aliasing -Wall
-DDYNAMIC_PLUGIN -I/usr/local/include -I -L/usr/local/lib -lpcre -L
conftest.c -lc -lpcre -lpcap -lm >&5
/usr/bin/ld: cannot find -lpcre
configure:23530: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "snort"
| #define VERSION "2.6.1.3"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define FREEBSD
| #define HAVE_STRINGS_H 1
| #define HAVE_STRING_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_SOCKIO_H 1
| #define HAVE_PATHS_H 1
| #define HAVE_SNPRINTF 1
| #define HAVE_STRLCPY 1
| #define HAVE_STRLCAT 1
| #define HAVE_STRERROR 1
| #define ERRLIST_PREDEFINED
| #define HAVE___FUNCTION__ 1
| #define HAVE_LIBM 1
| #define HAVE_LIBPCAP 1
| #define HAVE_PCRE_H 1
| #define HAVE_LIBPCRE 1
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char dlsym ();
| int
| main ()
| {
| dlsym ();
| ;
| return 0;
| }
I was wondering if anyone knew what the next step would be to checking
where gcc's trying to call up libraries from since I already have pcre
installed.
Thanks!
-Garrett
More information about the freebsd-ports
mailing list