Re: Build failure in nmap-7.98

"Joe Locash" ([email protected] via blfs-dev Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.beyond.devel
Message-ID <[email protected]>
On 8/25/25 7:51 PM, "Douglas R. Reno" ([email protected] via 
blfs-dev Mailing List) wrote:
> On 8/25/25 6:34 PM, Bruce Dubbs ([email protected] via blfs-dev 
> Mailing List) wrote:
>> On 8/25/25 5:39 PM, Joe Locash ([email protected] via blfs-dev 
>> Mailing List) wrote:
>>> On 8/25/25 6:28 PM, "Douglas R. Reno" ([email protected] 
>>> via blfs-dev Mailing List) wrote:
>>>> Hey folks,
>>>>
>>>> I'm building nmap right now so that I can test gnome-nettool. While 
>>>> building it, I've run into the following error:
>>>>
>>>> g++ -Wl,-E  -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 o
>>>> sscan.o output.o payload.o portlist.o portreasons.o protocols.o 
>>>> scan_engine.o scan_engine_connect.o scan_e
>>>> ngine_raw.o scan_lists.o service_scan.o services.o string_pool.o 
>>>> NewTargets.o TargetGroup.o Target.o targe
>>>> ts.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  -llinear -llua
>>>> cd zenmap && /usr/bin/python3 
>>>> install_scripts/utils/version_update.py "7.98"
>>>> /sources/nmap-7.98/nmap-7.98/zenmap/install_scripts/utils/version_update.py:89: 
>>>> DeprecationWarning: 'count
>>>> ' is passed as positional argument
>>>>   version = re.sub(r'(?=[^0-9.])', '+', version, 1)
>>>> >>> Updating version number to "7.98"
>>>> >>> Updating ./zenmapCore/Version.py
>>>> >>> Updating ./zenmapCore/Name.py
>>>> /usr/bin/python3 -m build --no-isolation zenmap/
>>>> * Getting build dependencies for sdist...
>>>> running egg_info
>>>> creating zenmap.egg-info
>>>> writing zenmap.egg-info/PKG-INFO
>>>> writing dependency_links to zenmap.egg-info/dependency_links.txt
>>>> writing entry points to zenmap.egg-info/entry_points.txt
>>>> writing requirements to zenmap.egg-info/requires.txt
>>>> writing top-level names to zenmap.egg-info/top_level.txt
>>>> writing manifest file 'zenmap.egg-info/SOURCES.txt'
>>>> ERROR setuptools_scm._file_finders.git listing git files failed - 
>>>> pretending there aren't any
>>>> reading manifest file 'zenmap.egg-info/SOURCES.txt'
>>>> adding license file 'LICENSE'
>>>> adding license file 'COPYING_HIGWIDGETS'
>>>> writing manifest file 'zenmap.egg-info/SOURCES.txt'
>>>>
>>>> ERROR Missing dependencies:
>>>>         setuptools-gettext
>>>> make: *** [Makefile:354: build-zenmap] Error 1
>>>> 56.1 Elasped Time - nmap-7.98
>>>>
>>>> It looks like nmap-7.98 was put in three days ago.
>>>>
>>>> The module it's asking for is setuptools-gettext, which can be 
>>>> found at https:// pypi.org/project/setuptools-gettext/
>>>>
>>>> Can anyone else reproduce this? 
>>>
>>> I'm seeing the same thing.
>>
>> Hmm.  I did not see that.
>>
>>     sed -i 's/-m build/& --no-isolation/' Makefile.in &&
>>
>>     ./configure --prefix=/usr &&
>>     make $BFLAGS              &&
>>
>>     sed -e '/import imp/d'                \
>>         -e 's/^ndiff = .*$/import ndiff/' \
>>         -i ndiff/ndifftest.py
>>
>>     # Tests need to be in a gui
>>     echo "BLFS Start CHECKS"  &&
>>     (sudo make check || true) &&
>>
>>     echo "BLFS Start INSTALL"  &&
>> #    DESTDIR install is not honored for all operations
>> #    make DESTDIR=$DEST -n install &&
>>     $SUDO make install
>>      :
>>
>> I can attach the build log if desired.
>>
>>   -- Bruce
>>
>>
> Your script is close, but not quite :)
>
> Here's the instructions in the book:
>
> sed -ri Makefile.in \
>     -e 's#-m build#& --no-isolation#'  \
>     -e '/pip install/s#(ZENMAP|NDIFF)DIR\)/#&dist/*.whl#'
>
>
> and your script:
>
>     sed -i 's/-m build/& --no-isolation/' Makefile.in &&
>
>
> I think the second expression might be the cause. 

Neither sed works.

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-dev
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.