Closed Wojtek242 closed 1 year ago
So for example, if the user has a different libpcap.so file name the following might happen:
libpcap
is at its newest version which means that the default assumed by build.rs
is good enough.libpcap
is not at its newest which means the build will fail. The user should then consult the pcap
README.LIBPCAP_LIBDIR
and LIBPCAP_VER
. The LIBPCAP_LIBDIR
will fail since build.rs
still assumes the libpcap.so
name, but as a final fallback the user can set LIBPCAP_VER
.So in short, the original problem is solved. Either libpcap
is at its newest version or the user has to set LIBPCAP_VER
.
The
build.rs
script is updated to no longer crash if it cannot findlibpcap
to query for its version. It will instead assume that the user is by default using the newest API version. For older API versions the user should consult the README.