Help
Joey DeFrancesco <[email protected]>
| Newsgroups | gmane.comp.security.nmap.devel |
|---|---|
| Message-ID | <CAMQmNt9bvMRbQ0JjqjzECrx04-hWC7z+ABzLxkTzonSB1wxxpQ@mail.gmail.com> |
Hello,
I am attempting to cross-compile nmap-7.60 for QNX(ARM arch) (or any
version for that matter). And I keep running into some sort of issue or
another. One primary issue I believe has to do with the management of
<time.h> and <sys/time.h> conflicting in quite a few files.
For example I have had to deal a lot of errors such as these:
TADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -Vgcc_ntoarmv7le_cpp
> -Wall -fno-strict-aliasing nmap_dns.cc -o nmap_dns.o
In file included from /opt/qnx650/target/qnx6/usr/include/sys/param.h:35,
from ./libdnet-stripped/include/dnet/os.h:29,
from ./libdnet-stripped/include/dnet.h:12,
from libnetutil/netutil.h:147,
from Target.h:139,
from nmap_dns.cc:198:
/opt/qnx650/target/qnx6/usr/include/time.h:243: error: 'tm' is already
> declared in this scope
cc:
> /opt/qnx650/host/linux/x86/usr/lib/gcc/arm-unknown-nto-qnx6.5.0eabi/4.4.2/cc1plus
> error 1
Makefile:118: recipe for target 'nmap_dns.o' failed
make: *** [nmap_dns.o] Error 1
Once I resolve these issues a whole ton of linking problems come crashing
down. But every ./configure and make seems to give me something new. I was
wondering if anyone has succesfully compiled nmap on QNX-arm before that
could provide some help. Here is the configure options I am using.
./configure CC="qcc" CCFLAGS="-Vgcc_ntoarm7le" CXX="qcc"
> CXXFLAGS="-Vgcc_ntoarmv7le_cpp" --without-liblua --without-zenmap
> --without-openssl --without-nping --without-ndiff --without-ncat
> --host="x86-pc-nto-qnx" LDFLAGS="-Vgcc_ntoarmv7le"
As you can tell the build attempt is very watered down. But I will roll
with anything. Any suggestions or solutions available?
Thanks
_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/