Binary package hint: xulrunner-1.9.1
I'm trying to compile mediatomb from source; it needs a javascript library i.e. jsapi.h and friends. I can't install the spidermonkey development package because it conflicts with a number of other packages including firefox, so I'm using xulrunner-1.9.1-dev
I've configured with ./configure --with-js-h=/usr/include/xulrunner-1.9.1.3/unstable --with-js-libs=/usr/lib/xulrunner-1.9.1.3 to (hopefully) ensure that jsapi.h is picked up.
However, on running make I get this error
g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I.. -I/usr/include/mysql -I/usr/include/xulrunner-1.9.1.3/unstable -I/usr/include/taglib -pthread -g -O2 -MT libmediatomb_a-action_request.o -MD -MP -MF .deps/libmediatomb_a-action_request.Tpo -c -o libmediatomb_a-action_request.o `test -f '../src/action_request.cc' || echo './'`../src/action_request.cc
In file included from ../src/mxml/mxml.h:39,
from ../src/action_request.h:38,
from ../src/action_request.cc:36:
../src/mxml/node.h:49: warning: ‘typedef’ was ignored in this declaration
In file included from ../src/mxml/parser.h:41,
from ../src/mxml/mxml.h:44,
from ../src/action_request.h:38,
from ../src/action_request.cc:36:
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:140: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:140: error: expected ‘;’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:151: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:151: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:168: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:168: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:187: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:187: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:206: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:206: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:220: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:220: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:233: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:233: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:247: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:247: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:253: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:253: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:257: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:257: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:262: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:262: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:268: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:268: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:273: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:273: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:292: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:292: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:300: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:300: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:331: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:331: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:355: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:355: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:367: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:367: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:380: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:380: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:385: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:385: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:434: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:434: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:451: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:451: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:530: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:530: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:683: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:683: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:723: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:723: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:725: error: expected initializer before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:850: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:850: error: expected ‘,’ or ‘...’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:957: error: expected initializer before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:961: error: expected initializer before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:992: error: ISO C++ forbids declaration of ‘XML_LChar’ with no type
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:992: error: expected ‘;’ before ‘*’ token
/usr/include/xulrunner-1.9.1.3/unstable/expat.h:1010: error: expected initializer before ‘*’ token
In file included from ../src/mxml/mxml.h:44,
from ../src/action_request.h:38,
from ../src/action_request.cc:36:
../src/mxml/parser.h:68: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
../src/mxml/parser.h:68: error: expected ‘,’ or ‘...’ before ‘*’ token
../src/mxml/parser.h:69: error: ISO C++ forbids declaration of ‘XML_Char’ with no type
../src/mxml/parser.h:69: error: expected ‘,’ or ‘...’ before ‘*’ token
make[2]: *** [libmediatomb_a-action_request.o] Error 1
XML_Char is not declared in expat.h. expat.h includes expat_config.h where XML_Char appears in a typedef but it's at this point that my limited C knowledge runs out...
Is this a problem with the xulrunner dev package or am I doing something wrong?
Thanks
James.
ProblemType: Bug
Architecture: i386
Date: Fri Oct 30 23:28:01 2009
DistroRelease: Ubuntu 9.10
Package: xulrunner-1.9.1-dev 1.9.1.3+build1+nobinonly-0ubuntu6
ProcEnviron:
LANG=en_GB.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: xulrunner-1.9.1
Uname: Linux 2.6.31-14-generic i686