Subject: lang/tcl, lang/tcl83 build failure on MacOS X
To: None <jwise@NetBSD.org>
From: John D. Baker <jdbaker@mylinuxisp.com>
List: tech-pkg
Date: 04/06/2004 17:00:03
Tcl (8.4.6) and/or tcl83 (8.3.4) fail to build on MacOS X 10.1.5 and
10.2.8 as follows:

[...]
 gcc -pipe -c -O2 -Os -DTCL_DBGX= -Wall -Wconversion -Wno-implicit-int -fno-common -I./../generic -I. -DMAC_OSX_TCL -DHAVE_CFBUNDLE -DUSE_VFORK -DTCL_DEFAULT_ENCODING=\"utf-8\" -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_READDIR_R=1 "-DTCL_WIDE_INT_TYPE=long long" -DWORDS_BIGENDIAN=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DNO_VALUES_H=1 -DNO_DLFCN_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -Dsocklen_t=unsigned -DHAVE_SIGNED_CHAR=1 -DHAVE_PUTENV_THAT_COPIES=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DTCL_SHLIB_EXT=\".dylib\" ./../macosx/tclMacOSXBundle.c -o tclMacOSXBundle.o >/dev/null 2>&1
rm -f libtclstub8.4.a
libtool  --mode=link gcc -pipe -rpath /usr/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
[...]

This appears to be a problem in the build mechanism, rather than anything
else.

There are a number of packages I plan to attempt building and they all
have tk and hence tcl among their dependencies, so this is a showstopper
for now...

Thanks.

-- 
John D. Baker, KN5UKS                    NetBSD     Darwin/MacOS X
jdbaker(at)mylinuxisp(dot)com                 OpenBSD            FreeBSD
BSD -- It just sits there and _works_!