Subject: Re: problem building ocaml under macosx
To: None <tech-pkg@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-pkg
Date: 03/17/2004 23:02:05
On Wed, Mar 17, 2004 at 09:43:00PM +0100, Antoine Reilles wrote:
> Hi,
>
> when building ocaml under macosx 10.3, I have the following problem :
>
> rm -f libtclstub8.4.a
> libtool --mode=link gcc -pipe -rpath /Volumes/NetBSD/pkg/lib -o libtclstub8.4.a tclStubLib.o ; ranlib libtclstub8.4.a
> libtool: link: warning: `-L' is ignored for archives/objects
> libtool: link: warning: `-rpath' is ignored for archives
> ar cru libtclstub8.4.a
> ar: no archive members specified
> usage: ar -d [-TLsv] archive file ...
> ar -m [-TLsv] archive file ...
> ar -m [-abiTLsv] position archive file ...
> ar -p [-TLsv] archive [file ...]
> ar -q [-cTLsv] archive file ...
> ar -r [-cuTLsv] archive file ...
> ar -r [-abciuTLsv] position archive file ...
> ar -t [-TLsv] archive [file ...]
> ar -x [-ouTLsv] archive [file ...]
> *** Error code 1
>
> Stop.
> bmake: stopped in /Volumes/NetBSD/pkgsrc/lang/tcl/work/tcl8.4.6/unix
> *** Error code 1
>
> It is probably caused by a "bad" ar coming with macosx, but i donk tnow how to
> fix it. How to install a "good" ar, or tell pkgsrc to use a good archiver
> instead of the ar shipped with macosx ?
No this is a problem with the source. I got the same on solaris.
Just edit the Makefile to tell it to not build libtclstub
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--