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)
Change History (6)
Changed 8 years ago by TurBoss (TurBoss)
comment:1 Changed 8 years ago by raimue (Rainer Müller)
Keywords: | libdevil removed |
---|---|
Owner: | set to ryandesign |
Status: | new → assigned |
comment:2 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | Libdevil fails gcc49 and gcc6 → libdevil @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: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: | assigned → closed |
libdevil log output