Subject: Re: gnome-building problems
To: Frederick Bruckman <fredb@immanent.net>
From: Steven M. Bellovin <smb@research.att.com>
List: netbsd-users
Date: 08/09/2002 00:30:59
In message <Pine.NEB.4.44.0208081843410.10725-100000@tautology.immanent.net>, F
rederick Bruckman writes:
>On Thu, 8 Aug 2002, Steven M. Bellovin wrote:
>> In message <Pine.NEB.4.44.0208081337210.21899-100000@despair.immanent.net>, 
>Fre
>> derick Bruckman writes:
>> >> ../libgnomeprint/gnome-font-private.h:25: freetype/freetype.h: No such fi
>le
>> >or directory
>> >> *** Error code 1
>> >
>> >Which package is that? gnome-print?
>> >
>> >"gnome-print" depends on freetype2, and it's buildlinked, so it'll
>> >only pick up whatever includes are in "${WRKDIR}/.buildlink".
>> >
>> I went to gnome and did 'make update'.  I do think that that was
>> gnome-print. I'll try freetype2, but I don't think that that helped
>> before.
>
>Let's say it's gnome-print. It does matter which package is actually
>broken, because if I do a "make package" in "meta-pkgs/gnome" and I
>already have 'gnome-print>=0.29nb1', I may never even see your bug.

Fair enough.
>

>
>It looks like v 1.16 of "graphics/freetype2/buildlink.mk" may fix your
>problem. Would you please update and try again?

I already updated everything in pkgsrc.  Didn't help.
>
>What's supposed to happen, is
>
>1)
>".../gnome-print/work/.buildlink/include/freetype2/freetype/freetype.h"
>should be a symlink to
>"/usr/X11R6/include/freetype2/freetype/freetype.h", and

b143$ pwd 
/usr/pkgsrc/print/gnome-print/work/.buildlink/include/freetype2
b144$ ls -l
total 1
drwxr-xr-x  5 root  wheel  1024 Aug  4 17:26 freetype
lrwxr-xr-x  1 root  wheel    39 Aug  4 17:26 ft2build.h -> /usr/X11R6/include/freetype2/ft2build.h
b145$ ls -l freetype
total 3
drwxr-xr-x  2 root  wheel  512 Aug  4 17:26 cache
drwxr-xr-x  2 root  wheel  512 Aug  4 17:26 config
lrwxr-xr-x  1 root  wheel   48 Aug  4 17:26 freetype.h -> /usr/X11R6/include/freetype2/freetype/freetype.h
lrwxr-xr-x  1 root  wheel   46 Aug  4 17:26 ftbbox.h -> /usr/X11R6/include/freetype2/freetype/ftbbox.h
lrwxr-xr-x  1 root  wheel   47 Aug  4 17:26 ftcache.h -> /usr/X11R6/include/freetype2/freetype/ftcache.h
lrwxr-xr-x  1 root  wheel   50 Aug  4 17:26 ftchapters.h -> /usr/X11R6/include/freetype2/freetype/ftchapters.h
lrwxr-xr-x  1 root  wheel   48 Aug  4 17:26 fterrors.h -> /usr/X11R6/include/freetype2/freetype/fterrors.h
lrwxr-xr-x  1 root  wheel   47 Aug  4 17:26 ftglyph.h -> /usr/X11R6/include/freetype2/freetype/ftglyph.h
lrwxr-xr-x  1 root  wheel   47 Aug  4 17:26 ftimage.h -> /usr/X11R6/include/freetype2/freetype/ftimage.h
lrwxr-xr-x  1 root  wheel   46 Aug  4 17:26 ftlist.h -> /usr/X11R6/include/freetype2/freetype/ftlist.h
lrwxr-xr-x  1 root  wheel   45 Aug  4 17:26 ftmac.h -> /usr/X11R6/include/freetype2/freetype/ftmac.h
lrwxr-xr-x  1 root  wheel   44 Aug  4 17:26 ftmm.h -> /usr/X11R6/include/freetype2/freetype/ftmm.h
lrwxr-xr-x  1 root  wheel   48 Aug  4 17:26 ftmoderr.h -> /usr/X11R6/include/freetype2/freetype/ftmoderr.h
lrwxr-xr-x  1 root  wheel   48 Aug  4 17:26 ftmodule.h -> /usr/X11R6/include/freetype2/freetype/ftmodule.h
lrwxr-xr-x  1 root  wheel   47 Aug  4 17:26 ftoutln.h -> /usr/X11R6/include/freetype2/freetype/ftoutln.h
lrwxr-xr-x  1 root  wheel   48 Aug  4 17:26 ftrender.h -> /usr/X11R6/include/freetype2/freetype/ftrender.h
lrwxr-xr-x  1 root  wheel   47 Aug  4 17:26 ftsizes.h -> /usr/X11R6/include/freetype2/freetype/ftsizes.h
lrwxr-xr-x  1 root  wheel   48 Aug  4 17:26 ftsnames.h -> /usr/X11R6/include/freetype2/freetype/ftsnames.h
lrwxr-xr-x  1 root  wheel   47 Aug  4 17:26 ftsynth.h -> /usr/X11R6/include/freetype2/freetype/ftsynth.h
lrwxr-xr-x  1 root  wheel   48 Aug  4 17:26 ftsystem.h -> /usr/X11R6/include/freetype2/freetype/ftsystem.h
lrwxr-xr-x  1 root  wheel   48 Aug  4 17:26 fttrigon.h -> /usr/X11R6/include/freetype2/freetype/fttrigon.h
lrwxr-xr-x  1 root  wheel   47 Aug  4 17:26 fttypes.h -> /usr/X11R6/include/freetype2/freetype/fttypes.h
drwxr-xr-x  2 root  wheel  512 Aug  4 17:26 internal
lrwxr-xr-x  1 root  wheel   48 Aug  4 17:26 t1tables.h -> /usr/X11R6/include/freetype2/freetype/t1tables.h
lrwxr-xr-x  1 root  wheel   48 Aug  4 17:26 ttnameid.h -> /usr/X11R6/include/freetype2/freetype/ttnameid.h
lrwxr-xr-x  1 root  wheel   48 Aug  4 17:26 tttables.h -> /usr/X11R6/include/freetype2/freetype/tttables.h
lrwxr-xr-x  1 root  wheel   46 Aug  4 17:26 tttags.h -> /usr/X11R6/include/freetype2/freetype/tttags.h

>
>2)
>"-I${PKGOBJ}/print/gnome-print/work.i386/.buildlink/include/freetype2"
>should be added to the the "cc" command line, so it'll look there.
>

Not sure which cc command line you mean.

Anyway -- I gave up and installed gnome-print from the binary 
distribution.  That let me install gnome; now, trying to install 
gabber, I get a similar failure:

GabberUtility.cc:31: gal/widgets/e-unicode.h: No such file or directory
gmake[2]: *** [GabberUtility.o] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/chat/gabber/work/gabber-0.8.7/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/chat/gabber/work/gabber-0.8.7'
gmake: *** [all] Error 2

I won't be able to play with it again for a couple of weeks; I may try 
to wipe pkgsrc before starting again.

		--Steve Bellovin, http://www.research.att.com/~smb (me)
		http://www.wilyhacker.com ("Firewalls" book)