Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513240 - media-libs/jasper: jasper/jas_types.h breaks stdbool.h
Summary: media-libs/jasper: jasper/jas_types.h breaks stdbool.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-14 19:51 UTC by SpanKY
Modified: 2016-10-14 21:33 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2014-06-14 19:51:31 UTC
simple test program:
$ cat test.c
#include <stdbool.h>
#include <jasper/jasper.h>
int main() { return true; }

$ gcc test.c
test.c: In function ‘main’:
test.c:3:21: error: ‘true’ undeclared (first use in this function)
 int main() { return true; }

this is because the jas_types.h func goes blindly undefining symbols (like true and false) and then trying to re-include the standard headers.  except those headers have already been included, so the symbols don't get redefined.
Comment 1 David Seifert gentoo-dev 2016-10-14 21:33:59 UTC
commit ece2cf67ac87c152c955189229cd3a2b2206e0a9
Author: David Seifert <soap@gentoo.org>
Date:   Fri Oct 14 22:46:01 2016 +0200

    media-libs/jasper: Version bump to 1.900.3
    
    Gentoo-bug: 513240
    * EAPI=6
    * Import latest Fedora patchset