tcpdump mailing list archives

Re: Message Digest V1 #577


From: Phil Wood <cpw () lanl gov>
Date: Tue, 13 May 2008 17:23:37 -0600

On linux, the shared libraries end up in a hidden directory named .libs

On Sun, 2008-05-11 at 05:20 -0400,
tcpdump-workers-owner () lists tcpdump org wrote:
Message Digest 
Volume 1 : Issue 577 : "text" Format

Messages in this Issue:
  200805/1  : installation of shared libraries for libpcap
    "Adamiec, Larry" <Ladamiec () kentlaw edu>
  200805/2  : Re: installation of shared libraries for libpcap
    Guy Harris <guy () alum mit edu>
  200805/3  : Re: installation of shared libraries for libpcap
    "Adamiec, Larry" <Ladamiec () kentlaw edu>
  200805/4  : Re: installation of shared libraries for libpcap
    Eloy Paris <peloy () chapus net>
  200805/5  : Califica mi foto en "SEXY o NO?"
    drosalri () gmail com

----------------------------------------------------------------------

Date: Wed, 7 May 2008 10:05:45 -0500
From: "Adamiec, Larry" <Ladamiec () kentlaw edu>
To: <tcpdump-workers () lists tcpdump org>
Subject: installation of shared libraries for libpcap
Message-ID: <51B0FD54A7A225489454D4BB1EE49D4E06AD40F5 () MAIL3 kentlaw edu>

Hello,

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

I use the following sequence of commands.

./configure --enable-shared
make
make install

However, the only library I can find is /usr/local/lib/libpcap.a.  I
need the /usr/local/lib/libpcap.so library.  All the documentation says
I am configuring things correctly, but, I must be doing something wrong
because it is not working.

I have also tried the following sequence of commands without success.

./configure
make install-shared

./configure --enable-shared
make install-shared

./configure --enable-shared
make
make install-shared

I am using the GNU version of make, version 3.81.

Any and all help will be appreciated.

Larry Adamiec

------------------------------

Date: Wed, 07 May 2008 10:42:14 -0700
From: Guy Harris <guy () alum mit edu>
To: tcpdump-workers () lists tcpdump org
Subject: Re: installation of shared libraries for libpcap
Message-ID: <4821E9F6.105 () alum mit edu>

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?

------------------------------

Date: Thu, 8 May 2008 14:14:06 -0500
From: "Adamiec, Larry" <Ladamiec () kentlaw edu>
To: <tcpdump-workers () lists tcpdump org>
Subject: Re: installation of shared libraries for libpcap
Message-ID: <51B0FD54A7A225489454D4BB1EE49D4E06AD4104 () MAIL3 kentlaw edu>

The docs I read was part of the ntop distribution.

I did get a shared library created without editing the makefiles. I used the following sequence of commands:

./configure
make shared
make install-shared

Larry


-----Original Message-----
From: tcpdump-workers-owner () lists tcpdump org [mailto:tcpdump-workers-owner () lists tcpdump org] On Behalf Of Guy 
Harris
Sent: Wednesday, May 07, 2008 12:42
To: tcpdump-workers () lists tcpdump org
Subject: Re: [tcpdump-workers] installation of shared libraries for libpcap


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.

------------------------------

Date: Thu, 8 May 2008 15:56:04 -0400
From: Eloy Paris <peloy () chapus net>
To: tcpdump-workers () lists tcpdump org
Subject: Re: installation of shared libraries for libpcap
Message-ID: <20080508195604.GB12606 () chapus net>

Hi Larry,

On Wed, May 07, 2008 at 10:05:45AM -0500, 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.

I use the following sequence of commands.

./configure --enable-shared
make
make install

However, the only library I can find is /usr/local/lib/libpcap.a.  I
need the /usr/local/lib/libpcap.so library.  All the documentation says
I am configuring things correctly, but, I must be doing something wrong
because it is not working.

I have also tried the following sequence of commands without success.

./configure
make install-shared

./configure --enable-shared
make install-shared

./configure --enable-shared
make
make install-shared

I am using the GNU version of make, version 3.81.

Any and all help will be appreciated.

I had to apply the following patch to libpcap to be able to get a
working shared libpcap library on Solaris (don't remember the version of
Solaris this was for, though):

----------------------------------------------------------------------
--- x/libpcap-0.9.5/Makefile.in Sun Dec 14 20:35:03 2003
+++ libpcap-0.9.5/Makefile.in   Tue Feb 13 12:32:12 2007
@@ -112,7 +112,8 @@
 #
 libpcap.so: $(OBJ)
        @rm -f $@
-       ld -shared -o $@.`cat VERSION` $(OBJ)
+       ld -L `pwd` -G -o $@.shared -lsocket -lnsl -lresolv -lc -z allextract -lpcap -zdefaultextract
+       mv $@.shared $@

 # the following rule succeeds, but the result is untested.
 libpcap.dylib: $(OBJ)
@@ -189,7 +190,7 @@

 install-shared: install-shared-$(DYEXT)
 install-shared-so: libpcap.so
-       $(INSTALL_PROGRAM) libpcap.so.`cat VERSION` $(DESTDIR)$(libdir)/libpcap.so.`cat VERSION`
+       $(INSTALL_PROGRAM) libpcap.so $(DESTDIR)$(libdir)/libpcap.so
 install-shared-dylib: libpcap.dylib
        $(INSTALL_PROGRAM) libpcap.`cat VERSION`.dylib $(DESTDIR)$(libdir)/libpcap.`cat VERSION`.dylib
        VER=`cat VERSION`; cd $(DESTDIR)$(libdir) && ln -sf libpcap.$$VER.dylib libpcap.0.dylib;  ln -sf 
libpcap.0.dylib libpcap.dylib
----------------------------------------------------------------------

It's been a while since I used this but I remember that it worked back
then. It's kind of hackish (the real solution would be to move to
libtool, as Guy says) and no promises that it'll work but should give
you a starting point to play with.

Cheers,

Eloy Paris.-

------------------------------

Date: Sat, 10 May 2008 05:10:15 -0400 (EDT)
From: drosalri () gmail com
To: tcpdump-workers () lists tcpdump org
Subject: Califica mi foto en "SEXY o NO?"
Message-ID: <20080510091015.7FBBF1250A () cod sandelman ca>

Me sum a SEXY o NO!
Mira mi foto en http://www.sexyono.com/r/?uid=sh7120847t
      
SEXY o NO es una pgina de entretenimientos que te permite conocer gente, ver y votar fotos de gente de todos los 
pases de habla hispana. Si subes tu foto podrs saber que tan sexy eres a los ojos de los dems y conocer gente de 
todas partes.

Me gustara que la conozcas, y que te suscribas gratuitamente.

Para visitar la web, debers ir a:
http://www.sexyono.com

Saludos,
David



Si no deseas continuar recibiendo invitaciones de parte de tus amigos para ver sus fotos, simplemente accede en la 
siguiente direccin http://www.sexyono.com/unsuscribe?Email=tcpdump-workers () lists tcpdump org

Este mensaje ha sido enviado automticamente mediante los servicios de sexyono.com a pedido del remitente.
Garantizamos que su direccin de correo no ha sido agregada a ninguna lista de envios ni ser compartida con terceros 
en ningn momento.

------------------------------

End of [tcpdump-workers] Message Digest V1 #577
**********
-- 
C. Philip Wood, Int. D.                                                                     
Senior Member of the Internet
Los Alamos National Laboratory
Key fingerprint: 2BB7 A990 44F5 EF4B 4E35  8635 1205 97D3 F6D8 7F39
E-mail: cpw () lanl gov, cornett () arpa net
Phone: 510 667-2598

Attachment: signature.asc
Description: This is a digitally signed message part


Current thread: