Wireshark-dev: Re: [Wireshark-dev] Building Wireshark on SuSE 11.4 fails, configure does not fi

From: Anders Broman <anders.broman@xxxxxxxxxxxx>
Date: Fri, 13 Oct 2017 07:26:51 +0000

-----Original Message-----
From: Wireshark-dev [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Guy Harris
Sent: den 12 oktober 2017 19:22
To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>
Subject: Re: [Wireshark-dev] Building Wireshark on SuSE 11.4 fails, configure does not find pcap functions.

On Oct 12, 2017, at 4:02 AM, João Valverde <joao.valverde@xxxxxxxxxxxxxxxxxx> wrote:

> On 12-10-2017 11:25, Anders Broman wrote:
>>> 
>>> Is this a built from a git checkout or from a release tarball?  If it's from a git checkout, what happens if you do a "make maintainer-clean", a "./autogen.sh", and then a >"./configure"?
>> It's from an svn clone of the old svn repo kept up to date with the 
>> latest git version. I did check a fresh svn checkout. I could try to build the standard Wireshark From trunk.
> 
> Probably related to https://code.wireshark.org/review/#/c/23329/.
> 
> The problem still needs to be investigated, the autoconf macro is complex and impossible to test for all platforms and libpcap versions.

The comment in your change says

	    # We have pcap-config; we assume that means we have libpcap
	    # installed and that pcap-config will tell us whatever
	    # libraries libpcap needs.

As the creator of pcap-config, I can state unequivocally that if that assumption is incorrect, that would indicate that the pcap-config on the machine in question is buggy.  Whether the bug is the fault of tcpdump.org or of the platform on the machine is another matter.

Anders, what does running

	pcap-config --libs

and

	pcap-config --libs --static

on the SuSE and Ubuntu machines print?

On SuSE:
> pcap-config --libs
If 'pcap-config' is not a typo you can run the following command to lookup the package that contains the binary:
    command-not-found pcap-config


On Ubuntu 14.04
$ pcap-config --libs
-L/usr/lib/x86_64-linux-gnu  -lpcap

$ pcap-config --libs --static
-L/usr/lib/x86_64-linux-gnu -lpcap


Regards
Anders
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe