From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Nov 28 05:50:09 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 19CA61065670 for ; Mon, 28 Nov 2011 05:50:09 +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 CFB2F8FC14 for ; Mon, 28 Nov 2011 05:50:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pAS5o8Bb060400 for ; Mon, 28 Nov 2011 05:50:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pAS5o8ta060398; Mon, 28 Nov 2011 05:50:08 GMT (envelope-from gnats) Resent-Date: Mon, 28 Nov 2011 05:50:08 GMT Resent-Message-Id: <201111280550.pAS5o8ta060398@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, Jan Beich Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 917AB106566B for ; Mon, 28 Nov 2011 05:43:08 +0000 (UTC) (envelope-from jbeich@tormail.net) Received: from server2.hudsonvalleyhost.com (server2.hudsonvalleyhost.com [66.7.195.77]) by mx1.freebsd.org (Postfix) with ESMTP id 4F6548FC0C for ; Mon, 28 Nov 2011 05:43:07 +0000 (UTC) Received: from [31.31.36.246] (port=55296 helo=internal.tormail.net) by server2.hudsonvalleyhost.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from ) id 1RUtzd-0016N4-QU for FreeBSD-gnats-submit@freebsd.org; Mon, 28 Nov 2011 00:43:06 -0500 Received: from jbeich by internal.tormail.net with local (Exim 4.63) (envelope-from ) id 1RUtzB-000NUS-VR for FreeBSD-gnats-submit@freebsd.org; Mon, 28 Nov 2011 05:42:42 +0000 Message-Id: <1RUtzB-000NUS-VR@internal.tormail.net> Date: Mon, 28 Nov 2011 11:28:04 +0900 From: Jan Beich To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/162912: [patch] lang/tcl86: unbreak build with clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2011 05:50:09 -0000 >Number: 162912 >Category: ports >Synopsis: [patch] lang/tcl86: unbreak build with clang >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 28 05:50:08 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Jan Beich >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: >Description: merge part of lang/tcl85/files/patch-unix-configure@1.5 (from 2010/12/09) clang wants either -soname=libfoo.so.1 or -Wl,-soname,libfoo.so.1, but not -soname libfoo.so.1. >How-To-Repeat: http://pointyhat-west.isc.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp-clang.20111126065358.pointyhat-west/tcl-8.6.b.2.log $ rm -f libfoo.so.1 $ clang -shared -soname libfoo.so.1 -o libfoo.so.1 /dev/null clang: error: no such file or directory: 'libfoo.so.1' Exit 1 >Fix: --- clang.diff begins here --- Index: lang/tcl86/files/patch-unix-configure =================================================================== RCS file: /a/.csup/ports/lang/tcl86/files/patch-unix-configure,v retrieving revision 1.4 diff -u -p -r1.4 patch-unix-configure --- lang/tcl86/files/patch-unix-configure 29 Dec 2007 21:38:48 -0000 1.4 +++ lang/tcl86/files/patch-unix-configure 28 Nov 2011 02:12:55 -0000 @@ -39,3 +39,12 @@ TCL_LIB_VERSIONS_OK=nodots ;; esac +@@ -7831,7 +7831,7 @@ + # This configuration from FreeBSD Ports. + SHLIB_CFLAGS="-fPIC" + SHLIB_LD="${CC} -shared" +- TCL_SHLIB_LD_EXTRAS="-soname \$@" ++ TCL_SHLIB_LD_EXTRAS="-Wl,-soname,\$@" + SHLIB_SUFFIX=".so" + DL_OBJS="tclLoadDl.o" + DL_LIBS="" --- clang.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: