Nmap Development mailing list archives

Re: DNS broken in 5.21


From: Fyodor <fyodor () insecure org>
Date: Thu, 28 Jan 2010 18:13:02 -0800

On Thu, Jan 28, 2010 at 08:32:06PM +0100, Simon wrote:
On 01/28/2010 08:06 PM, David Fifield wrote:

I've  got a bit more info now - just tried 5.00 from the fedora
repositories on a 64-bit f12 laptop and it doesn't have the problem, and
also doesn't have nscd running.

I installed the 5.21 rpm from insecure.org and its broken now, so i'd
say its probably a packaging thing.

Interesting.  Has anyone else been able to reproduce this?  I just
tried installing the 5.21 RPMs on 64-bit F11.  DNS worked fine from
Nmap whether nscd was running or not.  I don't presently have a F12
machine to try.

I currently build the RPMs by statically compiling them on CentOS 5.3,
which corresponds to RHEL 5.3.  It is worth noting that when you
statically compile Nmap on Linux, you get (and have for years) these
warnings:

tcpip.o: In function `resolve(char*, sockaddr_storage*, unsigned int*, int)':
/home/fyodor/nmap/tcpip.cc:903: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the 
shared libraries from the glibc version used for linking
nmap.o: In function `nmap_main(int, char**)':
/home/fyodor/nmap/nmap.cc:1539: warning: Using 'gethostbyname' in statically linked applications requires at runtime 
the shared libraries from the glibc version used for linking
(you get more: I just showed a couple here)

Maybe FC12 uses a newer/different glibc?  I don't know if there is any
good way to statically link Nmap without having this problem.  Maybe
we can or should tell gcc to keep glibc dynamic, but make the rest
static?  The other functions which give me these messages are
'dlopen', 'getpwuid', 'getnetbyname', 'getprotobyname', and
'getservbyname'.

Cheers,
-F
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: