Bug 687506 - building gs8.30 fails on SuSE 7.x
Summary: building gs8.30 fails on SuSE 7.x
Status: RESOLVED DUPLICATE of bug 687518
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Build Process (show other bugs)
Version: master
Hardware: Other Linux
: P2 normal
Assignee: Ralph Giles
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-08 05:35 UTC by Martin Schröder
Modified: 2007-12-13 12:55 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
config.log (50.14 KB, text/plain)
2004-06-08 05:36 UTC, Martin Schröder
Details
Output of make (118.72 KB, text/plain)
2004-06-08 05:40 UTC, Martin Schröder
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schröder 2004-06-08 05:35:11 UTC
On two SuSE 7.x systems building gs8.30 (after a simple configure) fails with 
In file included from jasper/src/libjasper/include/jasper/jas_types.h:111, 
                 from jasper/src/libjasper/include/jasper/jasper.h:66, 
                 from src/sjpx.h:27, 
                 from ./src/zfjpx.c:34: 
/usr/lib/gcc-lib/i486-suse-linux/2.95.2/include/stdbool.h:14: warning: `false' 
redefined 
src/stdpre.h:298: warning: this is the location of the previous definition 
/usr/lib/gcc-lib/i486-suse-linux/2.95.2/include/stdbool.h:15: warning: `true' 
redefined 
src/stdpre.h:300: warning: this is the location of the previous definition 
In file included from jasper/src/libjasper/include/jasper/jas_types.h:111, 
                 from jasper/src/libjasper/include/jasper/jasper.h:66, 
                 from src/sjpx.h:27, 
                 from ./src/zfjpx.c:34: 
/usr/lib/gcc-lib/i486-suse-linux/2.95.2/include/stdbool.h:9: parse error 
before `(' 
/usr/lib/gcc-lib/i486-suse-linux/2.95.2/include/stdbool.h:11: conflicting 
types for `bool' 
src/stdpre.h:288: previous declaration of `bool' 
make: *** [obj/zfjpx.o] Error 1
Comment 1 Martin Schröder 2004-06-08 05:36:44 UTC
Created attachment 710 [details]
config.log
Comment 2 Martin Schröder 2004-06-08 05:40:53 UTC
Created attachment 711 [details]
Output of make
Comment 3 Ralph Giles 2004-06-16 02:59:20 UTC
Ah, the horrors of C portability.

This is a conflict between the jasper build system, which tries to use stdbool.h
and the Ghostscript build system, which rolls its own definition. the glue code
in zfjpx.c needs to include both.

The correct fix is probably to internalize a bunch of the jasper headers so they
don't pollute the namespace.

The workaround is to move the jasper source out of the way, compile and install
the library separately, and then reconfigure ghostscript to link to the shared
verison.
Comment 4 Ralph Giles 2004-06-16 03:10:58 UTC
I've opened bug 687518 against jasper to track the cleanup issue. My guess is we
didn't see this on newer gcc because gcclib is now using int for _Bool?

Thanks for the report.

*** This bug has been marked as a duplicate of 687518 ***