Subject: Re: problems compiling kdelibs3
To: D'Arcy J.M. Cain <darcy@netbsd.org>
From: Hisashi T Fujinaka <htodd@twofifty.com>
List: current-users
Date: 08/17/2002 15:36:28
how is a patch to kdelibs2 going  to help me compile kdelibs3?

I guess _XOPEN_SOURCE needs to be defined in kdelibs3 as well.

On Sat, 17 Aug 2002, D'Arcy J.M. Cain wrote:

> On August 17, 2002 02:31 pm, Jaromir Dolecek wrote:
> > Oh yeah, encountered this too. struct utmpx uses struct sockaddr_storage,
> > which isn't defined if _XOPEN_SOURCE is defined (which some software
> > apparently does define). I'm not sure what is the correct fix to this,
> > but I just removed the
> >
> > #if !defined(_XOPEN_SOURCE) || (_XOPEN_SOURCE - 0) >= 500
> > #endif
> >
> > around struct sockaddr_storage definition in my <sys/socket.h>
> > for now.
>
> Ditto.  I was about to send-pr it when I noticed a fix from Matthias Scheler
> <tron@netbsd.org> go through the netbsd-changes mailing list so that fix
> shouldn't be necessary any more.  He did it as a patch to kdelibs2.
>
> cvs rdiff -r0 -r1.1 pkgsrc/x11/kdelibs2/patches/patch-bz
>
> I wondered if it wouldn't have made more sense to fix utmpx.h since it
> doesn't seem to me that a system header should fail just by including it but
> I didn't have time to check all the ramificatons.
>
>

-- 
Hisashi T Fujinaka - htodd@twofifty.com
BSEE (6/86) + BSChem (3/95) + BAEnglish (8/95) + $2.50 = mocha latte