Subject: Compiling kde3 with gcc 4
To: None <pkgsrc-users@netbsd.org>
From: Sverre Froyen <sverre@viewmark.com>
List: pkgsrc-users
Date: 06/26/2006 12:58:34
Hi,

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).

*** 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

*** 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.

Thanks,

Sverre