[MacPorts] #17198: dbus: error: `_SC_GETPW_R_SIZE_MAX' undeclared (first use in this function)
MacPorts
noreply at macports.org
Thu Apr 2 00:44:29 PDT 2009
#17198: dbus: error: `_SC_GETPW_R_SIZE_MAX' undeclared (first use in this function)
--------------------------------------+-------------------------------------
Reporter: ryandesign@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Resolution: | Keywords:
Port: dbus |
--------------------------------------+-------------------------------------
Comment(by yokota33@…):
Replying to [comment:2 blb@…]:
> It looks like 10.3 only has a subset of the sysconf() definitions that
are present on 10.4+. 10.3 only goes through _SC_AIO_PRIO_DELTA_MAX at 44
(and skips some on its way to 44), 10.4 goes to 125 with fewer skips, and
10.5 adds a few more defines.
So, for darwin 7, somehow the length of the related buffers must be given
manually. In the fix patch, I set:
{{{
sysconf (_SC_GETPW_R_SIZE_MAX) = 4096
sysconf (_SC_GETGR_R_SIZE_MAX) = 4096
}}}
and build ends successfully, but I'm not sure whether these values are
actually appropriate for darwin (i386/ppc) systems. Does anybody know
appropriate values for these? I attached test program to investigate these
on your system, which may help to get some hints.
In addition, I made a dirty hack on Portfile in which patching order
matters (on darwin 7, two patches are applied on the same file). It works
fine at my place, but I'm not sure whether this is a right thing to do. It
may be better make patches which use the preprocessor to branch darwin
versions, but unfortunately I'm new on Mac (someone left me an old mac!)
and don't know which variable gives me the darwin versions. Does anyone
know a better solution?
--
Ticket URL: <http://trac.macports.org/ticket/17198#comment:12>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list