Subject: pkg/24855: gtk2+ (current) doesn't build
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <netbsd-install@home.nl>
List: netbsd-bugs
Date: 03/20/2004 03:41:08
>Number:         24855
>Category:       pkg
>Synopsis:       gtk2+ (current) doesn't build
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 20 03:42:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Noud de Brouwer
>Release:        1.6ZK
>Organization:
none
>Environment:
NetBSD host016.template 1.6ZK NetBSD 1.6ZK (GENERIC.MP) #0: Thu Mar 18 03:44:55 UTC 2004  autobuild@tgm.netbsd.org:/autobuild/HEAD/i386/OBJ/autobuild/HEAD/src/sys/arch/i386/compile/GENERIC.MP i386

>Description:
GDK_PIXBUF_MODULE_FILE=../../gdk-pixbuf/gdk-pixbuf.loaders ../../gdk-pixbuf/gdk-pixbuf-csource                                                  \^M
   --raw --build-list stock_add_16 ./stock_add_16.png stock_add_24 ./stock_add_24.png stock_align_center_16 ./stock_align_center_16.png stock_align_center_24 ./stock_align_center_24.png stock_align_justify_16 ./stock_align_justify_16.png stock_align_justify_24 ./stock_align_justify_24.png stock_align_left_16 ./stock_align_left_16.png stock_align_left_24 ./stock_align_left_24.png stock_align_right_16 ./stock_align_right_16.png stock_align_right_24 ./stock_align_right_24.png stock_apply_20 ./stock_apply_20.png stock_cancel_20 ./stock_cancel_20.png stock_dnd_multiple_32 ./stock_dnd_multiple_32.png stock_bottom_16 ./stock_bottom_16.png
stock_bottom_24 ./stock_bottom_24.png stock_cdrom_16 ./stock_cdrom_16.png stock_cdrom_24 ./stock_cdrom_24.png stock_clear_24 ./stock_clear_24.png stock_close_20 ./stock_close_20.png stock_close_24 ./stock_close_24.png stock_colorselector_24 ./stock_colorselector_24.png stock_color_picker_25 ./stock_color_picker_25.png
> ./gtkstockpixbufs.h ||        \
           ( rm -f ./gtkstockpixbufs.h && false )
failed to load "./stock_add_16.png": Couldn't recognize the image file format for file './stock_add_16.png'^M
gmake[3]: *** [gtkstockpixbufs.h] Error 1
gmake[3]: Leaving directory `/usr/pkgsrc/x11/gtk2/work/gtk+-2.2.4/gtk/stock-icons'^M
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/x11/gtk2/work/gtk+-2.2.4/gtk'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/x11/gtk2/work/gtk+-2.2.4'
gmake: *** [all-recursive-am] Error 2
*** Error code 2

same probl. as Hisashi T Fujinaka <htodd@twofifty.com> discribes in
http://mail-index.netbsd.org/tech-pkg/2004/03/18/0028.html

at configure a correct build showing:
checking for libpng12... no
checking for png_read_info in -lpng... yes
checking png.h usability... yes
checking png.h presence... yes

an incorrect configure showing:
checking for libpng12... yes

>How-To-Repeat:
get and install
releng.netbsd.org/pub/NetBSD-daily/current/200403170000/i386
pkgsrc from Mar 19 2004

cd /usr/pkgsrc/x11/gtk2;make
>Fix:
this dirty patch got it building again:

--- configure   2004-03-20 02:51:52.000000000 +0100
+++ configure.new       2004-03-20 03:59:22.000000000 +0100
@@ -23969,12 +23969,6 @@
     echo "$as_me:$LINENO: checking for libpng12" >&5
 echo $ECHO_N "checking for libpng12... $ECHO_C" >&6
     if $PKG_CONFIG --exists libpng12 ; then
-        echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
-        PNG='png'
-       PNG_DEP_CFLAGS_PACKAGES=libpng12
-       LIBPNG=`$PKG_CONFIG --libs libpng12`
-    else
       echo "$as_me:$LINENO: result: no" >&5
 echo "${ECHO_T}no" >&6
       echo "$as_me:$LINENO: checking for png_read_info in -lpng" >&5

>Release-Note:
>Audit-Trail:
>Unformatted: