From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 8 10:40:08 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A559A1065670 for ; Sun, 8 May 2011 10:40:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 81AC08FC12 for ; Sun, 8 May 2011 10:40:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p48Ae8Jo008187 for ; Sun, 8 May 2011 10:40:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p48Ae8mT008186; Sun, 8 May 2011 10:40:08 GMT (envelope-from gnats) Resent-Date: Sun, 8 May 2011 10:40:08 GMT Resent-Message-Id: <201105081040.p48Ae8mT008186@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Zhihao Yuan Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E106F106566C for ; Sun, 8 May 2011 10:30:43 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id AACA58FC0C for ; Sun, 8 May 2011 10:30:43 +0000 (UTC) Received: by iwn33 with SMTP id 33so5182742iwn.13 for ; Sun, 08 May 2011 03:30:43 -0700 (PDT) Received: by 10.42.28.5 with SMTP id l5mr1411270icc.117.1304850643010; Sun, 08 May 2011 03:30:43 -0700 (PDT) Received: from compaq.yuetime (c-98-228-191-105.hsd1.il.comcast.net [98.228.191.105]) by mx.google.com with ESMTPS id g16sm2134911ibb.54.2011.05.08.03.30.39 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 08 May 2011 03:30:42 -0700 (PDT) Received: by compaq.yuetime (sSMTP sendmail emulation); Sun, 08 May 2011 05:30:35 -0500 Message-Id: <4dc670d2.d014e70a.5a3d.7395@mx.google.com> Date: Sun, 08 May 2011 05:30:35 -0500 From: Zhihao Yuan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/156880: security/nmap: Fix build with gcc in ports X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Zhihao Yuan List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2011 10:40:08 -0000 >Number: 156880 >Category: ports >Synopsis: security/nmap: Fix build with gcc in ports >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun May 08 10:40:08 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Zhihao Yuan >Release: FreeBSD 8.2-STABLE amd64 >Organization: Northern Illinois University >Environment: System: FreeBSD compaq.yuetime 8.2-STABLE FreeBSD 8.2-STABLE #0: Mon Mar 14 02:51:28 CDT 2011 root@compaq.yuetime:/usr/obj/usr/src/sys/HOUKAGO amd64 >Description: When being built with gcc in ports (like gcc46), nmap needs to link to the corresponding libstdc++, or many 'undefined reference to...' errors occurs. >How-To-Repeat: >Fix: Use the standard '-print-file-name' method to find the GCCLIB, and pass it as a CONFIGURE_ARGS. --- nmap-5.51_2.patch begins here --- diff -ruN --exclude=CVS /usr/ports/security/nmap.orig/Makefile /usr/ports/security/nmap/Makefile --- /usr/ports/security/nmap.orig/Makefile 2011-04-20 18:09:04.000000000 -0500 +++ /usr/ports/security/nmap/Makefile 2011-05-08 05:22:22.523342188 -0500 @@ -7,7 +7,7 @@ PORTNAME= nmap PORTVERSION= 5.51 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security ipv6 MASTER_SITES= http://nmap.org/dist/ \ LOCAL/ohauer @@ -31,6 +31,8 @@ --with-libpcre=${LOCALBASE} \ --with-liblua=${LOCALBASE} CONFIGURE_ENV= LUA_INCDIR="${LUA_INCDIR}" LUA_LIBDIR="${LUA_LIBDIR}" +GCCLIBDIR_CMDS= ${CC} -print-file-name=libstdc++.so | ${SED} -e s/libstdc++.so// +CONFIGURE_ARGS+= LDFLAGS="-L$$(${GCCLIBDIR_CMDS})" MANLANG= "" de es fr hr hu it jp pl pt_BR pt_PT ro ru sk zh MAN1= nmap.1 --- nmap-5.51_2.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: