Snort mailing list archives

Re: Static Snort Compilation Problem on Solaris


From: Jeremy Hewlett <jh () sourcefire com>
Date: Mon, 16 Aug 2004 11:08:48 -0400

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.




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
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: