From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Mar 14 00:50:07 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 38C371065672 for ; Mon, 14 Mar 2011 00:50:07 +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 0B0D78FC0C for ; Mon, 14 Mar 2011 00:50:07 +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 p2E0o60S002970 for ; Mon, 14 Mar 2011 00:50:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p2E0o6rI002969; Mon, 14 Mar 2011 00:50:06 GMT (envelope-from gnats) Resent-Date: Mon, 14 Mar 2011 00:50:06 GMT Resent-Message-Id: <201103140050.p2E0o6rI002969@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, Stephen Montgomery-Smith Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92CB4106564A for ; Mon, 14 Mar 2011 00:43:00 +0000 (UTC) (envelope-from stephen@wilberforce.math.missouri.edu) Received: from wilberforce.math.missouri.edu (wilberforce.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id 58F8D8FC0C for ; Mon, 14 Mar 2011 00:42:59 +0000 (UTC) Received: from wilberforce.math.missouri.edu (localhost [127.0.0.1]) by wilberforce.math.missouri.edu (8.14.4/8.14.4) with ESMTP id p2E0gxnN038362 for ; Sun, 13 Mar 2011 19:42:59 -0500 (CDT) (envelope-from stephen@wilberforce.math.missouri.edu) Received: (from stephen@localhost) by wilberforce.math.missouri.edu (8.14.4/8.14.4/Submit) id p2E0gxvS038361; Sun, 13 Mar 2011 19:42:59 -0500 (CDT) (envelope-from stephen) Message-Id: <201103140042.p2E0gxvS038361@wilberforce.math.missouri.edu> Date: Sun, 13 Mar 2011 19:42:59 -0500 (CDT) From: Stephen Montgomery-Smith To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/155546: libtool doesn't work properly if not using built in compiler X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Stephen Montgomery-Smith List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2011 00:50:07 -0000 >Number: 155546 >Category: ports >Synopsis: libtool doesn't work properly if not using built in compiler >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 14 00:50:06 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Stephen Montgomery-Smith >Release: FreeBSD 7.4-PRERELEASE i386 >Organization: >Environment: System: FreeBSD wilberforce 7.4-PRERELEASE FreeBSD 7.4-PRERELEASE #0: Wed Dec 1 20:53:06 CST 2010 stephen@wilberforce:/usr/obj/usr/src/sys/GENERIC i386 >Description: If you are using a compiler, like gcc45, in a port, then libtool doesn't always work properly. >How-To-Repeat: Try to build the vis5d+ port. You will get an error like this multiple definition of `__i686.get_pc_thunk.bx >Fix: Here is one suggestion. It causes libtool to respect $CC and $CXX. But you would have to do this for the other tools used for linking. This will add a new file called patch-configure. diff -urN /usr/ports/devel/libtool/files/patch-configure libtool/files/patch-configure --- /usr/ports/devel/libtool/files/patch-configure 1970-01-01 00:00:00.000000000 +0000 +++ libtool/files/patch-configure 2011-03-01 04:29:41.000000000 +0000 @@ -0,0 +1,26 @@ +--- configure.bak 2010-09-22 14:44:17.000000000 +0000 ++++ configure 2011-03-01 04:23:35.000000000 +0000 +@@ -27526,7 +27526,9 @@ + old_archive_cmds=$lt_old_archive_cmds + + # A language specific compiler. +-CC=$lt_compiler ++if test -z "\$CC"; then \\ ++ CC=$lt_compiler ++fi + + # Is the compiler the GNU compiler? + with_gcc=$GCC +@@ -27872,7 +27874,11 @@ + old_archive_cmds=$lt_old_archive_cmds_CXX + + # A language specific compiler. +-CC=$lt_compiler_CXX ++if test -z "\$CXX"; then \\ ++ CC=$lt_compiler_CXX ++else ++ CC=\$CXX ++fi + + # Is the compiler the GNU compiler? + with_gcc=$GCC_CXX >Release-Note: >Audit-Trail: >Unformatted: