Date: Wed, 07 Mar 2007 23:05:15 -0800 From: Garrett Cooper <youshi10@u.washington.edu> To: freebsd-ports@freebsd.org Subject: Snort fails to compile under 7-Current because ldd can't find -lpcre Message-ID: <45EFB5AB.5060807@u.washington.edu>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45EFB5AB.5060807>