Re: Nmap has issues building....

Hanspeter Niederstrasser <[email protected]>
Newsgroups gmane.os.apple.fink.general
Organization Snaggled Works
Message-ID <[email protected]>
On 11/1/21 12:21 PM, Scott Hannahs via Fink-users wrote:
> This is on
> Package manager version: 0.45.99.git
> Distribution version: selfupdate-, 11.6, x86_64
> Trees: local/main stable/main local/injected
> Xcode.app: 12.5.1
> Xcode command-line tools: 12.5.1.0.1.1623191612
> nmap-7.91-1 is set to build with only one job.
> 
> When building I get  a lot of errors all similar to this:
> flag-sort -r g++ -c -I./liblinear -I./liblua -I./libdnet-stripped/include -I/opt/sw/include -I/opt/sw/include -I./libpcap -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-apple-darwin20.6.0\" -DNMAPDATADIR=\"/opt/sw/share/nmap\" -D_FORTIFY_SOURCE=2 -I/opt/sw/include -Os -Wall -fno-strict-aliasing   FingerPrintResults.cc -o FingerPrintResults.o
> In file included from FingerPrintResults.cc:65:
> In file included from ./FingerPrintResults.h:70:
> In file included from ./FPEngine.h:70:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:276:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__bit_reference:14:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/bit:58:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/limits:105:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:417:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:37:
> ./libpcap/version:1:1: error: expected unqualified-id
> 1.9.1
> ^

This is caused by recent c++ compilers having a header called <version> 
(which was not really a smart name) that gets shadowed by the file 
nmap/libpcap/VERSION. I've pushed an update that should fix it.

Hanspeter



_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users
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.