Date: Sun, 08 May 2011 05:30:35 -0500 From: Zhihao Yuan <lichray@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/156880: security/nmap: Fix build with gcc in ports Message-ID: <4dc670d2.d014e70a.5a3d.7395@mx.google.com> Resent-Message-ID: <201105081040.p48Ae8mT008186@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4dc670d2.d014e70a.5a3d.7395>