Opened 8 years ago

Closed 7 years ago

#53852 closed defect (fixed)

libdevil @1.7.8: error: expected expression

Reported by: TurBoss (TurBoss) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: libdevil

Description

Hi

Im trying to install libdevil from macports on macOS sierra but it throws an error

i have attached the log output

Thanks

Attachments (1)

main.log (165.4 KB) - added by TurBoss (TurBoss) 8 years ago.
libdevil log output

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by TurBoss (TurBoss)

Attachment: main.log added

libdevil log output

comment:1 Changed 8 years ago by raimue (Rainer Müller)

Keywords: libdevil removed
Owner: set to ryandesign
Status: newassigned

comment:2 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Libdevil fails gcc49 and gcc6libdevil @1.7.8: error: expected expression

The error shown in the log is:

:info:build ./../src-IL/src/il_jp2.c:462:23: error: expected expression
:info:build                         stream->bufbase_ = JAS_CAST(uchar *, buf);
:info:build                                            ^
:info:build /opt/local/include/jasper/jas_types.h:117:5: note: expanded from macro 'JAS_CAST'
:info:build         ((t) (e))
:info:build            ^
:info:build ./../src-IL/src/il_jp2.c:462:32: error: use of undeclared identifier 'uchar'
:info:build                         stream->bufbase_ = JAS_CAST(uchar *, buf);
:info:build                                                     ^

Evidently, libdevil 1.7.8 is not compatible with the current version of jasper.

DevIL is an old graphics library that was abandoned, forked to ResIL, abandoned again, and then revived as DevIL again. 1.8.0 is available and I have begun trying to update the port to that version.

comment:3 Changed 8 years ago by TurBoss (TurBoss)

hello:

any news about this?

Thanks

Last edited 8 years ago by TurBoss (TurBoss) (previous) (diff)

comment:4 Changed 7 years ago by tangobravo62

The file il_jp2.c uses an outdated declaration 'uchar'. In line 462 as cited above, replace 'uchar' by 'jas_uchar', which is the current type declaration for bufbase_ in jas_stream.h.

After replacement, the line should read:

stream->bufbase_ = JAS_CAST(jas_uchar *, buf);

comment:5 Changed 7 years ago by Marcus Calhoun-Lopez <marcuscalhounlopez@…>

Resolution: fixed
Status: assignedclosed

In 1a9b7707bbbab91fb4cfe02c3506bc7de26398f9/macports-ports:

libdevil: allow build with latest version of jasper

No revbump because port either builds correctly or not at all.
Fixes #53852

Note: See TracTickets for help on using tickets.