Subject: pkg/33286: gimp fails to build (png changes ?)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Martin S. Weber <Ephaeton@gmx.net>
List: pkgsrc-bugs
Date: 04/18/2006 16:30:00
>Number:         33286
>Category:       pkg
>Synopsis:       gimp fails to build due to png errs
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 18 16:30:00 +0000 2006
>Originator:     Martin S. Weber
>Release:        NetBSD 3.99.17
>Organization:
	Entropie
	
>Environment:
	
	
	"Today"'s pkgsrc
System: NetBSD circe.entropie.net 3.99.17 NetBSD 3.99.17 (ZIRZE.MP) #0: Mon Apr 10 21:18:52 CEST 2006 root@circe.entropie.net:/src/obj/sys/arch/i386/compile/ZIRZE.MP i386
Architecture: i386
Machine: i386
>Description:
gimp fails to build.

...
creating plasma
if cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/usr/pkg/include/gtk-2.0 -I/usr/pkg/lib/gtk-2.0/include -I/usr/pkg/include/atk-1.0 -I/usr/pkg/include/cairo -I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include -I/usr/pkg/include/freetype2   -I/usr/pkg/include   -I/usr/pkg/include/librsvg-2 -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/gtk-2.0   -I/usr/pkg/include/freetype2 -I/usr/pkg/include -I/usr/pkg/xorg/include -I/usr/pkg/include -I/usr/pkg/include  -I/usr/pkg/include -I/usr/pkg/xorg/include -I/usr/include -I/usr/include/krb5 -DGLX_GLXEXT_LEGACY -I/usr/pkg/include/freetype2 -DGIMP_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE  -O2 -march=pentium3 -I/usr/pkg/include -I/usr/pkg/xorg/include -I/usr/include -I/usr/include/krb5 -DGLX_GLXEXT_LEGACY -I/usr/pkg/include/freetype2 -Wall -MT png.o -MD -MP -MF ".deps/png.Tpo" -c -o png.o png.c; \
then mv -f ".deps/png.Tpo" ".deps/png.Po"; else rm -f ".deps/png.Tpo"; exit 1; fi
/bin/sh ../../libtool --tag=CC --mode=link cc  -O2 -march=pentium3 -I/usr/pkg/include -I/usr/pkg/xorg/include -I/usr/include -I/usr/include/krb5 -DGLX_GLXEXT_LEGACY -I/usr/pkg/include/freetype2 -Wall  -Wl,-E -L/usr/pkg/xorg/lib -Wl,-R/usr/pkg/xorg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -o png  png.o ../../libgimp/libgimpui-2.0.la ../../libgimpwidgets/libgimpwidgets-2.0.la ../../libgimp/libgimp-2.0.la ../../libgimpcolor/libgimpcolor-2.0.la ../../libgimpbase/libgimpbase-2.0.la -lpng -lz -Wl,-R/usr/pkg/lib -Wl,--rpath -Wl,/usr/pkg/lib -L/usr/pkg/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lfontconfig -lfreetype -lz -lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl    -lintl  
cc -O2 -march=pentium3 -I/src/pkgsrc/graphics/gimp/work/.buildlink/include -I/src/pkgsrc/graphics/gimp/work/.x11-buildlink/include -I/usr/include/krb5 -DGLX_GLXEXT_LEGACY -I/src/pkgsrc/graphics/gimp/work/.buildlink/include/freetype2 -Wall -Wl,-E -Wl,-R/usr/pkg/xorg/lib -Wl,-R/usr/pkg/lib -o .libs/png png.o -Wl,--rpath -Wl,/usr/pkg/lib  -L/src/pkgsrc/graphics/gimp/work/gimp-2.2.11/libgimp/.libs -L/src/pkgsrc/graphics/gimp/work/gimp-2.2.11/libgimpwidgets/.libs -L/src/pkgsrc/graphics/gimp/work/gimp-2.2.11/libgimpcolor/.libs -L/src/pkgsrc/graphics/gimp/work/gimp-2.2.11/libgimpbase/.libs -L/src/pkgsrc/graphics/gimp/work/gimp-2.2.11/libgimpmodule/.libs -L/src/pkgsrc/graphics/gimp/work/.x11-buildlink/lib -L/src/pkgsrc/graphics/gimp/work/.buildlink/lib ../../libgimp/.libs/libgimpui-2.0.so /src/pkgsrc/graphics/gimp/work/gimp-2.2.11/libgimp/.libs/libgimp-2.0.so /src/pkgsrc/graphics/gimp/work/gimp-2.2.11/libgimpwidgets/.libs/libgimpwidgets-2.0.so /src/pkgsrc/graphics/gimp/work/gimp-2.2.
 11/libgimpmodule/.libs/libgimpmodule-2.0.so ../../libgimpwidgets/.libs/libgimpwidgets-2.0.so ../../libgimp/.libs/libgimp-2.0.so /src/pkgsrc/graphics/gimp/work/gimp-2.2.11/libgimpcolor/.libs/libgimpcolor-2.0.so /src/pkgsrc/graphics/gimp/work/gimp-2.2.11/libgimpbase/.libs/libgimpbase-2.0.so ../../libgimpcolor/.libs/libgimpcolor-2.0.so ../../libgimpbase/.libs/libgimpbase-2.0.so /src/pkgsrc/graphics/gimp/work/.buildlink/lib/libpng.so /src/pkgsrc/graphics/gimp/work/.buildlink/lib/libgtk-x11-2.0.so /src/pkgsrc/graphics/gimp/work/.buildlink/lib/libgdk-x11-2.0.so /src/pkgsrc/graphics/gimp/work/.buildlink/lib/libatk-1.0.so /src/pkgsrc/graphics/gimp/work/.buildlink/lib/libgdk_pixbuf-2.0.so /src/pkgsrc/graphics/gimp/work/.buildlink/lib/libpangocairo-1.0.so /src/pkgsrc/graphics/gimp/work/.buildlink/lib/libcairo.so /src/pkgsrc/graphics/gimp/work/.buildlink/lib/libXrender.so -lX11 /src/pkgsrc/graphics/gimp/work/.buildlink/lib/libpng12.so /src/pkgsrc/graphics/gimp/work/.buildlink/lib/libgl
 itz.so /src/pkgsrc/graphics/gimp/work/.buildlink/lib/libpang!
 oft2-1.0
.so /src/pkgsrc/graphics/gimp/work/.buildlink/lib/libfontconfig.so /src/pkgsrc/graphics/gimp/work/.buildlink/lib/libexpat.so /src/pkgsrc/graphics/gimp/work/.buildlink/lib/libfreetype.so -lz /src/pkgsrc/graphics/gimp/work/.buildlink/lib/libpango-1.0.so -lm /src/pkgsrc/graphics/gimp/work/.buildlink/lib/libgobject-2.0.so /src/pkgsrc/graphics/gimp/work/.buildlink/lib/libgmodule-2.0.so /src/pkgsrc/graphics/gimp/work/.buildlink/lib/libglib-2.0.so -lintl -Wl,--rpath -Wl,/usr/pkg/lib -Wl,--rpath -Wl,/src/pkgsrc/graphics/gimp/work/.buildlink/lib
png.o(.text+0xec2): In function `load_image':
: undefined reference to `png_read_destroy'
png.o(.text+0x1bf1): In function `save_image':
: undefined reference to `png_write_destroy'
gmake[3]: *** [png] Error 1
gmake[3]: Leaving directory `/src/pkgsrc/graphics/gimp/work/gimp-2.2.11/plug-ins/common'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/src/pkgsrc/graphics/gimp/work/gimp-2.2.11/plug-ins'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/src/pkgsrc/graphics/gimp/work/gimp-2.2.11'
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /src/pkgsrc/graphics/gimp
===> 
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /src/pkgsrc/graphics/gimp/work/.work.log
===> 
*** Error code 1

Stop.
make: stopped in /src/pkgsrc/graphics/gimp
*** Error code 1

Stop.
make: stopped in /src/pkgsrc/graphics/gimp
...

looks like fallout from latest change to png.

	
>How-To-Repeat:
	cd $PKGSRCDIR/graphics/gimp && make & wait ...
	
>Fix:
	dunno.
	

>Unformatted: