Subject: pkg/26602: graphics/png update does not build on netbsd-1-6
To: None <>
From: Hauke Fath <>
List: pkgsrc-bugs
Date: 08/09/2004 11:55:28
>Number:         26602
>Category:       pkg
>Synopsis:       graphics/png update does not build on netbsd-1-6
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 09 10:34:00 UTC 2004
>Originator:     Hauke Fath <>
>Release:        NetBSD 1.6.2_STABLE
/~\  The ASCII Ribbon Campaign                      Hauke Fath
\ /    No HTML/RTF in email	          Institut für Nachrichtentechnik
 X     No Word docs in email	                    TU Darmstadt
/ \  Respect for open standards                Ruf +49-6151-16-3281
System: NetBSD zugspitze 1.6.2_STABLE NetBSD 1.6.2_STABLE (GENERIC) #2: Thu Jun 17 15:44:03 CEST 2004 hf@heiligenberg:/var/obj/netbsd-builds/1_6/i386/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386

	The graphics/png update of today breaks the build on NetBSD 1.6.

/etc/mk.conf has

CFLAGS +=		-mcpu=i686
CXXFLAGS +=		-mcpu=i686


libtool  --mode=compile gcc -O2 -mcpu=i686 -I/usr/include   -I/usr/include -c pngpread.c
 gcc -O2 -mcpu=i686 -c pngpread.c  -fPIC -DPIC -o .libs/pngpread.o
 gcc -O2 -mcpu=i686 -c pngpread.c -o pngpread.o >/dev/null 2>&1
libtool  --mode=link gcc -o png.lo pngset.lo pngget.lo pngrutil.lo pngtrans.lo pngwutil.lo pngread.lo pngrio.lo pngwio.lo pngwrite.lo pngrtran.lo pngwtran.lo pngmem.lo pngerror.lo pngpread.lo -rpath /usr/pkg/lib  -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -lz -lm -version-info 3:1
gcc -shared  .libs/png.o .libs/pngset.o .libs/pngget.o .libs/pngrutil.o .libs/pngtrans.o .libs/pngwutil.o .libs/pngread.o .libs/pngrio.o .libs/pngwio.o .libs/pngwrite.o .libs/pngrtran.o .libs/pngwtran.o .libs/pngmem.o .libs/pngerror.o .libs/pngpread.o  -L/usr/src/pkgsrc/graphics/png/work/.buildlink/lib -lz -lm  -Wl,-R/usr/pkg/lib -Wl,-soname -Wl, -o .libs/
(cd .libs && rm -f && ln -s
(cd .libs && rm -f && ln -s
ar cru .libs/libpng.a  png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o pngwtran.o pngmem.o pngerror.o pngpread.o
ranlib .libs/libpng.a
(cd .libs && rm -f && ln -s ../
libtool  --mode=compile gcc -O2 -mcpu=i686 -I/usr/include   -I/usr/include -c pngtest.c
 gcc -O2 -mcpu=i686 -c pngtest.c  -fPIC -DPIC -o .libs/pngtest.o
pngtest.c: In function `png_debug_malloc':
pngtest.c:515: parse error before `pinfo'
pngtest.c:517: `pinfo' undeclared (first use in this function)
pngtest.c:517: (Each undeclared identifier is reported only once
pngtest.c:517: for each function it appears in.)
*** Error code 1


	< cd {pkgsrc} && cvs update -dP>
	cd /usr/src/pkgsrc/graphics/png
	make clean && make

	Yes, please.  :)