Subject: problem building ocaml under macosx
To: None <tech-pkg@netbsd.org>
From: Antoine Reilles <Antoine.Reilles@loria.fr>
List: tech-pkg
Date: 03/17/2004 21:43:00
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 ?


antoine