Date: Fri, 14 Mar 2008 10:41:05 GMT From: Andrew Kolchoogin <andrew@rinet.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/121697: net-mgmt/netams doesn't build with C++ compiler shipped with FreeBSD v7 Message-ID: <200803141041.m2EAf5KI018597@www.freebsd.org> Resent-Message-ID: <200803141050.m2EAo1Jk001653@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 121697 >Category: ports >Synopsis: net-mgmt/netams doesn't build with C++ compiler shipped with FreeBSD v7 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 14 10:50:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Andrew Kolchoogin >Release: FreeBSD v7.0-RELEASE >Organization: JSC "Transservice Communications" >Environment: FreeBSD host.domain.tld 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Thu Mar 13 21:51:00 MSK 2008 user@host.domain.tld:/usr/obj/usr/src/sys/GENERIC amd64 >Description: C++ compiler shipped with RELENG_7 branches is far more picky about C++ syntax than one shipped with previous FreeBSD releases. As such, many of C++ code "valid" for gcc prior to version 4 series is rejected by current gcc C++ compiler. Although it is much better to fix the code, one should "give us a chance" to use previous gcc versions to compile "broken" code. >How-To-Repeat: Just try to build the port under FreeBSD v7. >Fix: One might try to apply the following patch to the port's Makefile: === --- a/net-mgmt/netams/Makefile Thu Mar 13 21:21:52 2008 +0300 +++ b/net-mgmt/netams/Makefile Fri Mar 14 13:35:52 2008 +0300 @@ -61,6 +61,11 @@ post-patch: ${WRKSRC}/configure.sh .endif + @${REINPLACE_CMD} -e 's|^CC.*|CC=${CXX}|' \ + ${WRKSRC}/src/Makefile + @${REINPLACE_CMD} -e 's|^CPP.*|CPP=${CXX}|' \ + ${WRKSRC}/src/Makefile + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/netams ${PREFIX}/libexec/netams ${INSTALL_PROGRAM} ${WRKSRC}/src/flowprobe ${PREFIX}/sbin/flowprobe === and set "CXX" environment variable to some gcc compiler version 3 built from ports. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803141041.m2EAf5KI018597>