Nmap Development mailing list archives
Link errors while compiling Nmap from SVN (was "Port number in verbose mode")
From: rebellis <rebellis () gmail com>
Date: Wed, 12 May 2010 18:29:54 -0300
Hi I roughly managed to solve the linking errors I mentioned in this thread: http://seclists.org/nmap-dev/2010/q2/412. The problem is that configure is not adding -lnl (for netlink library) to LDFLAGS. I can go around it by setting LDFLAGS myself before running configure and make (tested in revision 17541): rebellis@dagon ~/sources/nmap $ LDFLAGS=-lnl ./configure && make I guess it's a problem in configure.ac but I don't have the knowledge to fix it. Any help is appreciated. Thank you! # Eduardo Rebellis # # God is real, unless declared integer. On Wed, May 12, 2010 at 12:38 AM, rebellis <rebellis () gmail com> wrote:
On Tue, May 11, 2010 at 5:05 PM, David Fifield <david () bamsoftware com> wrote:On Mon, May 10, 2010 at 09:39:18PM -0300, rebellis wrote:Done! Please see patch attached.Thank you. It's committed in r17535. I credited you as "rebellis"; is that all right?rebellis is just perfect! thank you :)I'm looking for tasks like that to get my programming skills in shape again. I have good knowledge of C++ (and C to a lesser extent) but no previous experience in network programming. I thought I could learn a bit by helping Nmap's development. Any hints on where to begin? :)Here's a link with some ideas. http://seclists.org/nmap-dev/2010/q1/958Thanks. I just read all emails linked to this thread. I also checked the FIXME and TODO tags in Nmap's source code and the developers' todo list as well. Hope I can find something to work on.Now regarding the link errors. Revision 17520 aborts compilation with the linking shown below. Please notice I can successfully compile Nmap 5.21. I'm using Arch Linux x86_64, gcc 4.5.0 and GNU Make 3.81. The complete make output goes attached. Thanks in advance.Does this persist after a "make distclean" or a fresh checkout? Maybe you can pinpoint where this started happening. I would test r17350 and r17351, because r17351 changed how libpcap is linked. Do svn update -r 17350 svn update -r 17351Same problem. When Nmap's is linked with -lpcap everything works fine. However when the code is static linked with libpcap/libpcap.a the building process fails. It looks like it's a problem with libpcap on x86_64 architectures according to this bug report: http://bugs.gentoo.org/312895. I'm working on a fix right now. I'll let you know as soon as I have something to show. Regards, -- rebellis
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Link errors while compiling Nmap from SVN (was "Port number in verbose mode") rebellis (May 12)
- Re: Link errors while compiling Nmap from SVN (was "Port number in verbose mode") David Fifield (May 24)