tcpdump mailing list archives

Re: installation of shared libraries for libpcap


From: Guy Harris <guy () alum mit edu>
Date: Wed, 07 May 2008 10:42:14 -0700

Adamiec, Larry wrote:

I am trying to install libpcap-0.9.8 on a Sun SPARC Solaris 9 server.  I
need to install it with shared libraries.

That's not currently supported by our build procedure. The person who contributed that support just contributed Linux support (which might work on other platforms using the GNU linker) and Mac OS X support.

A quick check seems to suggest that, although libtool is GPLed, the ltmain.sh that it generates can be distributed with a libtoolized non-GPL library (libpcap is BSD-licensed) that uses autoconf; the comment at the beginning of ltmain.sh says:

   #
   # As a special exception to the GNU General Public License, if you
   # distribute this file as part of a program that contains a
   # configuration script generated by Autoconf, you may include it under
   # the same distribution terms that you use for the rest of that program.

so we could switch to using libtool, letting us adapt to the twisty little maze of shared library building mechanisms, all different, offered to us by the twisty little maze of UN*Xes, all different, out there.

That doesn't help you in the short term, however. You'll have to hack the Makefile.in file to use the appropriate commands to build a shared library - and hack the configure.in file to use the appropriate "compile position-independent code" flag on Solaris, and then re-generate the configure script, reconfigure, and build.

> All the documentation says
I am configuring things correctly,

Which documentation talks about building shared libraries?
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: