Subject: Re: lang/tcl, lang/tcl83 build failure on MacOS X
To: None <tech-pkg@NetBSD.ORG>
From: MLH <mlh@goathill.org>
List: tech-pkg
Date: 04/07/2004 12:18:47
(also subject: Re: pkgsrc Solaris 9/sparc can't find gcc3 after re-build)

John D. Baker wrote:

> 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:
>
> 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...

I too am trying to build pkgs for Solaris(8) and MacOS and while
the recent pkgsrc/bootstrap changes have made a lot of progress,
pkgsrc still can't get much past the basic pkgs on either platform.

gnome-libs:

 gcc -DHAVE_CONFIG_H -I. -I.. -I./.. -I/opt/pkgsrc/x11/gnome-libs/work.mac300/.buildlink/include/gtk-1.2 -I/opt/pkgsrc/x11/gnome-libs/work.mac300/.buildlink/include/glib/glib-1.2 -I/opt/pkgsrc/x11/gnome-libs/work.mac300/.buildlink/lib/glib/include -I/opt/pkgsrc/x11/gnome-libs/work.mac300/.x11-buildlink/include -DWITH_GTK -DDEBUG -DGNOME_LIB -no-cpp-precomp -I/opt/pkgsrc/x11/gnome-libs/work.mac300/.buildlink/include -O2 -Wall -Wunused -c plc.c  -fno-common -DPIC -o .libs/plc.o
In file included from plc.c:166:
XmHTMLP.h:278: error: redefinition of `Byte'
/opt/pkgsrc/x11/gnome-libs/work.mac300/.x11-buildlink/include/zconf.h:252: error: `Byte' previously declared here
gnumake[2]: *** [plc.lo] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all-recursive-am] Error 2
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/x11/gnome-libs

tk, qt, similar problems. On os/x, dynamic loading doesn't work so
all of the Python shared libraries fail to load, etc. which was
one of my main reasons for trying to use pkgsrc on os/x.

BTW, how do you handle the problems with /usr/bin/awk on both of
these platforms? I have to build gawk first, before almost anything
else, and after that is installed I have to add AWK=/usr/pkg/bin/gawk
to /etc/mk.conf.

For Solaris8, I set PKGSRC_COMPILER=sunpro, which gets me going
with building simple pkgs but the sunpro compiler can't build
lang/gcc3 so I hit the wall fairly quickly. This gets me further
than using the sun gcc3.3 package, but by not much.