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>
Status: RESOLVED FIXED    
Severity: normal CC: games
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/openscenegraph/OpenSceneGraph/issues/58
Whiteboard:
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]
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(-)