[MacPorts] #74326: apr-util @1.6.4 does not build on PPC Leopard, Mac OS X 10.5.8, because of crypto/apr_passwd.c:73:20: error: missing binary operator before token "("
MacPorts
noreply at macports.org
Fri Aug 14 21:55:01 UTC 2026
#74326: apr-util @1.6.4 does not build on PPC Leopard, Mac OS X 10.5.8, because of
crypto/apr_passwd.c:73:20: error: missing binary operator before token "("
-------------------------+----------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.12.5
Keywords: ppc leopard | Port: apr-util
-------------------------+----------------------
{{{
/bin/sh /opt/local/share/apr-1/build/libtool --silent --mode=compile
--tag=CC /usr/bin/gcc-4.2 -std=gnu99 -arch ppc -pipe -Os -DHAVE_CONFIG_H
-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/opt/local/include
-I/opt/local/var/macports/build/apr-util-ac417e7a/work/apr-
util-1.6.4/include -I/opt/local/var/macports/build/apr-util-ac417e7a/work
/apr-util-1.6.4/include/private -I/opt/local/include
-I/opt/local/include/apr-1 -I/opt/local/include -o crypto/apr_passwd.lo
-c crypto/apr_passwd.c && touch crypto/apr_passwd.lo
crypto/apr_passwd.c:73:20: error: missing binary operator before token "("
make[1]: *** [crypto/apr_passwd.lo] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/apr-util-
ac417e7a/work/apr-util-1.6.4'
make: *** [all-recursive] Error 1
make: Leaving directory `/opt/local/var/macports/build/apr-util-
ac417e7a/work/apr-util-1.6.4'
Command failed: cd "/opt/local/var/macports/build/apr-util-ac417e7a/work
/apr-util-1.6.4" && /usr/bin/make -w all EXTRA_CFLAGS='-arch ppc'
EXTRA_LDFLAGS='-arch ppc'
}}}
The code has:
{{{
58 /* Return whether x is not zero, with no branching controlled by
x.
59 *
60 * Taken from the cryptoint library (public domain) by D. J.
Bernstein,
61 * which provides timing attacks safe integer
operations/primitives.
62 * Code:
63 *
https://lib.mceliece.org/libmceliece-20250507/cryptoint/crypto_uint32.h
64 * Paper:
65 * https://cr.yp.to/papers/cryptoint-20250424.pdf
66 */
67 #if (defined(__xlc__) && !defined(__GNUC__))
68 #ifndef __has_attribute
69 #define __has_attribute(__x) 0
70 #endif
71 #endif
72
73 #if __has_attribute(always_inline)
74 __attribute__((always_inline))
75 #endif
}}}
`GCC 15` succeeds to build, but not tested yet.
--
Ticket URL: <https://trac.macports.org/ticket/74326>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list