[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

(RESOLVED) Re: libpcap0 question



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I finally found out how to do it (RTFMing really does work). In my
/usr/src/libpcap-0.6.2/ dir, i did
ld -o libpcap.so -shared *.o

and that produced what appears to be a working .so libpcap (as in, my
program didn't horribly complain when i started it and it appears to be
working perfectly)

I wrote a patch against the configure script and Makefile.in for
libpcap-0.6.2, which is attached to this message if anyone wants it.

- -- Curtis Hogg [buckminst@inconnu.isu.edu]
- ----------------------------------------------

Cheit's Lament:
	If you help a friend in need, he is sure to remember you--
	the next time he's in need.
- ----------------------------------------------
Email 1 - buckminst@inconnu.isu.edu
Email 2 - buckminst@hotmail.com
WWW - [in transit]

On Fri, 1 Jun 2001, Aaron Brashears wrote:

> On Thu, May 31, 2001 at 03:03:08AM -0600, Curtis Hogg wrote:
> > My question then, is this? How/where did the .so file come from? When I
> > compiled libpcap 0.6.2 from source from www.tcpdump.org, all i got was a
> > libpcap.a file.
>
>
> I'm also working on a project using libpcap and libpcap dev, and I
> noticed this little issue. However, I don't have to redistribute, so I
> wasn't worried.  Try looking at the source, the diffs, and contact the
> maintainer if you're still wondering.
>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBOxmKSrHXK8DxaQMZEQKmogCg3ol+h1o62OHnHe7ZcpTjdYn1Ne8An31o
r0+pkpGdNBw69vHHDpx91l1V
=e37l
-----END PGP SIGNATURE-----
*** configure.old	Sat Jun  2 18:15:47 2001
--- configure	Sat Jun  2 18:16:13 2001
***************
*** 2255,2258 ****
--- 2255,2259 ----
  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  
+ test -z "$INSTALL_SO" && INSTALL_SO='${INSTALL} -m 755'
  
  
***************
*** 2419,2422 ****
--- 2420,2424 ----
  s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  s%@INSTALL_DATA@%$INSTALL_DATA%g
+ s%@INSTALL_SO@%$INSTALL_SO%g
  
  CEOF
*** Makefile.in.old	Wed Jan 17 21:06:24 2001
--- Makefile.in	Sat Jun  2 18:10:06 2001
***************
*** 53,56 ****
--- 53,57 ----
  INSTALL_PROGRAM = @INSTALL_PROGRAM@
  INSTALL_DATA = @INSTALL_DATA@
+ INSTALL_SO = @INSTALL_SO@
  RANLIB = @RANLIB@
  
***************
*** 92,98 ****
  	$(SRC) $(HDR) $(TAGHDR)
  
! CLEANFILES = $(OBJ) libpcap.a $(GENSRC) $(GENHDR) lex.yy.c
  
! all: libpcap.a
  
  libpcap.a: $(OBJ)
--- 93,99 ----
  	$(SRC) $(HDR) $(TAGHDR)
  
! CLEANFILES = $(OBJ) libpcap.a libpcap.so $(GENSRC) $(GENHDR) lex.yy.c
  
! all: libpcap.a libpcap.so
  
  libpcap.a: $(OBJ)
***************
*** 101,104 ****
--- 102,109 ----
  	$(RANLIB) $@
  
+ libpcap.so: $(OBJ)
+ 	@rm -f $@
+ 	ld -o libpcap.so -shared $(OBJ)
+ 
  scanner.c: $(srcdir)/scanner.l
  	@rm -f $@
***************
*** 141,144 ****
--- 146,154 ----
  	$(INSTALL_DATA) libpcap.a $(DESTDIR)$(libdir)/libpcap.a
  	$(RANLIB) $(DESTDIR)$(libdir)/libpcap.a
+ 	$(INSTALL_SO) libpcap.so $(DESTDIR)$(libdir)/libpcap.so.0.6.2
+ 	@rm -f $(DESTDIR)$(libdir)/libpcap.so.0
+ 	ln -s $(DESTDIR)$(libdir)/libpcap.so.0.6.2 $(DESTDIR)$(libdir)/libpcap.so.0
+ 	@rm -f $(DESTDIR)$(libdir)/libpcap.so
+ 	ln -s $(DESTDIR)$(libdir)/libpcap.so.0 $(DESTDIR)$(libdir)/libpcap.so
  	[ -d $(DESTDIR)$(includedir) ] || \
  	    (mkdir -p $(DESTDIR)$(includedir); chmod 755 $(DESTDIR)$(includedir))
***************
*** 157,160 ****
--- 167,173 ----
  uninstall:
  	rm -f $(DESTDIR)$(libdir)/libpcap.a
+ 	rm -f $(DESTDIR)$(libdir)/libpcap.so.0.6.2
+ 	rm -f $(DESTDIR)$(libdir)/libpcap.so.0
+ 	rm -f $(DESTDIR)$(libdir)/libpcap.so
  	rm -f $(DESTDIR)$(includedir)/pcap.h
  	rm -f $(DESTDIR)$(includedir)/pcap-namedb.h

Reply to: