[MacPorts] #65858: jasper @3.0.6 does not build on PPC Leopard, Mac OS X 10.5.8, because "conflicting types for 'max_align_t' typedef long double max_align_t; "
MacPorts
noreply at macports.org
Sun Sep 18 09:23:11 UTC 2022
#65858: jasper @3.0.6 does not build on PPC Leopard, Mac OS X 10.5.8, because
"conflicting types for 'max_align_t' typedef long double max_align_t;"
------------------------+-------------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords: leopard ppc
Port: jasper |
------------------------+-------------------------
Comment (by ballapete):
Actually it's this block in
`jasper-3.0.6/src/libjasper/include/jasper/jas_types.h` that redefines
`max_align_t`:
{{{
167 /*
168 Assume that a compiler claiming to be compliant with C11 or a
later version
169 of the C standard provides a suitable definition of max_align_t.
170 The JAS_NO_SET_MAX_ALIGN_T preprocessor symbol can be used to
override
171 this behavior.
172 */
173 #if defined(JAS_NO_SET_MAX_ALIGN_T)
174 /*
175 The user of this header is assuming responsibility for
providing a
176 suitable definition for max_align_t.
177 */
178 #elif defined(_MSC_VER)
179 /*
180 Define max_align_t as a preprocessor symbol since using
typedef will
181 cause problems.
182 */
183 # define max_align_t long double
184 #elif !(defined(__STDC_VERSION__) && (__STDC_VERSION__ - 0 >=
201112L))
185 # define max_align_t long double
186 #else
187 typedef long double max_align_t;
188 #endif
}}}
The patch adds lines #186 and #187 – which is too much! Or? (I'll test
without that patch when `glib2` has built.)
--
Ticket URL: <https://trac.macports.org/ticket/65858#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list