Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 364247 - media-gfx/freewrl-1.22.10 fails with xulrunner-1.9.2.16 : expected specifier-qualifier-list before ‘XML_Char’
Summary: media-gfx/freewrl-1.22.10 fails with xulrunner-1.9.2.16 : expected specifier-...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-20 13:51 UTC by ninoofr
Modified: 2011-04-20 20:19 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 ninoofr 2011-04-20 13:51:27 UTC
The ./configure does work without error.
The make reports errors (see Actual Results field).

Current config : 
vm-pjo@vm-pjo:~/Téléchargements/freewrl-1.22.10$ uname -a
Linux vm-pjo 2.6.32-30-generic #59-Ubuntu SMP Tue Mar 1 21:30:21 UTC 2011 i686 GNU/Linux

Reproducible: Always

Steps to Reproduce:
1.Install Ubuntu 10.04
2.apt-get update
3.apt-get upgrade
4.Download freewrl-1.22.10.tar.bz2
5.Install all necessary packages in order to get a successful ./configure (see Additional Information field)
4.make
Actual Results:  
...
make[3]: entrant dans le répertoire « /home/vm-pjo/Téléchargements/freewrl-1.22.10/src/lib »
  CC     x3d_parser/X3DParser.lo
In file included from x3d_parser/X3DParser.c:57:
/usr/include/xulrunner-1.9.2.16/expat.h:140: error: expected specifier-qualifier-list before ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:151: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:151: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:156: error: expected declaration specifiers or ‘...’ before ‘XML_ElementDeclHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:168: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:168: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:176: error: expected declaration specifiers or ‘...’ before ‘XML_AttlistDeclHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:187: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:187: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:193: error: expected declaration specifiers or ‘...’ before ‘XML_XmlDeclHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:206: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:206: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:220: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:220: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:233: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:233: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:247: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:247: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:253: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:253: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:257: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:257: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:262: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:262: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:268: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:268: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:273: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:273: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:292: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:292: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:300: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:300: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:331: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:331: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:342: error: expected declaration specifiers or ‘...’ before ‘XML_EntityDeclHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:355: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:355: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:367: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:367: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:380: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:380: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:385: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:385: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:434: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:434: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:451: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:451: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:530: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:530: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:535: error: expected declaration specifiers or ‘...’ before ‘XML_StartElementHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:536: error: expected declaration specifiers or ‘...’ before ‘XML_EndElementHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:540: error: expected declaration specifiers or ‘...’ before ‘XML_StartElementHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:544: error: expected declaration specifiers or ‘...’ before ‘XML_EndElementHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:548: error: expected declaration specifiers or ‘...’ before ‘XML_CharacterDataHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:552: error: expected declaration specifiers or ‘...’ before ‘XML_ProcessingInstructionHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:555: error: expected declaration specifiers or ‘...’ before ‘XML_CommentHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:576: error: expected declaration specifiers or ‘...’ before ‘XML_DefaultHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:584: error: expected declaration specifiers or ‘...’ before ‘XML_DefaultHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:588: error: expected declaration specifiers or ‘...’ before ‘XML_StartDoctypeDeclHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:593: error: expected declaration specifiers or ‘...’ before ‘XML_StartDoctypeDeclHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:601: error: expected declaration specifiers or ‘...’ before ‘XML_UnparsedEntityDeclHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:605: error: expected declaration specifiers or ‘...’ before ‘XML_NotationDeclHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:609: error: expected declaration specifiers or ‘...’ before ‘XML_StartNamespaceDeclHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:610: error: expected declaration specifiers or ‘...’ before ‘XML_EndNamespaceDeclHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:614: error: expected declaration specifiers or ‘...’ before ‘XML_StartNamespaceDeclHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:618: error: expected declaration specifiers or ‘...’ before ‘XML_EndNamespaceDeclHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:626: error: expected declaration specifiers or ‘...’ before ‘XML_ExternalEntityRefHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:638: error: expected declaration specifiers or ‘...’ before ‘XML_SkippedEntityHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:642: error: expected declaration specifiers or ‘...’ before ‘XML_UnknownEncodingHandler’
/usr/include/xulrunner-1.9.2.16/expat.h:683: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:683: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:723: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:723: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:725: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:850: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
/usr/include/xulrunner-1.9.2.16/expat.h:850: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:957: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:961: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:992: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘*’ token
/usr/include/xulrunner-1.9.2.16/expat.h:1010: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
x3d_parser/X3DParser.c: In function ‘initializeX3DParser’:
x3d_parser/X3DParser.c:1754: warning: implicit declaration of function ‘XML_ParserCreate’
x3d_parser/X3DParser.c:1754: warning: assignment makes pointer from integer without a cast
x3d_parser/X3DParser.c:1755: error: too many arguments to function ‘XML_SetElementHandler’
x3d_parser/X3DParser.c:1757: error: too many arguments to function ‘XML_SetDefaultHandler’
x3d_parser/X3DParser.c: In function ‘X3DParse’:
x3d_parser/X3DParser.c:1824: warning: implicit declaration of function ‘XML_ErrorString’
x3d_parser/X3DParser.c:1825: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
make[3]: *** [x3d_parser/X3DParser.lo] Erreur 1
make[3]: quittant le répertoire « /home/vm-pjo/Téléchargements/freewrl-1.22.10/src/lib »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /home/vm-pjo/Téléchargements/freewrl-1.22.10/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/vm-pjo/Téléchargements/freewrl-1.22.10 »
make: *** [all] Erreur 2


Expected Results:  
Successful make

I started with Ubuntu 10.04 SLIM (with minimum package) and then :
   11  sudo apt-get install zlib
   13  sudo apt-get install zlib1g
   14  sudo apt-get install zlib1g-dev
   16  sudo apt-get install freetype2
   18  sudo apt-get install freetype2-demos
   21  sudo apt-get install vflib3
   24  sudo apt-get install vflib3-dev
   37  sudo apt-get install gjs
   39  sudo apt-get install libgjs-dev
   42  sudo apt-get install libxml2
   43  sudo apt-get install libxml2-dev
   46  sudo apt-get install libimlib2
   48  sudo apt-get install libimlib2-dev
   53  sudo apt-get install gedit
   75  sudo apt-get install libxmu-dev libxmu-headers
   77  sudo apt-get install glutg3
   79  sudo apt-get install glutg3-dev
   89  sudo apt-get install glew-utils
   93  sudo apt-get install libglew1.5
   94  sudo apt-get install libglew1.5-dev
   98  sudo apt-get install libglewx1.5
   99  sudo apt-get install libglewmx1.5
  100  sudo apt-get install libglewmx1.5-dev
  104  sudo apt-get install libglewmx1.5
  106  sudo apt-get install firefox-dev
  111  sudo apt-get install xulrunner-1.9
  112  sudo apt-get install xulrunner-1.9.2
  113  sudo apt-get install xulrunner-1.9-dev
  115  sudo apt-get install xulrunner-dev
  119  sudo apt-get install moonlight-plugin-mozilla
  124  sudo apt-get install seamonkey
  128  sudo apt-get install seamonkey-gnome-support
  134  sudo apt-get install libdata-javascript-perl
  135  sudo apt-get install libtemplate-plugin-javascript-perl
Comment 1 Ian Stakenvicius (RETIRED) gentoo-dev 2011-04-20 20:19:25 UTC
...Why is there a Gentoo bug based on an Ubuntu installation??  Is this a prefix thing?

Anyways, freewrl is packaged for Ubuntu directly, although the repository (kheb.freelinux.org or w/e it was) is currently in transition..

If you would like to know how to get around this error, you can read the freewrl-1.22.10.ebuild; in there you'll see that the system's expat.h files are copied to a temp directory (ie something not /usr/include/) and specified explicitly via --with-expat=[path].

Note that if you wanted to use a CVS snapshot (April 3rd 2011 is a really good date to use), expat support is optional (internals just use libxml2 directly instead) and so this error just disappears.