From wxs@atarininja.org  Wed Jan  3 16:48:29 2007
Return-Path: <wxs@atarininja.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 1777B16A403
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  3 Jan 2007 16:48:29 +0000 (UTC)
	(envelope-from wxs@atarininja.org)
Received: from syn.atarininja.org (syn.csh.rit.edu [129.21.60.158])
	by mx1.freebsd.org (Postfix) with ESMTP id EB12B13C441
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  3 Jan 2007 16:48:28 +0000 (UTC)
	(envelope-from wxs@atarininja.org)
Received: by syn.atarininja.org (Postfix, from userid 1001)
	id 499865C58; Wed,  3 Jan 2007 11:26:35 -0500 (EST)
Message-Id: <20070103162635.499865C58@syn.atarininja.org>
Date: Wed,  3 Jan 2007 11:26:35 -0500 (EST)
From: Wesley Shields <wxs@atarininja.org>
Reply-To: Wesley Shields <wxs@atarininja.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: daniel@roe.ch
Subject: [PATCH]: security/nmap is broken under AMD64.
X-Send-Pr-Version: 3.113
X-GNATS-Notify: daniel@roe.ch

>Number:         107481
>Category:       ports
>Synopsis:       [PATCH]: security/nmap is broken under AMD64.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 03 16:50:21 GMT 2007
>Closed-Date:    Wed Jan 03 16:53:59 GMT 2007
>Last-Modified:  Wed Jan 03 16:53:59 GMT 2007
>Originator:     Wesley Shields
>Release:        FreeBSD 6.1-RELEASE-p10 amd64
>Organization:
>Environment:
System: FreeBSD syn.csh.rit.edu 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #5: Sat Sep 30 21:50:55 EDT 2006 root@syn.csh.rit.edu:/usr/obj/usr/src/sys/SMP amd64

>Description:
security/nmap does not build under AMD64 using 5-STABLE, 6-STABLE and
-CURRENT according to my tinderbox runs.  There have been messages on
ports@ which indicate the build is broken on 5.5 and 6.1 also.  The
attached patch marks the port as NOT_FOR_ARCHS until a proper fix is put
in place.  I have CC'ed the maintainer on this.

>How-To-Repeat:
Here is the last few lines of the 5-STABLE tinderbox build I just tested
it in.  The same error is reported for 6-STABLE and -CURRENT.

c++ -c  -Ilibdnet-stripped/include -I/usr/local/include -O -pipe -Wall  -I/usr/include -Ilibpcap -Inbase -Insock/include   -DHAVE_CONFIG_H -DNMAP_VERSION=\"4.20\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\" -DNMAP_PLATFORM=\"amd64-portbld-freebsd5.5\" -DNMAPDATADIR=\"/usr/local/share/nmap\" osscan2.cc -o osscan2.o
c++ -c  -Ilibdnet-stripped/include -I/usr/local/include -O -pipe -Wall  -I/usr/include -Ilibpcap -Inbase -Insock/include   -DHAVE_CONFIG_H -DNMAP_VERSION=\"4.20\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\" -DNMAP_PLATFORM=\"amd64-portbld-freebsd5.5\" -DNMAPDATADIR=\"/usr/local/share/nmap\" output.cc -o output.o
output.cc: In function `void log_vwrite(int, const char*, __va_list_tag*)':
output.cc:746: error: incompatible types in assignment of `__va_list_tag*' to `__va_list_tag[1]'
gmake: *** [output.o] Error 1
*** Error code 2

Stop in /a/ports/security/nmap.
================================================================
build of /usr/ports/security/nmap ended at Wed Jan  3 17:21:09 UTC 2007

>Fix:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/security/nmap/Makefile,v
retrieving revision 1.101
diff -u -r1.101 Makefile
--- Makefile	8 Jul 2006 05:32:00 -0000	1.101
+++ Makefile	3 Jan 2007 16:19:55 -0000
@@ -19,6 +19,9 @@
 
 DISTVERSION=	4.11
 
+NOT_FOR_ARCHS=	amd64 # Broken on 5-STABLE, 6-STABLE and -CURRENT
+NOT_FOR_ARCHS_REASON=	Does not build on 5-STABLE, 6-STABLE and -CURRENT under AMD64
+
 USE_BZIP2=	yes
 USE_GMAKE=	yes
 
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Wed Jan 3 16:50:31 UTC 2007 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107481 
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Wed Jan 3 16:53:18 UTC 2007 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107481 
State-Changed-From-To: feedback->closed 
State-Changed-By: miwi 
State-Changed-When: Wed Jan 3 16:53:57 UTC 2007 
State-Changed-Why:  
Is fixed with ports/107478. Thanks for your Submission! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107481 
>Unformatted:
