Subject: pkg/34187: Pango bug: GTK2+ build fails looking for libharfbuzz
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <srcshelton@gmail.com>
List: pkgsrc-bugs
Date: 08/11/2006 16:20:00
>Number:         34187
>Category:       pkg
>Synopsis:       Pango bug: GTK2+ build fails looking for libharfbuzz
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 11 16:20:00 +0000 2006
>Originator:     Stuart Shelton
>Release:        n/a
>Organization:
>Environment:
IRIX64 octane 6.5 01090133 IP30 mips
>Description:

gtk+-2.8.20 build now fails, during the build of gtk-query-immodules-2.0: It tries to link to a library named "libharfbuzz-1", which exists neither on my system nor in any package's PLIST.

The output was:

c99 -c99 -O2 -n32 -mips4 -r14000 -apo -float_const -use_readonly_const -TARG:isa=mips4:platform=ip30:processor=r14000 -TENV:zeroinit_in_bss=ON -OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON -LNO:auto_dist=ON:fusion_peeling_limit=8:gather_scatter=2 -woff 1174,1183,1185,1552,3970,3968 -n32 -I/usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/include -D_REENTRANT -I/usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/include -I/usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/include/freetype2 -Wl,-v -Wl,-s -Wl,-x -n32 -mips4 -rdata_shared -Wl,-allow_jump_at_eop -Wl,-rpath -Wl,/usr/bsd/lib -n32 -Wl,-rpath -Wl,/usr/bsd/lib32 -Wl,-rpath -Wl,/usr/lib32 -o .libs/gtk-query-immodules-2.0 queryimmodules.o  -L/usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk-pixbuf/.libs -L/usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk/.libs -L/usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32 -L/usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/lib32 ./.libs/libgtk-x11-2.0.so -L/usr/bsd/var/tmp/x11/gtk2/work/
 .buildlink/lib -L/usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk/.libs/libgdk-x11-2.0.so /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libatk-1.0.so ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so ../gdk/.libs/libgdk-x11-2.0.so -lXi /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libpangocairo-1.0.so /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libpangoft2-1.0.so -lharfbuzz-1 /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libpango-1.0.so /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libcairo.so /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libglitz.so /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libpng12.so -lSM -lICE -lpthread -lrt /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libfontconfig.so /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libfreetype.so -lz /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libexpat.so /usr/bsd/var/tmp/
 x11/gtk2/work/.x11-buildlink/bsd/lib32/libXrandr.so -lXext /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libXcursor.so /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libXrender.so /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libXfixes.so -lX11 /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libgmodule-2.0.so /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libgobject-2.0.so /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libglib-2.0.so /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libintl.so -lc /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libiconv.so -lmp -lm -Wl,-rpath -Wl,/usr/bsd/lib:/usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32
/usr/bsd/var/tmp/x11/gtk2/work/.wrapper/bin/c99[50]: : cannot execute
/usr/bsd/var/tmp/x11/gtk2/work/.wrapper/bin/c99[50]: : cannot execute
ld32: Mapped ===   /usr/lib32/mips4/crt1.o    ====   at address  0x4000000 
ld32: 1: loading /usr/lib32/mips4/crt1.o.
ld32: Mapped ===   /usr/lib32/mips4/dsmcrt.o    ====   at address  0x4004000 
ld32: 2: loading /usr/lib32/mips4/dsmcrt.o.
ld32: Mapped ===   queryimmodules.o    ====   at address  0x4008000 
ld32: 3: loading queryimmodules.o.
ld32: Mapped ===   ./.libs/libgtk-x11-2.0.so    ====   at address  0x400c000 
ld32: Processing ./.libs/libgtk-x11-2.0.so.
ld32: Mapped ===   ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so    ====   at address  0x4428000 
ld32: Processing ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so.
ld32: Mapped ===   ../gdk/.libs/libgdk-x11-2.0.so    ====   at address  0x4448000 
ld32: Processing ../gdk/.libs/libgdk-x11-2.0.so.
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk-pixbuf/.libs/libgdk-x11-2.0.so...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk-pixbuf/.libs/libgdk-x11-2.0.a...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk/.libs/libgdk-x11-2.0.so...
ld32: Processing /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk/.libs/libgdk-x11-2.0.so.
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk-pixbuf/.libs/libatk-1.0.so...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk-pixbuf/.libs/libatk-1.0.a...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk/.libs/libatk-1.0.so...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk/.libs/libatk-1.0.a...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libatk-1.0.so...
ld32: Mapped ===   /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libatk-1.0.so    ====   at address  0x4500000 
ld32: Processing /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libatk-1.0.so.
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk-pixbuf/.libs/libXi.so...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk-pixbuf/.libs/libXi.a...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk/.libs/libXi.so...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk/.libs/libXi.a...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libXi.so...
ld32: Mapped ===   /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libXi.so    ====   at address  0x4524000 
ld32: Processing /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libXi.so.
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk-pixbuf/.libs/libpangocairo-1.0.so...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk-pixbuf/.libs/libpangocairo-1.0.a...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk/.libs/libpangocairo-1.0.so...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk/.libs/libpangocairo-1.0.a...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libpangocairo-1.0.so...
ld32: Mapped ===   /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libpangocairo-1.0.so    ====   at address  0x4548000 
ld32: Processing /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libpangocairo-1.0.so.
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk-pixbuf/.libs/libpangoft2-1.0.so...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk-pixbuf/.libs/libpangoft2-1.0.a...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk/.libs/libpangoft2-1.0.so...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk/.libs/libpangoft2-1.0.a...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libpangoft2-1.0.so...
ld32: Mapped ===   /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libpangoft2-1.0.so    ====   at address  0x4560000 
ld32: Processing /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libpangoft2-1.0.so.
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk-pixbuf/.libs/libharfbuzz-1.so...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk-pixbuf/.libs/libharfbuzz-1.a...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk/.libs/libharfbuzz-1.so...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gdk/.libs/libharfbuzz-1.a...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libharfbuzz-1.so...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib32/libharfbuzz-1.a...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/lib32/libharfbuzz-1.so...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/lib32/libharfbuzz-1.a...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/.buildlink/lib/libharfbuzz-1.so...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/.buildlink/lib/libharfbuzz-1.a...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib/libharfbuzz-1.so...
ld32: Trying to open /usr/bsd/var/tmp/x11/gtk2/work/.x11-buildlink/bsd/lib/libharfbuzz-1.a...
ld32: Trying to open /usr/lib32/mips4/r10000/libharfbuzz-1.so...
ld32: Trying to open /usr/lib32/mips4/r10000/libharfbuzz-1.a...
ld32: Trying to open /usr/lib32/mips4/libharfbuzz-1.so...
ld32: Trying to open /usr/lib32/mips4/libharfbuzz-1.a...
ld32: Trying to open /usr/lib32/libharfbuzz-1.so...
ld32: Trying to open /usr/lib32/libharfbuzz-1.a...
ld32: Trying to open /usr/lib32/libharfbuzz-1.so...
ld32: Trying to open /usr/lib32/libharfbuzz-1.a...
ld32: Trying to open /lib32/libharfbuzz-1.so...
ld32: Trying to open /lib32/libharfbuzz-1.a...
ld32: Trying to open /usr/local/lib32/libharfbuzz-1.so...
ld32: Trying to open /usr/local/lib32/libharfbuzz-1.a...
ld32: FATAL   9  : I/O error (-lharfbuzz-1): No such file or directory
gmake[4]: *** [gtk-query-immodules-2.0] Error 2
gmake[4]: Leaving directory `/usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gtk'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gtk'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20/gtk'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/bsd/var/tmp/x11/gtk2/work/gtk+-2.8.20'
gmake: *** [all] Error 2
*** Error code 2

Stop.
bmake: stopped in /usr/bsd/src/x11/gtk2
*** Error code 1

Stop.
bmake: stopped in /usr/bsd/src/x11/gtk2

... further, there is no mention of "harfbuzz" in any configure script or Makefile.  It seems to exist in:

$ grep -Ri harfbuzz * | grep -v "/config\." 
| cut -d":" -f 1 | sort | uniq
gtk+-2.8.20/gdk/libgdk-x11-2.0.la.blsav
gtk+-2.8.20/gdk/.libs/libgdk-x11-2.0.lai
gtk+-2.8.20/gdk/.libs/libgdk-x11-2.0.lai.blsav
gtk+-2.8.20/gtk/libgtk-x11-2.0.la.blsav
gtk+-2.8.20/gtk/.libs/libgtk-x11-2.0.lai
gtk+-2.8.20/gtk/.libs/libgtk-x11-2.0.lai.blsav

>How-To-Repeat:

>Fix:

The only other related thing that has changed recently is that I also updated tot he latest Pango - might a pango problem be manifesting when trying to build gtk+-2?

UPDATE: Having run "find -type f -exec grep -H harfbuzz {} \;" in gtk+-2's work directory, I see:

./.buildlink/lib32/libpangocairo-1.0.la:dependency_libs='-lcairo -lfontconfig -lglitz -lpng12 -lXrender -lSM -lICE -lX11 -lpthread -lrt -lpangoft2-1.0 -lharfbuzz-1 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -lc -liconv -lm -lfontconfig -lfreetype -lexpat -liconv -lmp -lfreetype -lz'

... so Pango is causing a dependancy breakage here by claiming to be linked to the(non-existant) libharfbuzz-1