Files
termux-packages/packages/nmap
termux-pacman-bot cc317b2fd6 fix(main/nmap): fix configure-time check for PF_PACKET support in libdnet
- Fixes https://github.com/termux/termux-packages/issues/25258

- After 210d6c0847, `nmap` has upgraded to a `libdnet` 1.18.0. Unfortunately, this version of `libdnet` includes a malformed autotools configure-time compiler check for the definition of `ETH_P_ALL` that has a function defintion inside another function definition, causing a near-silent error `error: function definition is not allowed here` when **Clang** is used to compile (as opposed to GCC, which is somehow able to successfully compile the same code):

06ecd5d459/configure (L15565-L15571)

- This works around the problem by patching the `libdnet-stripped/configure` file to run the check in such a way that the code checking for `ETH_P_ALL` properly compiles with no errors.

- Issue opened upstream here: https://github.com/ofalk/libdnet/issues/109
2025-07-08 01:34:59 +00:00
..