[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-buildsystem
Subject:    Re: getgrouplist error Mac patch
From:       Benjamin Reed <rangerrick () gmail ! com>
Date:       2010-01-13 5:55:48
Message-ID: 57eba2251001122155h725d268ft685613aa9f7b4fbc () mail ! gmail ! com
[Download RAW message or body]

On Mon, Jan 4, 2010 at 4:41 AM, Mike Arthur <mike@mikearthur.co.uk> wrote:
> > http://pastebin.ca/1737071
> 
> Sorry, I'm confused. Is this building KDELibs under Macports or compiling by hand? \
> Also, is this your patch or the patch by Macports?

I'm finally having a chance to update the Fink packages to something
modern, and I hit the same issue building 4.4rc1 -- my patch is
slightly different, however.  It works fine by changing the test to:

  check_symbol_exists(getgrouplist "unistd.h;grp.h" HAVE_GETGROUPLIST)
# kdecore/fakes.c

(I don't know if this has implications otherwise, but I'm assuming
it's pretty safe to say unistd.h is on every KDE-supporting
platform...?)

The symptom is that since the getgrouplist function is defined in
unistd.h (and it's not pulled in properly by grp.h) on OSX, it thinks
that getgrouplist doesn't exist, and it tries to use the kdecore fake
version instead, which then causes conflicts at link-time.

-- 
Benjamin Reed a.k.a. Ranger Rick
Fink, KDE, and Mac OS X development

Blog: http://www.raccoonfink.com/
Music: http://music.raccoonfink.com/
_______________________________________________
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic