tcpdump mailing list archives

Re: [clearview-discuss] libdlpi with libpcap


From: Guy Harris <guy () alum mit edu>
Date: Fri, 15 Feb 2008 15:16:41 -0800


On Feb 13, 2008, at 6:14 PM, sagun shakya wrote:

Updated webrev can be found at:

http://cr.opensolaris.org/~sagun/libpcap-review2/

It says, in a comment you added to configure.in:

        + # Due to a gcc bug (6619485), the default search path for 32-bit
        + # libraries does not include /lib, we add it explicitly here.
        + # Also, due to the bug above applications that link to libpcap with
        + # libdlpi will have to add "-L/lib" option to "configure".

(Is 6619485 a GCC Bugzilla bug number?  I don't see it on http://gcc.gnu.org/bugzilla.)

If applications have to add that flag, tcpdump's configure script should probably check to see whether it needs to link with -L/lib in order to link with libpcap; tcpdump is not necessarily linked with ../ libpcap-XXX/libpcap.a - somebody might be building tcpdump on a system that comes with libpcap, and be linking with the system libpcap. Putting that in there also provides a template that other applications can use in their configure scripts, if they're using autoconf.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: