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

Bug 647422

Summary: media-libs/freeimage-3.15.4-r1 : Source/FreeImage.h:124:14: error: invalid conversion from int to boolean [-fpermissive]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal CC: plevine457
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/7603
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 617524    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
media-libs:freeimage-3.15.4-r1:20180212-013719.log
temp.tbz2

Description Toralf Förster gentoo-dev 2018-02-12 18:09:23 UTC
In file included from Source/FreeImage/PluginJPEG.cpp:47:0:
Source/FreeImage/PluginJPEG.cpp: In function ‘boolean empty_output_buffer(j_compress_ptr)’:
Source/FreeImage.h:124:14: error: invalid conversion from ‘int’ to ‘boolean’ [-fpermissive]
 #define TRUE 1
              ^
Source/FreeImage/PluginJPEG.cpp:223:9: note: in expansion of macro ‘TRUE’

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-plasma_test_20180210-100555

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv media-libs/freeimage
Comment 1 Toralf Förster gentoo-dev 2018-02-12 18:09:26 UTC
Created attachment 519180 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-02-12 18:09:29 UTC
Created attachment 519182 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-02-12 18:09:32 UTC
Created attachment 519184 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-02-12 18:09:35 UTC
Created attachment 519186 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-02-12 18:09:38 UTC
Created attachment 519188 [details]
media-libs:freeimage-3.15.4-r1:20180212-013719.log
Comment 6 Toralf Förster gentoo-dev 2018-02-12 18:09:41 UTC
Created attachment 519190 [details]
temp.tbz2
Comment 7 Peter Levine 2018-03-25 03:49:27 UTC
PR: https://github.com/gentoo/gentoo/pull/7603
Comment 8 Larry the Git Cow gentoo-dev 2018-03-25 20:15:32 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d002912bd07e18c25b0142774a7ab8b97f7489c

commit 1d002912bd07e18c25b0142774a7ab8b97f7489c
Author:     Peter Levine <plevine457@gmail.com>
AuthorDate: 2018-03-25 03:38:40 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2018-03-25 20:14:38 +0000

    media-libs/freeimage: Fix building against =media-libs/jpeg-9*
    
    Bug: https://bugs.gentoo.org/647422
    Package-Manager: Portage-2.3.16, Repoman-2.3.6
    Closes: https://github.com/gentoo/gentoo/pull/7603

 .../files/freeimage-3.15.4-libjpeg9.patch          | 45 ++++++++++++++++++++++
 media-libs/freeimage/freeimage-3.15.4-r1.ebuild    |  3 +-
 2 files changed, 47 insertions(+), 1 deletion(-)}
Comment 9 James Le Cuirot gentoo-dev 2018-03-25 20:16:54 UTC
I didn't test against jpeg-9 but I'll take your word for it. Thanks!
Comment 10 Toralf Förster gentoo-dev 2019-04-14 15:37:33 UTC
pls see bug 683320