Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 578744 - media-libs/libmng-2.0.3: : /.../libmng_jpeg.c:108:10: error: FALSE undeclared (first use in this function)
Summary: media-libs/libmng-2.0.3: : /.../libmng_jpeg.c:108:10: error: FALSE undeclared...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
Depends on:
Blocks: 663544
  Show dependency tree
Reported: 2016-04-01 11:03 UTC by Joerg Neikes
Modified: 2020-07-30 02:37 UTC (History)
1 user (show)

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

libmng-2.0.3-bolean.patch (libmng-2.0.3-bolean.patch,3.63 KB, patch)
2016-04-01 11:10 UTC, Joerg Neikes
Details | Diff
emerge-info.txt (emerge-info.txt,15.69 KB, text/plain)
2018-03-04 08:47 UTC, Toralf Förster
emerge-history.txt (emerge-history.txt,185.57 KB, text/plain)
2018-03-04 08:47 UTC, Toralf Förster
environment (environment,107.46 KB, text/plain)
2018-03-04 08:47 UTC, Toralf Förster
etc.portage.tbz2 (etc.portage.tbz2,13.57 KB, application/x-bzip)
2018-03-04 08:47 UTC, Toralf Förster
logs.tbz2 (logs.tbz2,8.39 KB, application/x-bzip)
2018-03-04 08:47 UTC, Toralf Förster
media-libs:libmng-2.0.3:20180304-021511.log (media-libs:libmng-2.0.3:20180304-021511.log,20.46 KB, text/plain)
2018-03-04 08:47 UTC, Toralf Förster
temp.tbz2 (temp.tbz2,29.84 KB, application/x-bzip)
2018-03-04 08:48 UTC, Toralf Förster

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Neikes 2016-04-01 11:03:06 UTC
var/tmp/portage/media-libs/libmng-2.0.3/work/libmng-2.0.3/libmng_jpeg.c: In function 'mng_fill_input_buffer':
/var/tmp/portage/media-libs/libmng-2.0.3/work/libmng-2.0.3/libmng_jpeg.c:108:10: error: 'FALSE' undeclared (first use in this function)
   return FALSE;                        /* force IJG routine to return to caller */
/var/tmp/portage/media-libs/libmng-2.0.3/work/libmng-2.0.3/libmng_jpeg.c:108:10: note: each undeclared identifier is reported only once for each function it appears in
/var/tmp/portage/media-libs/libmng-2.0.3/work/libmng-2.0.3/libmng_jpeg.c: In function 'mngjpeg_decompressdata':
/var/tmp/portage/media-libs/libmng-2.0.3/work/libmng-2.0.3/libmng_jpeg.c:536:48: error: 'TRUE' undeclared (first use in this function)
       if (jpeg_read_header (pData->pJPEGdinfo, TRUE) != JPEG_SUSPENDED)
/var/tmp/portage/media-libs/libmng-2.0.3/work/libmng-2.0.3/libmng_jpeg.c: In function 'mngjpeg_decompressdata2':
/var/tmp/portage/media-libs/libmng-2.0.3/work/libmng-2.0.3/libmng_jpeg.c:890:49: error: 'TRUE' undeclared (first use in this function)
       if (jpeg_read_header (pData->pJPEGdinfo2, TRUE) != JPEG_SUSPENDED)
Makefile:459: recipe for target 'libmng_jpeg.lo' failed
make[1]: *** [libmng_jpeg.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/var/tmp/portage/media-libs/libmng-2.0.3/work/libmng-2.0.3-abi_x86_64.amd64'
Makefile:353: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: media-libs/libmng-2.0.3::gentoo failed (compile phase):
 *   emake failed

Reproducible: Always

Steps to Reproduce:
1.emerge =media-libs/libmng-2.0.3
2.emake failed

Actual Results:  
* ERROR: media-libs/libmng-2.0.3::gentoo failed (compile phase):
*   emake failed

Expected Results:  
emake do nit fail

The Problem is a missing #include <stdbool.h> and wrong uplatter pattern for TRUE and FALSE.
Comment 1 Joerg Neikes 2016-04-01 11:07:41 UTC
Portage 2.2.28 (python 2.7.11-final-0, hardened/linux/amd64, gcc-5.3.0, glibc-2.22-r3, 4.4.3-gentoo x86_64)
System uname: Linux-4.4.3-gentoo-x86_64-Intel-R-_Atom-TM-_CPU_330_@_1.60GHz-with-gentoo-2.2
KiB Mem:     3340196 total,     33028 free
KiB Swap:    8380412 total,   8357188 free
Timestamp of repository gentoo: Thu, 31 Mar 2016 21:30:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.5.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.10.3-r2::gentoo, 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.8.5::gentoo, 4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r3::gentoo

    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://
    priority: -1000

    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 50

    location: /var/lib/layman/virtualization
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=bonnell -mmmx -mno-3dnow -O2 -pipe -U_FORTIFY_SOURCE"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=bonnell -mmmx -mno-3dnow -O2 -pipe -U_FORTIFY_SOURCE"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
USE="X a52 aac aalib acl alsa amd64 apache apache2 apng avahi avcodec avformat bcmath berkdb branding bzip2 bzlib calendar cdda cddb cli cracklib crypt ctype curl curlwrappers cxx dba dbase dbus dbx dio dri dvb dvbpsi dvd ebook emacs encode exif fam ffmpeg flac flatfile ftp gcrypt gdbm gmp gnome gnome-keyring gnutls gtk hardened iconv idn imap ipv6 jack jpeg jpeg2k justify ldap lirc lzma mad maildir matroska mhash mime mmx mmxext mng modules mp3 mpeg mssql mtp multilib mysql ncurses nls nptl nptlonly ogg opengl openmp openssl pam pax_kernel pcre pdf pdflib php pic pie png posix postgres postproc pulseaudio qt3support qt4 readline rtsp samba schroedinger sdl sdl-image seccomp session sharedext simplexml soap sockets spell sqlite sse sse2 ssl ssp svg swscale systemd sysvipc tcpd theora tidy tiff truetype tty-helpers unicode urandom usb v4l vhost vlc vorbis wma-fixed x264 xattr xcb xml xml2 xmlrpc xosd xpm xsl xtpax xv zlib zvbi" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias slotmem_shm" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="emu efi-32 efi-64 pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de dk fi jp it tr nl fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5 php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="alpha arm cris i386 lm32 m68k microblaze microblazeel mips mips64 mips64el mipsel ppc ppc64 ppcemb s390x sh4 sh4eb sparc sparc64 x86_64 xtensa xtensaeb" QEMU_USER_TARGETS="alpha arm armeb cris i386 m68k microblaze microblazeel mips mipsel ppc ppc64 ppc64abi32 s390x sh4 sh4eb sparc sparc32plus sparc64 unicore32 x86_64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="vesa vga nv nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.4"
Comment 2 Joerg Neikes 2016-04-01 11:10:09 UTC
Created attachment 429406 [details, diff]

Adds #include <stdbool.h>, changes FALSE to false and TRUE to true.
Comment 3 Felix Janda 2016-04-01 12:06:31 UTC
It seems that changing FALSE to MNG_FALSE and TRUE to MNG_TRUE would
be better in line with the other source files.
Comment 4 Andreas Sturmlechner gentoo-dev 2018-02-08 11:19:00 UTC
Works for me with jpeg-9c, please re-test.
Comment 5 Toralf Förster gentoo-dev 2018-03-04 08:47:41 UTC
appeared recently at the tinderbox image 17.0-hardened_libressl_20180227-213714
Comment 6 Toralf Förster gentoo-dev 2018-03-04 08:47:44 UTC
Created attachment 522270 [details]
Comment 7 Toralf Förster gentoo-dev 2018-03-04 08:47:47 UTC
Created attachment 522272 [details]
Comment 8 Toralf Förster gentoo-dev 2018-03-04 08:47:50 UTC
Created attachment 522274 [details]
Comment 9 Toralf Förster gentoo-dev 2018-03-04 08:47:53 UTC
Created attachment 522276 [details]
Comment 10 Toralf Förster gentoo-dev 2018-03-04 08:47:56 UTC
Created attachment 522278 [details]
Comment 11 Toralf Förster gentoo-dev 2018-03-04 08:47:59 UTC
Created attachment 522280 [details]
Comment 12 Toralf Förster gentoo-dev 2018-03-04 08:48:02 UTC
Created attachment 522282 [details]
Comment 13 Andreas Sturmlechner gentoo-dev 2018-09-06 20:30:40 UTC
Assuming this is with media-libs/jpeg-9c?
Comment 14 Larry the Git Cow gentoo-dev 2018-09-06 21:06:13 UTC
The bug has been referenced in the following commit(s):

commit a5109d66d2d08c47bbf301590e6587e3c5b1edd5
Author:     Andreas Sturmlechner <>
AuthorDate: 2018-09-06 21:03:46 +0000
Commit:     Andreas Sturmlechner <>
CommitDate: 2018-09-06 21:05:59 +0000

    media-libs/libmng: Adapt jpeg-9a.patch for 2.0.3
    Package-Manager: Portage-2.3.49, Repoman-2.3.10

 media-libs/libmng/files/libmng-2.0.3-jpeg-9a.patch | 40 ++++++++++++++++++++++
 media-libs/libmng/libmng-2.0.3.ebuild              |  2 ++
 2 files changed, 42 insertions(+)
Comment 15 Andreas Sturmlechner gentoo-dev 2018-09-06 21:08:48 UTC
I will consider this fixed, please reopen if you can still reproduce the issue (supposedly with USE=-lcms).
Comment 16 Andreas Sturmlechner gentoo-dev 2018-09-10 19:43:20 UTC
*** Bug 665634 has been marked as a duplicate of this bug. ***
Comment 17 Toralf Förster gentoo-dev 2019-03-18 19:01:52 UTC
pls see bug 665634 too