Subject: pkg/34324: cups-1.1.23-nb10 won't compile on NetBSD 4.0 Beta
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 08/29/2006 08:40:00
>Number:         34324
>Category:       pkg
>Synopsis:       cups-1.1.23-nb10 won't compile on NetBSD 4.0 Beta
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 29 08:40:00 +0000 2006
>Originator:     Peter Kerwien
>Release:        4.0 Beta
NetBSD netbsd 4.0_BETA NetBSD 4.0_BETA (MYKERNEL) #1: Tue Aug 29 05:37:53 CEST 2006  root@netbsd:/usr/obj/sys/arch/amd64/compile/MYKERNEL amd64
I upgraded to my system to the netbsd-4 branch (synced with CVS at 2006-08-29) and after that I wanted to test if all installed SW could be recompiled with gcc 4.1.2, so I also synced pkgsrc to HEAD. Everything went smooth except cups which won't compile. I get this error:

bash-3.1# make
=> Required installed package digest>=20010302: digest-20060302 found
=> Fetching cups-1.1.23-source.tar.bz2
=> Checksum SHA1 OK for cups-1.1.23-source.tar.bz2
=> Checksum RMD160 OK for cups-1.1.23-source.tar.bz2
===> Building for cups-1.1.23nb10
Making all in cups...
Making all in backend...
Making all in berkeley...
Making all in cgi-bin...
Making all in filter...
Making all in man...
Making all in man/es...
Making all in man/fr...
Making all in pdftops...
Compiling GfxFont.cxx...
*** Warning: inferring the mode of operation is deprecated.
*** Future versions of Libtool will require --mode=MODE be specified.
 c++ -Wall -fPIC -O2 -DPNG_NO_ASSEMBLER_CODE -I/usr/pkgsrc/print/cups/work/.buildlink/include -O2 -I.. -c GfxFont.cxx  -fPIC -DPIC -o .libs/GfxFont.o
GfxFont.cxx: In member function 'Gushort* Gfx8BitFont::getCodeToGIDMap(TrueTypeFontFile*)':
GfxFont.cxx:972: error: cast from 'void*' to 'int' loses precision
gmake[1]: *** [GfxFont.o] Error 1
gmake: *** [all] Error 1
*** Error code 2

make: stopped in /usr/pkgsrc/print/cups
*** Error code 1

make: stopped in /usr/pkgsrc/print/cups

1. Upgrade your system to the netbsd-4 branch.
2. Upgrade pkgsrc to HEAD
3. Try to install/reinstall printer/cups