Subject: devel/libstroke hard dependency on tcl83?
To: None <>
From: John D. Baker <>
List: tech-pkg
Date: 04/10/2004 20:00:43
With the patches to tcl and tk (8.4.6) which allow them to build on MacOS X,
I've started building the packages which depend on them.

While building devel/libstroke (a dependency of cad/geda), the build
failed as follows:

 gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/Volumes/NetBSD/pkgsrc/devel/libstroke/work/.x11-buildlink/include -no-cpp-precomp -I/Volumes/NetBSD/pkgsrc/devel/libstroke/work/.buildlink/include -O2 -c tcl.c -o tcl.o >/dev/null 2>&1
/bin/sh ../libtool --mode=link gcc  -O2 -I/usr/pkg/include -L/usr/pkg/lib -L/usr/X11R6/lib -o -rpath /usr/pkg/lib -ltcl83 -version-info 0:3:0 tcl.lo stroke.lo
gcc -dynamiclib -flat_namespace -undefined suppress -o .libs/libstroke_tcl.0.3.dylib  .libs/tcl.o .libs/stroke.o  -L/Volumes/NetBSD/pkgsrc/devel/libstroke/work/.buildlink/lib -L/Volumes/NetBSD/pkgsrc/devel/libstroke/work/.x11-buildlink/lib -ltcl83 -install_name  /usr/pkg/lib/libstroke_tcl.0.dylib -compatibility_version 1 -current_version 1.3
/usr/bin/libtool: can't locate file for: -ltcl83
/usr/bin/libtool: file: -ltcl83 is not an object file (not allowed in a library)
*** Error code 1

bmake: stopped in /Volumes/NetBSD/pkgsrc/devel/libstroke/work/libstroke-0.3/libstroke

Although the dependency checks for libstroke consider the current tcl
(8.4.6) to be satisfactory:

=> Checksum OK for libstroke-0.3.tar.gz.
===> Extracting for libstroke-0.3nb1
===> Required installed package tcl>=8.3.4: tcl-8.4.6nb3 found

there appears to be some further part of the mechanism which assumes that
tcl83 (8.3.4) will be used.

I see that the pkgsrc Makefile explicity references:


Perhaps re-trying the build with this changed to the current tcl's file will fix this?

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