Opened 9 months ago

Closed 8 months ago

#69431 closed defect (fixed)

ghostscript @10.02.1 fails to build against openjpeg 2.5.1

Reported by: lukaso (Lukas Oberhuber) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), cjones051073 (Chris Jones), i0ntempest
Port: openjpeg ghostscript

Description

Build was on a fresh machine

Attachments (1)

ghostscript.log (431.7 KB) - added by lukaso (Lukas Oberhuber) 9 months ago.
build log

Download all attachments as: .zip

Change History (8)

Changed 9 months ago by lukaso (Lukas Oberhuber)

Attachment: ghostscript.log added

build log

comment:1 Changed 9 months ago by lukaso (Lukas Oberhuber)

Summary: ghostscript (version unclear as being installed as a dependency, but 10.2 possibly) not building on Apple Siliconghostscript @10.02.1 not building on Apple Silicon

comment:2 Changed 9 months ago by jmroot (Joshua Root)

Summary: ghostscript @10.02.1 not building on Apple Siliconghostscript @10.02.1 fails to build against openjpeg 2.5.1
:info:build ./base/sjpx_openjpeg.c:763:65: error: too few arguments to function call, expected 3, have 2
:info:build             opj_stream_set_user_data(state->stream, &(state->sb));
:info:build             ~~~~~~~~~~~~~~~~~~~~~~~~                            ^
:info:build /Users/circleci/macports-gimp2-arm64/include/openjpeg-2.5/openjpeg.h:1235:27: note: 'opj_stream_set_user_data' declared here
:info:build OPJ_API void OPJ_CALLCONV opj_stream_set_user_data(opj_stream_t* p_stream,
:info:build                           ^

comment:3 Changed 9 months ago by jmroot (Joshua Root)

Strangely it seems that this function has taken 3 arguments for around 10 years, see #43599.

comment:4 Changed 9 months ago by lukaso (Lukas Oberhuber)

I think this variable/env/something isn't being set correctly: OPJ_VERSION_MAJOR.

:info:build ./base/sjpx_openjpeg.c:760:5: warning: 'OPJ_VERSION_MAJOR' is not defined, evaluates to 0 [-Wundef]
:info:build #if OPJ_VERSION_MAJOR >= 2 && OPJ_VERSION_MINOR >= 1

comment:5 Changed 9 months ago by jmroot (Joshua Root)

Cc: MarcusCalhoun-Lopez cjones051073 added
Port: openjpeg added

comment:6 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

Here is the upstream bug:

https://github.com/uclouvain/openjpeg/issues/1514

It's fixed in openjpeg 2.5.2.

comment:7 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: i0ntempest added
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.