NetBSD Problem Report #29215

From www@netbsd.org  Thu Feb  3 18:32:00 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 7991863B400; Thu,  3 Feb 2005 18:32:00 +0000 (UTC)
Message-Id: <20050203183200.7991863B400@narn.netbsd.org>
Date: Thu,  3 Feb 2005 18:32:00 +0000 (UTC)
From: jdbaker@netbsd.org
Reply-To: jdbaker@netbsd.org
To: gnats-bugs@netbsd.org
Subject: lang/tcl build fails on MacOS X 10.[12].x after mk/wrapper changes
X-Send-Pr-Version: www-1.0

>Number:         29215
>Category:       pkg
>Synopsis:       lang/tcl build fails on MacOS X 10.[12].x after mk/wrapper changes
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    jlam
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 03 18:33:00 +0000 2005
>Closed-Date:    Sun Mar 20 06:16:36 +0000 2005
>Last-Modified:  Sun Mar 20 06:16:36 +0000 2005
>Originator:     John D. Baker
>Release:        MacOS X 10.2.8
>Organization:
>Environment:
Darwin pm8500.technoskunk.fur 6.8 Darwin Kernel Version 6.8: Wed Sep 10 15:20:55 PDT 2003; root:xnu/xnu-344.49.obj~2/RELEASE_PPC  Power Macintosh powerpc

>Description:
Linking lang/tcl broke in MacOS X immediately following
an update to mk/wrapper as described in pkgsrc-changes here:

    http://mail-index.netbsd.org/pkgsrc-changes/2005/01/18/0042.html

Subject: CVS commit: pkgsrc/mk/wrapper
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 01/18/2005 17:25:13

Module Name:	pkgsrc
Committed By:	jlam
Date:		Tue Jan 18 17:25:13 UTC 2005

Modified Files:
	pkgsrc/mk/wrapper: NOTES bsd.wrapper.mk logic wrapper.sh
Added Files:
	pkgsrc/mk/wrapper: arg-pp-darwin-gcc arg-pp-main arg-pp-mipspro-cc

Log Message:
Split out the argument pre-processing logic into its own script
arg-pp-main, and allow for wrapper-specific hooks to extend the
pre-processing through _WRAP_ARG_PP.<wrappee>.  Move the Darwin
GCC-related preprocessing into arg-pp-darwin-gcc, and create a
arg-pp-mipspro-cc that understands -LANG:<feature> and -LIST:<feature>
so that they're not confused with the usual -Ldir options.


I originally had problems with nmap-3.78, but it builds OK now.

Building lang/tcl fails as follows:

gcc -pipe -dynamiclib ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/libtcl84.1.0.0.dylib  .libs/regcomp.o .libs/regexec.o .libs/regfree.o .libs/regerror.o .libs/tclAlloc.o .libs/tclAsync.o .libs/tclBasic.o .libs/tclBinary.o .libs/tclCkalloc.o .libs/tclClock.o .libs/tclCmdAH.o .libs/tclCmdIL.o .libs/tclCmdMZ.o .libs/tclCompCmds.o .libs/tclCompExpr.o .libs/tclCompile.o .libs/tclDate.o .libs/tclEncoding.o .libs/tclEnv.o .libs/tclEvent.o .libs/tclExecute.o .libs/tclFCmd.o .libs/tclFileName.o .libs/tclGet.o .libs/tclHash.o .libs/tclHistory.o .libs/tclIndexObj.o .libs/tclInterp.o .libs/tclIO.o .libs/tclIOCmd.o .libs/tclIOGT.o .libs/tclIOSock.o .libs/tclIOUtil.o .libs/tclLink.o .libs/tclListObj.o .libs/tclLiteral.o .libs/tclLoad.o .libs/tclMain.o .libs/tclNamesp.o .libs/tclNotify.o .libs/tclObj.o .libs/tclPanic.o .libs/tclParse.o .libs/tclParseExpr.o .libs/tclPipe.o .libs/tclPkg.o .libs/tclPosixStr.o .libs/tclPreserve.o .libs/tclProc.o .libs/tclRegexp.o .libs/tclResolve.o .libs/tclResult.o .libs/tclScan.o .libs/tclStringObj.o .libs/tclThread.o .libs/tclThreadAlloc.o .libs/tclThreadJoin.o .libs/tclStubInit.o .libs/tclStubLib.o .libs/tclTimer.o .libs/tclUtf.o .libs/tclUtil.o .libs/tclVar.o .libs/tclUnixChan.o .libs/tclUnixEvent.o .libs/tclUnixFCmd.o .libs/tclUnixFile.o .libs/tclUnixPipe.o .libs/tclUnixSock.o .libs/tclUnixTime.o .libs/tclUnixInit.o .libs/tclUnixThrd.o .libs/tclUnixNotfy.o .libs/tclLoadDyld.o .libs/tclMacOSXBundle.o  -L/Volumes/NetBSD/tmp/pkgsrc/lang/tcl/work/.buildlink/lib -ltcl84  -install_name  /usr/pkg/lib/libtcl84.1.dylib -Wl,-compatibility_version -Wl,2 -Wl,-current_version -Wl,2.0
/usr/bin/libtool: can't locate file for: -ltcl84
/usr/bin/libtool: file: -ltcl84 is not an object file (not allowed in a library)
*** Error code 1

Stop.
bmake: stopped in /Volumes/NetBSD/tmp/pkgsrc/lang/tcl/work/tcl8.4.9/unix

>How-To-Repeat:
checkout/update to a pkgsrc no later than 18 Jan 2005 17:24 UTC and
bootstrap it on MacOS X 10.2.8.
update to pkgsrc-current

cd .../pkgsrc/lang/tcl
bmake

>Fix:
Workaround:

Back off mk/wrapper to before the change listed above.

update -D "18 Jan 2005 17:24 UTC" -Pd pkgsrc/mk/wrapper

build lang/tcl (and x11/tk ?)

update back to -current

update -APd pkgsrc/mk/wrapper

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->jlam
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Tue, 08 Feb 2005 14:59:26 +0000
Responsible-Changed-Why:
Submitter says a commit by jlam caused this problem.


From: Min Sik Kim <minskim@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: jlam@NetBSD.org
Subject: Re: pkg/29215: lang/tcl build fails on MacOS X 10.[12].x after mk/wrapper changes
Date: Sun, 13 Feb 2005 22:20:10 -0600

 On Feb 3, 2005, at 12:33 PM, jdbaker@netbsd.org wrote:
 > Building lang/tcl fails as follows:
 >
 > gcc -pipe -dynamiclib ${wl}-flat_namespace ${wl}-undefined 
 > ${wl}suppress -o .libs/libtcl84.1.0.0.dylib  .libs/regcomp.o 
 > .libs/regexec.o .libs/regfree.o .libs/regerror.o .libs/tclAlloc.o 
 > .libs/tclAsync.o .libs/tclBasic.o .libs/tclBinary.o .libs/tclCkalloc.o 
 > .libs/tclClock.o .libs/tclCmdAH.o .libs/tclCmdIL.o .libs/tclCmdMZ.o 
 > .libs/tclCompCmds.o .libs/tclCompExpr.o .libs/tclCompile.o 
 > .libs/tclDate.o .libs/tclEncoding.o .libs/tclEnv.o .libs/tclEvent.o 
 > .libs/tclExecute.o .libs/tclFCmd.o .libs/tclFileName.o .libs/tclGet.o 
 > .libs/tclHash.o .libs/tclHistory.o .libs/tclIndexObj.o 
 > .libs/tclInterp.o .libs/tclIO.o .libs/tclIOCmd.o .libs/tclIOGT.o 
 > .libs/tclIOSock.o .libs/tclIOUtil.o .libs/tclLink.o .libs/tclListObj.o 
 > .libs/tclLiteral.o .libs/tclLoad.o .libs/tclMain.o .libs/tclNamesp.o 
 > .libs/tclNotify.o .libs/tclObj.o .libs/tclPanic.o .libs/tclParse.o 
 > .libs/tclParseExpr.o .libs/tclPipe.o .libs/tclPkg.o 
 > .libs/tclPosixStr.o .libs/tclPreserve.o .libs/tclProc.o 
 > .libs/tclRegexp.o .libs/tclResolv
 >  e.o .libs/tclResult.o .libs/tclScan.o .libs/tclStringObj.o 
 > .libs/tclThread.o .libs/tclThreadAlloc.o .libs/tclThreadJoin.o 
 > .libs/tclStubInit.o .libs/tclStubLib.o .libs/tclTimer.o .libs/tclUtf.o 
 > .libs/tclUtil.o .libs/tclVar.o .libs/tclUnixChan.o 
 > .libs/tclUnixEvent.o .libs/tclUnixFCmd.o .libs/tclUnixFile.o 
 > .libs/tclUnixPipe.o .libs/tclUnixSock.o .libs/tclUnixTime.o 
 > .libs/tclUnixInit.o .libs/tclUnixThrd.o .libs/tclUnixNotfy.o 
 > .libs/tclLoadDyld.o .libs/tclMacOSXBundle.o  
 > -L/Volumes/NetBSD/tmp/pkgsrc/lang/tcl/work/.buildlink/lib -ltcl84  
 > -install_name  /usr/pkg/lib/libtcl84.1.dylib 
 > -Wl,-compatibility_version -Wl,2 -Wl,-current_version -Wl,2.0
 > /usr/bin/libtool: can't locate file for: -ltcl84
 > /usr/bin/libtool: file: -ltcl84 is not an object file (not allowed in 
 > a library)
 > *** Error code 1

 The wrapper framework now doesn't skip the argument of "-install_name" 
 any more when calling libtool.  Moving the -install-name case from 
 arg-pp-darwin-gcc to arg-pp-main will fix the problem.  See the patch 
 below.

 --
 Min Sik Kim


 Index: arg-pp-darwin-gcc
 ===================================================================
 RCS file: /cvsroot/pkgsrc/mk/wrapper/arg-pp-darwin-gcc,v
 retrieving revision 1.1
 diff -u -r1.1 arg-pp-darwin-gcc
 --- arg-pp-darwin-gcc	18 Jan 2005 17:25:13 -0000	1.1
 +++ arg-pp-darwin-gcc	14 Feb 2005 04:02:52 -0000
 @@ -35,21 +35,4 @@
   # POSSIBILITY OF SUCH DAMAGE.

   case $arg in
 -######################################################################
 -# Darwin's linker uses:
 -#
 -#	-dylib_file /path/shlib:/path2/shlib
 -#	-dylib_install_name /path/shlib
 -#	-install_name /path/shlib
 -#
 -# to pass the installed locations for the shared libraries to the
 -# linker, and we need to pass the extra argument unmodified.  The
 -# purpose of -seg_addr_table_filename is more obscure, but Darwin's
 -# imake rules use it.
 -######################################################################
 --dylib_file|-dylib_install_name|-install_name|-seg_addr_table_filename)
 -	skipargs=1
 -	argok=yes
 -	argmatch=yes
 -	;;
   esac
 Index: arg-pp-main
 ===================================================================
 RCS file: /cvsroot/pkgsrc/mk/wrapper/arg-pp-main,v
 retrieving revision 1.3
 diff -u -r1.3 arg-pp-main
 --- arg-pp-main	26 Jan 2005 05:03:11 -0000	1.3
 +++ arg-pp-main	14 Feb 2005 04:02:52 -0000
 @@ -171,4 +171,21 @@
   	argok=yes
   	argmatch=yes
   	;;
 +######################################################################
 +# Darwin's linker uses:
 +#
 +#	-dylib_file /path/shlib:/path2/shlib
 +#	-dylib_install_name /path/shlib
 +#	-install_name /path/shlib
 +#
 +# to pass the installed locations for the shared libraries to the
 +# linker, and we need to pass the extra argument unmodified.  The
 +# purpose of -seg_addr_table_filename is more obscure, but Darwin's
 +# imake rules use it.
 +######################################################################
 +-dylib_file|-dylib_install_name|-install_name|-seg_addr_table_filename)
 +	skipargs=1
 +	argok=yes
 +	argmatch=yes
 +	;;
   esac

From: "Johnny C. Lam" <jlam@NetBSD.org>
To: Min Sik Kim <minskim@NetBSD.org>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/29215: lang/tcl build fails on MacOS X 10.[12].x after mk/wrapper
 changes
Date: Mon, 14 Feb 2005 11:36:25 -0500

 Min Sik Kim wrote:
 > On Feb 3, 2005, at 12:33 PM, jdbaker@netbsd.org wrote:
 > 
 >> Building lang/tcl fails as follows:
 >>
 >> gcc -pipe -dynamiclib ${wl}-flat_namespace ${wl}-undefined 
 >> ${wl}suppress -o .libs/libtcl84.1.0.0.dylib  .libs/regcomp.o 
 >> .libs/regexec.o .libs/regfree.o .libs/regerror.o .libs/tclAlloc.o 
 >> .libs/tclAsync.o .libs/tclBasic.o .libs/tclBinary.o .libs/tclCkalloc.o 
 >> .libs/tclClock.o .libs/tclCmdAH.o .libs/tclCmdIL.o .libs/tclCmdMZ.o 
 >> .libs/tclCompCmds.o .libs/tclCompExpr.o .libs/tclCompile.o 
 >> .libs/tclDate.o .libs/tclEncoding.o .libs/tclEnv.o .libs/tclEvent.o 
 >> .libs/tclExecute.o .libs/tclFCmd.o .libs/tclFileName.o .libs/tclGet.o 
 >> .libs/tclHash.o .libs/tclHistory.o .libs/tclIndexObj.o 
 >> .libs/tclInterp.o .libs/tclIO.o .libs/tclIOCmd.o .libs/tclIOGT.o 
 >> .libs/tclIOSock.o .libs/tclIOUtil.o .libs/tclLink.o .libs/tclListObj.o 
 >> .libs/tclLiteral.o .libs/tclLoad.o .libs/tclMain.o .libs/tclNamesp.o 
 >> .libs/tclNotify.o .libs/tclObj.o .libs/tclPanic.o .libs/tclParse.o 
 >> .libs/tclParseExpr.o .libs/tclPipe.o .libs/tclPkg.o 
 >> .libs/tclPosixStr.o .libs/tclPreserve.o .libs/tclProc.o 
 >> .libs/tclRegexp.o .libs/tclResolv
 >>  e.o .libs/tclResult.o .libs/tclScan.o .libs/tclStringObj.o 
 >> .libs/tclThread.o .libs/tclThreadAlloc.o .libs/tclThreadJoin.o 
 >> .libs/tclStubInit.o .libs/tclStubLib.o .libs/tclTimer.o .libs/tclUtf.o 
 >> .libs/tclUtil.o .libs/tclVar.o .libs/tclUnixChan.o 
 >> .libs/tclUnixEvent.o .libs/tclUnixFCmd.o .libs/tclUnixFile.o 
 >> .libs/tclUnixPipe.o .libs/tclUnixSock.o .libs/tclUnixTime.o 
 >> .libs/tclUnixInit.o .libs/tclUnixThrd.o .libs/tclUnixNotfy.o 
 >> .libs/tclLoadDyld.o .libs/tclMacOSXBundle.o  
 >> -L/Volumes/NetBSD/tmp/pkgsrc/lang/tcl/work/.buildlink/lib -ltcl84  
 >> -install_name  /usr/pkg/lib/libtcl84.1.dylib 
 >> -Wl,-compatibility_version -Wl,2 -Wl,-current_version -Wl,2.0
 >> /usr/bin/libtool: can't locate file for: -ltcl84
 >> /usr/bin/libtool: file: -ltcl84 is not an object file (not allowed in 
 >> a library)
 >> *** Error code 1
 > 
 > 
 > The wrapper framework now doesn't skip the argument of "-install_name" 
 > any more when calling libtool.  Moving the -install-name case from 
 > arg-pp-darwin-gcc to arg-pp-main will fix the problem.  See the patch 
 > below.

 If anyone has a .work.log that I could look at for the above error, that 
 would help greatly.  The proposed patch is only hiding some deeper issue 
 that should be fixed.

 	Thanks,

 	-- Johnny Lam <jlam@NetBSD.org>

From: Min Sik Kim <minskim@NetBSD.org>
To: "Johnny C. Lam" <jlam@NetBSD.org>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/29215: lang/tcl build fails on MacOS X 10.[12].x after mk/wrapper changes
Date: Mon, 14 Feb 2005 10:48:18 -0600

 On Feb 14, 2005, at 10:36 AM, Johnny C. Lam wrote:
 > If anyone has a .work.log that I could look at for the above error, 
 > that would help greatly.  The proposed patch is only hiding some 
 > deeper issue that should be fixed.

 It is available at the following URL:

 http://www.netbsd.org/~minskim/pkgsrc/logs/work.log

 --
 Min Sik Kim

From: "Johnny C. Lam" <jlam@NetBSD.org>
To: Min Sik Kim <minskim@NetBSD.org>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/29215: lang/tcl build fails on MacOS X 10.[12].x after mk/wrapper
 changes
Date: Mon, 14 Feb 2005 12:01:25 -0500

 Min Sik Kim wrote:
 > 
 > On Feb 14, 2005, at 10:36 AM, Johnny C. Lam wrote:
 > 
 >> If anyone has a .work.log that I could look at for the above error, 
 >> that would help greatly.  The proposed patch is only hiding some 
 >> deeper issue that should be fixed.
 > 
 > 
 > It is available at the following URL:
 > 
 > http://www.netbsd.org/~minskim/pkgsrc/logs/work.log

 Thanks!  I've discovered that the problem is that the libtool wrapper is 
 being passed "-install_name /Volumes/UFS/pkg/lib/libtcl84.dylib" to give 
 to the compiler.  Could you also point me to a URL of 
 /usr/pkg/bin/libtool on a Darwin machine?  I need to examine how 
 -install_name is handled within the installed libtool script.

 	Thanks,

 	-- Johnny Lam <jlam@NetBSD.org>

From: Min Sik Kim <minskim@NetBSD.org>
To: "Johnny C. Lam" <jlam@NetBSD.org>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/29215: lang/tcl build fails on MacOS X 10.[12].x after mk/wrapper changes
Date: Mon, 14 Feb 2005 11:11:11 -0600

 On Feb 14, 2005, at 11:01 AM, Johnny C. Lam wrote:

 > Min Sik Kim wrote:
 >> On Feb 14, 2005, at 10:36 AM, Johnny C. Lam wrote:
 >>> If anyone has a .work.log that I could look at for the above error, 
 >>> that would help greatly.  The proposed patch is only hiding some 
 >>> deeper issue that should be fixed.
 >> It is available at the following URL:
 >> http://www.netbsd.org/~minskim/pkgsrc/logs/work.log
 >
 > Thanks!  I've discovered that the problem is that the libtool wrapper 
 > is being passed "-install_name /Volumes/UFS/pkg/lib/libtcl84.dylib" to 
 > give to the compiler.  Could you also point me to a URL of 
 > /usr/pkg/bin/libtool on a Darwin machine?  I need to examine how 
 > -install_name is handled within the installed libtool script.

 libtool from libtool-base-1.5.10nb9:

 http://www.netbsd.org/~minskim/pkgsrc/logs/libtool

 --
 Min Sik Kim

From: "Johnny C. Lam" <jlam@NetBSD.org>
To: Min Sik Kim <minskim@NetBSD.org>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/29215: lang/tcl build fails on MacOS X 10.[12].x after mk/wrapper changes
Date: Mon, 14 Feb 2005 20:06:46 +0000

 --u3/rZRmxL6MmkK24
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 On Mon, Feb 14, 2005 at 11:11:11AM -0600, Min Sik Kim wrote:
 > 
 > On Feb 14, 2005, at 11:01 AM, Johnny C. Lam wrote:
 > 
 > >Min Sik Kim wrote:
 > >>On Feb 14, 2005, at 10:36 AM, Johnny C. Lam wrote:
 > >>>If anyone has a .work.log that I could look at for the above error, 
 > >>>that would help greatly.  The proposed patch is only hiding some 
 > >>>deeper issue that should be fixed.
 > >>It is available at the following URL:
 > >>http://www.netbsd.org/~minskim/pkgsrc/logs/work.log
 > >
 > >Thanks!  I've discovered that the problem is that the libtool wrapper 
 > >is being passed "-install_name /Volumes/UFS/pkg/lib/libtcl84.dylib" to 
 > >give to the compiler.  Could you also point me to a URL of 
 > >/usr/pkg/bin/libtool on a Darwin machine?  I need to examine how 
 > >-install_name is handled within the installed libtool script.
 > 
 > libtool from libtool-base-1.5.10nb9:
 > 
 > http://www.netbsd.org/~minskim/pkgsrc/logs/libtool

 Thanks for all of the information that you've provided.

 I've attached a patch that teaches the libtool wrapper about the same
 types of transformations that the compiler wrapper already knows to
 do.  This should protect "-install_name ..." from wrapper transformations
 within the libtool wrapper.  Please let me know if this fixes the
 problem.

 Software that properly use libtool don't pass an explicit "-install_name
 ..." because libtool always generates its own such argument when
 building the (Darwin) shared library.  However, I appreciate that not
 every piece of software, including the ones like lang/tcl that pkgsrc
 converted to use libtool, will use libtool in the documented fashion.
 Longer term, those packages should be fixed properly, but we will still
 need this patch to deal with other types of compiler-specific
 transformations.

 	Cheers,

 	-- Johnny Lam <jlam@NetBSD.org>

 --u3/rZRmxL6MmkK24
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="wrapper.patch"

 Index: bsd.wrapper.mk
 ===================================================================
 RCS file: /cvsroot/pkgsrc/mk/wrapper/bsd.wrapper.mk,v
 retrieving revision 1.19
 diff -u -r1.19 bsd.wrapper.mk
 --- bsd.wrapper.mk	18 Jan 2005 17:25:13 -0000	1.19
 +++ bsd.wrapper.mk	14 Feb 2005 20:00:14 -0000
 @@ -245,6 +245,7 @@
  _WRAP_ARG_PP.CXX=	${_WRAP_ARG_PP.CC}
  _WRAP_CACHE_BODY.CXX=	${_WRAP_CACHE_BODY.CC}
  _WRAP_TRANSFORM.CXX=	${_WRAP_TRANSFORM.CC}
 +_WRAP_ARG_PP.LIBTOOL=	${_WRAP_ARG_PP.CC}
  .endif

  .if !empty(PKGSRC_COMPILER:Mmipspro-ucode)
 @@ -294,6 +295,7 @@
  _WRAP_ARG_PP.CC=	${WRAPPER_TMPDIR}/arg-pp-darwin-gcc
  _WRAP_ARG_PP.CXX=	${_WRAP_ARG_PP.CC}
  _WRAP_ARG_PP.LD=	${_WRAP_ARG_PP.CC}
 +_WRAP_ARG_PP.LIBTOOL=	${_WRAP_ARG_PP.CC}
  .elif ${OPSYS} == "UnixWare"
  _WRAP_CMD_SINK.CC=	${WRAPPER_TMPDIR}/cmd-sink-unixware-gcc
  _WRAP_CMD_SINK.CXX=	${_WRAP_CMD_SINK.CC}

 --u3/rZRmxL6MmkK24--

From: Min Sik Kim <minskim@NetBSD.org>
To: "Johnny C. Lam" <jlam@NetBSD.org>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/29215: lang/tcl build fails on MacOS X 10.[12].x after mk/wrapper changes
Date: Mon, 14 Feb 2005 14:34:38 -0600

 On Feb 14, 2005, at 2:06 PM, Johnny C. Lam wrote:
 > I've attached a patch that teaches the libtool wrapper about the same
 > types of transformations that the compiler wrapper already knows to
 > do.  This should protect "-install_name ..." from wrapper 
 > transformations
 > within the libtool wrapper.  Please let me know if this fixes the
 > problem.

 The problem is gone.  Thanks!

 --
 Min Sik Kim

From: "Johnny C. Lam" <jlam@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/29215 CVS commit: pkgsrc/mk/wrapper
Date: Mon, 14 Feb 2005 21:33:08 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	jlam
 Date:		Mon Feb 14 21:33:08 UTC 2005

 Modified Files:
 	pkgsrc/mk/wrapper: bsd.wrapper.mk

 Log Message:
 Teach the libtool wrapper about the same types of transformations that
 the compiler wrapper already knows to do.  This should protect
 "-install_name ..." from wrapper transformations within the libtool
 wrapper on Darwin and fixes PR pkg/29215.

 Software that properly use libtool don't pass an explicit "-install_name
 ..." because libtool always generates its own such argument when
 building the (Darwin) shared library.  However, not every piece of
 software, including the ones like lang/tcl that pkgsrc converted to
 use libtool, will use libtool in the documented fashion.  Longer term,
 those packages should be fixed properly, but we will still need the
 libtool wrapper to avoid transforming arguments that the compiler
 wrapper itself doesn't transform, e.g. for MIPSpro and -LANG:*.


 To generate a diff of this commit:
 cvs rdiff -r1.19 -r1.20 pkgsrc/mk/wrapper/bsd.wrapper.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: jlam@netbsd.org
State-Changed-When: Sun, 20 Mar 2005 06:16:36 +0000
State-Changed-Why:
Problem fixed in revision 1.20 of bsd.wrapper.mk on Feb. 14, 2005.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.