[Snort-users] Static Snort Compilation Problem on Solaris

Jeremy Hewlett jh at ...1935...
Mon Aug 16 08:09:26 EDT 2004


On Sat, Aug 14, Paul Carl wrote:

> When I run this command I get the following error:
> checking for pcap_datalink in -lpcap... no
> 
>    ERROR!  Libpcap library/headers not found, go get it
> from
>    http://www.tcpdump.org
>    or use the --with-libpcap-* options, if you have it
> installed
>    in unusual place

In config.log you can look at what's causing linking to fail. In my
test, I came up with:

Undefined                       first referenced
 symbol                             in file
getprotobyname
/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/../../../libpcap.a(nametoaddr.o)
gethostbyname
/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/../../../libpcap.a(nametoaddr.o)
getservbyname
/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/../../../libpcap.a(nametoaddr.o)
getnetbyname
/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/../../../libpcap.a(nametoaddr.o)
ld: fatal: Symbol referencing errors. No output written to conftest

and poking about for getXXbyYY on Solaris, I found this in the
nsswitch.conf manpage:

  Programs that use the getXXbyYY() functions cannot be linked
  statically  since  the  implementation  of  these  functions
  requires dynamic linker functionality to access  the  shared
  objects /usr/lib/nss_SSS.so.1 at run time.






More information about the Snort-users mailing list