[MacPorts] #17198: dbus: error: `_SC_GETPW_R_SIZE_MAX' undeclared (first use in this function)
#17198: dbus: error: `_SC_GETPW_R_SIZE_MAX' undeclared (first use in this function) -------------------------------------+-------------------------------------- Reporter: ryandesign@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | Port: dbus -------------------------------------+-------------------------------------- Can't build dbus 1.2.4_2 on Mac OS X 10.3.9 Panther with Xcode 1.5 on a Power Mac G4: {{{ /usr/bin/gcc-3.3 -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -fPIC -DDBUS_COMPILATION -DDBUS_MACHINE_UUID_FILE=\"/mp/var/lib/dbus/machine- id\" -DDBUS_SYSTEM_CONFIG_FILE=\"/mp/etc/dbus-1/system.conf\" -DDBUS_SESSION_CONFIG_FILE=\"/mp/etc/dbus-1/session.conf\" -I/mp/include -O2 -no-cpp-precomp -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -fno-common -MT dbus-sysdeps-unix.lo -MD -MP -MF .deps/dbus-sysdeps-unix.Tpo -c dbus-sysdeps-unix.c -fno-common -DPIC -o .libs/dbus-sysdeps-unix.o dbus-sysdeps-unix.c: In function `fill_user_info': dbus-sysdeps-unix.c:1494: error: `_SC_GETPW_R_SIZE_MAX' undeclared (first use in this function) dbus-sysdeps-unix.c:1494: error: (Each undeclared identifier is reported only once dbus-sysdeps-unix.c:1494: error: for each function it appears in.) make[3]: *** [dbus-sysdeps-unix.lo] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 }}} -- Ticket URL: <http://trac.macports.org/ticket/17198> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17198: dbus: error: `_SC_GETPW_R_SIZE_MAX' undeclared (first use in this function) --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: dbus | --------------------------------------+------------------------------------- Comment(by ryandesign@macports.org): I [https://bugs.freedesktop.org/show_bug.cgi?id=18492 reported the bug] to the developers. -- Ticket URL: <http://trac.macports.org/ticket/17198#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17198: dbus: error: `_SC_GETPW_R_SIZE_MAX' undeclared (first use in this function) --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: dbus | --------------------------------------+------------------------------------- Comment(by blb@macports.org): 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. -- Ticket URL: <http://trac.macports.org/ticket/17198#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17198: dbus: error: `_SC_GETPW_R_SIZE_MAX' undeclared (first use in this function) --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: wontfix | Keywords: Port: dbus | --------------------------------------+------------------------------------- Changes (by toby@…): * status: new => closed * resolution: => wontfix Comment: Panther. -- Ticket URL: <http://trac.macports.org/ticket/17198#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17198: dbus: error: `_SC_GETPW_R_SIZE_MAX' undeclared (first use in this function) --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: dbus | --------------------------------------+------------------------------------- Changes (by ryandesign@…): * status: closed => reopened * resolution: wontfix => Comment: Let's keep the ticket open at least until upstream decides what to do with their ticket. -- Ticket URL: <http://trac.macports.org/ticket/17198#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17198: dbus: error: `_SC_GETPW_R_SIZE_MAX' undeclared (first use in this function) --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: dbus | --------------------------------------+------------------------------------- Comment(by toby@…): With over 1000 active tickets in the "ports" component, it's a waste of time to deal with panther-specific issues. -- Ticket URL: <http://trac.macports.org/ticket/17198#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17198: dbus: error: `_SC_GETPW_R_SIZE_MAX' undeclared (first use in this function) --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: dbus | --------------------------------------+------------------------------------- Comment(by ryandesign@…): There probably aren't many Panther users anymore, but I know we have at least a few. We have thus far had the policy of not officially supporting Panther anymore, but also not making it unnecessarily difficult for Panther users, and accepting patches to fix Panther issues where possible. Closing Panther tickets without trying to fix them falls under the "unnecessarily difficult" umbrella for me. If you would like the MacPorts project to revisit its Panther policy, please start a discussion on the mailing list first. -- Ticket URL: <http://trac.macports.org/ticket/17198#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17198: dbus: error: `_SC_GETPW_R_SIZE_MAX' undeclared (first use in this function) --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: dbus | --------------------------------------+------------------------------------- Comment(by toby@…): I thought the policy was "patches accepted" - there's no patch included with this ticket, so... -- Ticket URL: <http://trac.macports.org/ticket/17198#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17198: dbus: error: `_SC_GETPW_R_SIZE_MAX' undeclared (first use in this function) --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: dbus | --------------------------------------+------------------------------------- Comment(by ryandesign@…): If and when I find time to work on a patch, I will attach it here. Until then, this ticket documents that the problem exists and provides a place to log further findings. -- Ticket URL: <http://trac.macports.org/ticket/17198#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 | --------------------------------------+------------------------------------- Changes (by rhwood@…): * status: reopened => new -- Ticket URL: <http://trac.macports.org/ticket/17198#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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
#17198: dbus: error: `_SC_GETPW_R_SIZE_MAX' undeclared (first use in this function) --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: Port: dbus | --------------------------------------+------------------------------------- Changes (by mcalhoun@…): * status: new => closed * resolution: => fixed Comment: This should be fixed in r49300.[[BR]] Please let me know if there are any problems. -- Ticket URL: <http://trac.macports.org/ticket/17198#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts