tcpdump mailing list archives

Re: build failures on Solaris


From: Guy Harris via tcpdump-workers <tcpdump-workers () lists tcpdump org>
Date: Sun, 8 Aug 2021 01:22:09 -0700

--- Begin Message --- From: Guy Harris <gharris () sonic net>
Date: Sun, 8 Aug 2021 01:22:09 -0700
On Jul 31, 2021, at 3:37 AM, Denis Ovsienko via tcpdump-workers <tcpdump-workers () lists tcpdump org> wrote:

##### Solaris 11 with GCC #####
This is the opposite: the pre-compile libpcap feature test programs
fail to link so all libpcap feature tests fail. However, libpcap is
detected as available and the build process resorts to missing/ and
produces a binary of tcpdump that is mostly functional:

$ /tmp/tcpdump_build_matrix.XX06MD.a/bin/tcpdump -D
/tmp/tcpdump_build_matrix.XX06MD.a/bin/tcpdump: illegal option -- D

The problem seems to be that the feature test linking instead of using
the flags returned by pcap-config points exactly to the 32-bit version
of libpcap and fails:

I've checked in changes to:

        check the bit-width of the build in autotools;

        on Solaris, use the results of the bit-width checks for autotools and CMake to figure out which version of 
pcap-config to run.

See if that clears up the Solaris 11 with GCC build.

--- End Message ---
_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers

Current thread: