Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 646454

Summary: dev-games/openscenegraph-3.5.1-r2 - fails to build with jpeg-9
Product: Gentoo Linux Reporter: Andreas Sturmlechner <asturm>
Component: Current packagesAssignee: Maciej Mrozowski <reavertm>
Severity: normal CC: games
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 479818    
Attachments: build.log.gz

Description Andreas Sturmlechner gentoo-dev 2018-02-03 00:23:09 UTC
Created attachment 517628 [details]

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:

  typedef int boolean;
  #define FALSE 0
  #define TRUE 1

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):

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

    dev-games/openscenegraph: Fix build with jpeg-9
    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(-)