Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 279256 - net-libs/xulrunner-1.9.1-r1 fails to build on sparc-solaris due to 'bool' redefinition
Summary: net-libs/xulrunner-1.9.1-r1 fails to build on sparc-solaris due to 'bool' red...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: Sparc Solaris
: High normal (vote)
Assignee: Gentoo Prefix
URL: https://bugzilla.mozilla.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-27 05:15 UTC by Chí-Thanh Christopher Nguyễn
Modified: 2009-07-31 17:51 UTC (History)
1 user (show)

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 Chí-Thanh Christopher Nguyễn gentoo-dev 2009-07-27 05:15:14 UTC
Trying to emerge xulrunner on sparc-solaris fails because nptypes.h redefines 'bool'



Reproducible: Always

Steps to Reproduce:
1. emerge xulrunner


Actual Results:  
sparc-sun-solaris2.10-gcc -o npunix.o -c  -DOSTYPE=\"SunOS5\" -DOSARCH=SunOS  -I. -I. -I../../../../../dist/include/java -I../../../../../dist/include   -I../../../../../dist/include/plugin -I/home/pub/lib/gentoo-prefix/usr/include/nspr    -I/tmp/chithanh/portage/net-libs/xulrunner-1.9.1-r1/work/mozilla-1.9.1/dist/sdk/include    -fPIC -DGENTOO_NSPLUGINS_DIR=\"/home/pub/lib/gentoo-prefix/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/home/pub/lib/gentoo-prefix/usr/lib/nsbrowser/plugins\"  -Wno-long-long -pipe -mcpu=ultrasparc -Wno-return-type -w -fno-strict-aliasing -pthread -pipe  -DNDEBUG -DTRIMMED -O  -DGENTOO_NSPLUGINS_DIR=\"/home/pub/lib/gentoo-prefix/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/home/pub/lib/gentoo-prefix/usr/lib/nsbrowser/plugins\"  -include ../../../../../mozilla-config.h -DMOZILLA_CLIENT -Wp,-MD,.deps/npunix.pp npunix.c
In file included from ../../../../../dist/include/plugin/npruntime.h:72,
                 from ../../../../../dist/include/plugin/npfunctions.h:53,
                 from npunix.c:58:
../../../../../dist/include/plugin/nptypes.h:61: error: redefinition of typedef 'bool'
../../../../../dist/include/plugin/nptypes.h:61: error: previous declaration of 'bool' was here
gmake[4]: *** [npunix.o] Error 1


Expected Results:  
emerge successfully

nptypes.h does not guard against multiple inclusion. A patch is available in upstream's bug tracker (see URL);
Comment 1 Jory A. Pratt gentoo-dev 2009-07-27 08:47:07 UTC
Patch is fine I will add to mozilla overlay tomorrow afternoon.
Comment 2 Fabian Groffen gentoo-dev 2009-07-27 20:17:19 UTC
This is very specific for Gentoo Prefix, IMO.

But the patch doesn't help much (if anything at all) for me.
Comment 3 Jory A. Pratt gentoo-dev 2009-07-27 22:41:18 UTC
(In reply to comment #2)
> This is very specific for Gentoo Prefix, IMO.
> 
> But the patch doesn't help much (if anything at all) for me.
> 

Actually it is gonna effect more and more packages depending on xulrunner.
Comment 4 Jory A. Pratt gentoo-dev 2009-07-28 00:47:09 UTC
This is fixed in mozilla overlay, it will be moved to the tree in the next few days.
Comment 5 Fabian Groffen gentoo-dev 2009-07-31 15:29:38 UTC
Jory, is the fix already in 1.9.1.1?
Comment 6 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-07-31 17:51:51 UTC
(In reply to comment #5)
> Jory, is the fix already in 1.9.1.1?
> 

If it was in the overlay, it's in the tree now (direct copy-commit). 

Assuming FIXED :)