[MacPorts] #74424: imlib2 @1.12.7 does not build on PPC Leopard, Mac OS X 10.5.8, because of error: unknown field 'cdata' specified in initializer
MacPorts
noreply at macports.org
Sun Sep 13 13:21:55 UTC 2026
#74424: imlib2 @1.12.7 does not build on PPC Leopard, Mac OS X 10.5.8, because of
error: unknown field 'cdata' specified in initializer
------------------------+-------------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.12.6
Resolution: | Keywords: ppc leopard
Port: imlib2 |
------------------------+-------------------------
Comment (by ballapete):
I do not understand why GCC 4.2 is failing here:
{{{
1024 USC_API USC__FLATTEN int
1025 usc_resize(
1026 const void *restrict input_data, UscImageInfo input_info,
1027 void *restrict output_data, UscImageInfo output_info,
1028 UscExtra *extra
1029 )
1030 {
1031 UscContext ctx[1];
1032 int rc = usc_ctx_init(ctx,
1033 input_info.width, input_info.height,
1034 output_info.width, output_info.height,
1035 extra
1036 );
1037 if (rc < 0)
1038 return rc;
1039 usc_ctx_set_input_buffer(ctx, (UscBuffer){
1040 .cdata = input_data,
1041 .stride_bytes = input_info.stride_bytes,
1042 .pixel_type = input_info.pixel_type,
1043 .flags = input_info.flags,
1044 });
1045 usc_resize_extended(ctx, (UscBuffer){
1046 .data = output_data,
1047 .stride_bytes = output_info.stride_bytes,
1048 .pixel_type = output_info.pixel_type,
1049 .flags = output_info.flags,
1050 });
1051 usc_ctx_release(ctx);
1052 return 0;
1053 }
}}}
Possibly the construct `(UscBuffer){…}` is a bit too modern…
--
Ticket URL: <https://trac.macports.org/ticket/74424#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list