Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 683320 - media-libs/freeimage-3.18.0 : Source/FreeImage.h:138:14: error: invalid conversion from int to boolean [-fpermissive]
Summary: media-libs/freeimage-3.18.0 : Source/FreeImage.h:138:14: error: invalid conve...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-14 15:37 UTC by Toralf Förster
Modified: 2019-04-14 16:25 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,16.97 KB, text/plain)
2019-04-14 15:37 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,161.93 KB, text/plain)
2019-04-14 15:37 UTC, Toralf Förster
Details
environment (environment,56.02 KB, text/plain)
2019-04-14 15:37 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.01 KB, application/x-bzip)
2019-04-14 15:37 UTC, Toralf Förster
Details
media-libs:freeimage-3.18.0:20190414-145902.log (media-libs:freeimage-3.18.0:20190414-145902.log,12.52 KB, text/plain)
2019-04-14 15:37 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,16.32 KB, application/x-bzip)
2019-04-14 15:37 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-04-14 15:37:19 UTC
In file included from Source/FreeImage/PluginJPEG.cpp:47:
Source/FreeImage/PluginJPEG.cpp: In function ‘boolean empty_output_buffer(j_compress_ptr)’:
Source/FreeImage.h:138: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.1-desktop-plasma_abi32+64_20190410-101928

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

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

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
  [3]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems)
  [3]   ruby26 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.34.0 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.10.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpvO media-libs/freeimage
[ebuild     U ] media-libs/freeimage-3.18.0 [3.15.4-r1] USE="jpeg mng png tiff -jpeg2k -openexr -raw -static-libs -webp%"
Comment 1 Toralf Förster gentoo-dev 2019-04-14 15:37:22 UTC
Created attachment 572786 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-04-14 15:37:25 UTC
Created attachment 572788 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-04-14 15:37:27 UTC
Created attachment 572790 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-04-14 15:37:30 UTC
Created attachment 572792 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-04-14 15:37:33 UTC
Created attachment 572794 [details]
media-libs:freeimage-3.18.0:20190414-145902.log
Comment 6 Toralf Förster gentoo-dev 2019-04-14 15:37:36 UTC
Created attachment 572796 [details]
temp.tbz2
Comment 7 Larry the Git Cow gentoo-dev 2019-04-14 16:25:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=106c26f9a93a0c86346a3ef378ee62ec15bc89d1

commit 106c26f9a93a0c86346a3ef378ee62ec15bc89d1
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2019-04-14 16:24:41 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2019-04-14 16:25:29 +0000

    media-libs/freeimage: Fix building against libjpeg-9
    
    Upstream only applied half of the earlier patch.
    
    Closes: https://bugs.gentoo.org/683320
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 .../files/freeimage-3.18.0-libjpeg9.patch          | 24 ++++++++++++++++++++++
 media-libs/freeimage/freeimage-3.18.0.ebuild       |  1 +
 2 files changed, 25 insertions(+)