Nmap Development mailing list archives

nmap doesn't compile on Solaris 9 with Sun Studio Pro


From: Leo Zhadanovsky <leozh () nbcs rutgers edu>
Date: Thu, 14 Dec 2006 16:08:22 -0500

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am trying to compile nmap 4.20 on Solaris 9 with Sun Studio Pro. Here
is my build environment:

PATH="/opt/SUNWspro/bin:${PATH}" \
CC="cc" CXX="CC" CPPFLAGS="-I/usr/local/include" \
LD="/usr/local/gnu/bin/ld" \
LDFLAGS="-L/usr/local/lib -R/usr/local/lib" \
export PATH CC CXX CPPFLAGS LD LDFLAGS

./configure --prefix=/usr/local --with-openssl=/usr/local/ssl

for i in `find . -name '*.cc'`; do mv $i $i.wrong; sed -e 's/__FUNCTION__/__FILE__/g' $i.wrong > $i; done

It compiles, with some warnings and such, but then it dies saying this:

"nmap_dns.cc", line 849: Warning (Anachronism): Formal argument handler of type extern "C" void(*)(void*,void*,void*) 
in call to nsock_connect_udp(void*, void*, extern "C" void(*)(void*,void*,void*), void*, sockaddr*, unsigned, 
unsigned short) is being passed void(*)(void*,void*,void*).
"nmap_dns.cc", line 850: Warning (Anachronism): Formal argument handler of type extern "C" void(*)(void*,void*,void*) 
in call to nsock_read(void*, void*, extern "C" void(*)(void*,void*,void*), int, void*) is being passed 
void(*)(void*,void*,void*).
"nmap_dns.cc", line 1044: Warning: String literal converted to char* in formal argument fname in call to 
parse_etchosts(char*).
8 Warning(s) detected.
ld: fatal: file M: stat failed: No such file or directory
gmake: *** [makefile.dep] Error 1
error: Bad exit status from /var/local/tmp/rpm-tmp.5151 (%build)

How should I go about fixing this?


- --
Leo Zhadanovsky
Student Systems Programmer
Open System Solutions
Rutgers University
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFgb1GJR+ZhPEC9ewRAiVLAJsF33tqlHGjKfD8V9Z+JSDPBjLlwgCeMmhN
6UTNfkEKG25K3wjIoY7YOS4=
=Mreo
-----END PGP SIGNATURE-----

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: