Subject: Re: Compiling kde3 with gcc 4
To: Sverre Froyen <sverre@viewmark.com>
From: Thomas Klausner <wiz@NetBSD.org>
List: pkgsrc-users
Date: 06/27/2006 16:53:17
On Mon, Jun 26, 2006 at 12:58:34PM -0600, Sverre Froyen wrote:
> I just recompiled meta-pkgs/kde3 using gcc 4 on NetBSD i386.  The sources are 
> from CVS late last week.  Mostly it just works, but I noticed a couple of 
> snags:
> 
> *** multimedia/xine-libs
> 
> Looks like it needs to be upgraded from 1.0 to 1.1 (I reused my gcc 3 compiled 
> version).

I committed a fix for this yesterday.

> *** multimedia/kdemultimedia3
> 
> In file mpeglib/lib/util/render/dither2YUV/rgb2yuvdefs.h, the vars
> 
> 	#ifdef __GNUC_PREREQ
> 	#if __GNUC_PREREQ (3,1)
> 
> should perhaps be __GNUC_PREREQ__ and __GNUC_PREREQ__ in order
> to match /usr/include/sys/cdefs.h

I have a patch for this, will commit soon.

> *** graphics/sane-backends
> 
> The command
> 
> cc -c -O2 -I/usr/pkgsrc/graphics/sane-backends/work.i386/.buildlink/include -W -Wall -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -DPATH_SANE_CONFIG_DIR=/usr/pkg/share/examples/sane -DPATH_SANE_DATA_DIR=/usr/pkg/share -DPATH_SANE_LOCK_DIR=/usr/pkg/var -DV_MAJOR=1 -DV_MINOR=0 -DBACKEND_NAME=plustek_pp -DLIBDIR=/usr/pkg/lib/sane 
> plustek_pp.c  -fPIC -DPIC -o .libs/plustek_pp.o
> 
> produces an internal compiler error.  Removing O2 makes it compile.  It looks 
> like this problem may have been fixed by the commit this morning:
> 
> http://mail-index.netbsd.org/source-changes/2006/06/26/0000.html
> 
> I have started using the new binaries.  So far no problems.

Upgrade your toolchain.
Make sure you have
http://mail-index.netbsd.org/source-changes/2006/06/26/0031.html
too.

Cheers,
 Thomas