Skip to content

Ndiff build failure #3115

Closed
Closed
@benpratt

Description

@benpratt

Given the time an no additional reports I'm not sure if this is a dependency issue or something else but I'm running a fully updated FreeBSD 14.2 system with Python 3.11

After commit c66baf7 a Ndiff gmake generates the following error:

Compiling nmap
rm -f nmap
c++ -Wl,-E -L/usr/local/lib -Lnbase -Lnsock/src/ -o nmap charpool.o FingerPrintResults.o FPEngine.o FPModel.o idle_scan.o MACLookup.o nmap_dns.o nmap_error.o nmap.o nmap_ftp.o NmapOps.o NmapOutputTable.o nmap_tty.o osscan2.o osscan.o output.o payload.o portlist.o portreasons.o protocols.o scan_engine.o scan_engine_connect.o scan_engine_raw.o scan_lists.o service_scan.o services.o string_pool.o NewTargets.o TargetGroup.o Target.o targets.o tcpip.o timing.o traceroute.o utils.o xml.o nse_main.o nse_utility.o nse_nsock.o nse_db.o nse_dnet.o nse_fs.o nse_nmaplib.o nse_debug.o nse_lpeg.o nse_openssl.o nse_ssl_cert.o nse_libssh2.o nse_zlib.o main.o -lnsock -lnbase -lpcre2-8 -lpcap -lssh2 -lssl -lcrypto -lz libnetutil/libnetutil.a ./libdnet-stripped/src/.libs/libdnet.a ./liblua/liblua.a ./liblinear/liblinear.a
/usr/local/bin/python3 -m build ndiff/
/usr/local/bin/python3: No module named build
gmake: *** [Makefile:378: build-ndiff] Error 1

When configuring with "--without-ndiff" the error does not occur.

The following change in Makefile.in appears to be the issue:

build-ndiff:
- cd $(NDIFFDIR) && $(PYTHON) setup.py build $(if $(DESTDIR),--executable "$(DEFAULT_PYTHON_PATH)")
+ $(PYTHON) -m build $(NDIFFDIR)/

Any assistance to help understand why this error occurs, and how to resolve it with the inclusion of ndiff, would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions