On Jun 5, 2012, at 4:07 PM, Scott Hannahs wrote:

> When building nmap-6.00-4 on OS X 10.6.8 with gcc 4.2.1 it fails unless 
> MaxBuildJobs is set to 1.
> 
> lastest "fink self-update" used.
> 
> or at least it fails when MaxBuildJobs is 8 and it works when set to 1.
> 
> Here is the relevant (I hope) chunk of output
> 
> rm -f libnetutil.a
> ar cr libnetutil.a netutil.o PacketElement.o NetworkLayerElement.o 
> TransportLayerElement.o ARPHeader.o EthernetHeader.o ICMPv4Header.o 
> ICMPv6Header.o IPv4Header.o IPv6Header.o TCPHeader.o UDPHeader.o RawData.o 
> HopByHopHeader.o DestOptsHeader.o FragmentHeader.o RoutingHeader.o  
> PacketParser.o npacket.o
> /usr/bin/ranlib: file: libnetutil.a(NetworkLayerElement.o) has no symbols
> ranlib libnetutil.a
> ranlib: file: libnetutil.a(NetworkLayerElement.o) has no symbols
> rm -f libpcap*.dylib
> ar rc libpcap.a pcap-bpf.o fad-getad.o pcap.o inet.o gencode.o optimize.o 
> nametoaddr.o etherent.o savefile.o sf-pcap.o sf-pcap-ng.o pcap-common.o 
> bpf_image.o bpf_dump.o  scanner.o grammar.o bpf_filter.o version.o  
> VER=`cat ./VERSION`; \
>       MAJOR_VER=A; \
>       COMPAT_VER=1; \
>       CURRENT_VER=`sed 's/[^0-9.].*$//' ./VERSION`; \
>       flag-sort -r gcc -dynamiclib -undefined error -L/sw/lib \
>           -o libpcap.$VER.dylib pcap-bpf.o fad-getad.o pcap.o inet.o 
> gencode.o optimize.o nametoaddr.o etherent.o savefile.o sf-pcap.o 
> sf-pcap-ng.o pcap-common.o bpf_image.o bpf_dump.o  scanner.o grammar.o 
> bpf_filter.o version.o    \
>           -install_name /sw/lib/libpcap.$MAJOR_VER.dylib \
>           -compatibility_version $COMPAT_VER \
>           -current_version $CURRENT_VER
> ranlib libpcap.a
> ### execution of make failed, exit code 2
> Removing runtime build-lock...
> 
> It seems that it is trying to build the library before NetworkLayerElement 
> has been compiled and finds an empty file?  There may be a race condition 
> between when the object file is created and the library file trying to use it 
> before it is closed.  Just a guess.
> 
> -Scott
> 

Odd. It has always built fine for me with MaxBuildJobs set to 4. In any case, 
I've marked it with UseMaxBuildJobs: false now so there should be no more issue.

Daniel


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to