Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646454 - dev-games/openscenegraph-3.5.1-r2 - fails to build with jpeg-9
Summary: dev-games/openscenegraph-3.5.1-r2 - fails to build with jpeg-9
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL: https://github.com/openscenegraph/Ope...
Whiteboard:
Keywords:
Depends on:
Blocks: jpeg-9
  Show dependency tree
 
Reported: 2018-02-03 00:23 UTC by Andreas Sturmlechner
Modified: 2018-02-07 02:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.gz (openscenegraph-build.log.gz,31.15 KB, application/gzip)
2018-02-03 00:23 UTC, Andreas Sturmlechner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sturmlechner gentoo-dev 2018-02-03 00:23:09 UTC
Created attachment 517628 [details]
build.log.gz

src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:252:34: error: invalid conversion from ‘osgDBJPEG::boolean (*)(j_decompress_ptr) {aka int (*)(jpeg_decompress_struct*)}’ to ‘boolean (*)(j_decompress_ptr) {aka boolean (*)(jpeg_decompress_struct*)}’ [-fpermissive]
Comment 1 Andreas Sturmlechner gentoo-dev 2018-02-07 01:10:55 UTC
Problem is in ReaderWriterJPEG.cpp itself:

#ifndef HAVE_BOOLEAN
  typedef int boolean;
  #define FALSE 0
  #define TRUE 1
#endif

Commenting these lines makes it work.
Comment 2 Larry the Git Cow gentoo-dev 2018-02-07 02:02:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87f44f56ae0765df802f10271bdf6ed4ee5dd59a

commit 87f44f56ae0765df802f10271bdf6ed4ee5dd59a
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-02-07 01:19:35 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-02-07 01:58:43 +0000

    dev-games/openscenegraph: Fix build with jpeg-9
    
    Closes: https://bugs.gentoo.org/646454
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 .../files/openscenegraph-3.5.1-jpeg-9.patch        | 34 ++++++++++++++++++++++
 .../openscenegraph/openscenegraph-3.5.1-r2.ebuild  |  3 +-
 .../openscenegraph/openscenegraph-3.5.5.ebuild     |  3 +-
 3 files changed, 38 insertions(+), 2 deletions(-)