Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on Ubuntu 11.04 #3

Open
jmkgreen opened this issue Dec 13, 2011 · 2 comments
Open

Build fails on Ubuntu 11.04 #3

jmkgreen opened this issue Dec 13, 2011 · 2 comments

Comments

@jmkgreen
Copy link

Having first satisfied the apt-get dependencies the build script said it required, I see:

g++ -g -O0 -fPIC -D_i386_ -D_linux_ -I../i386-linux/include -I../include -I/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/include -D__THREADED -D_SIMPLE_R -D_REENTRANT -D_GNU_SOURCE -DCOMPANY_DOMAIN=L"com.vocalocity" -DMODULE_PREFIX=L"swi:" -DHAVE_XERCES -I"./" -I"dom" -I"/usr/include/xercesc" -I"/usr/include" -L"/usr/lib" -DHAVE_SPIDERMONKEY -DXP_UNIX -DXP_UNIX -DJS_THREADSAFE -I/usr/include/xulrunner-2.0 -I/usr/include/nspr -DMOZILLA_1_8_BRANCH -L"/usr/src/Linux_All_OPT.OBJ" -I"/usr/src/Linux_All_DBG.OBJ" -c /home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp -o build/i386-linux/debug/lib/JsiContextD.o
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp:75:1: error: invalid conversion from âJSBool ()(JSContext, JSObject_, jsval, jsval_)â to âJSBool ()(JSContext, JSObject_, jsid, JSBool, jsval_)â
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp:84:1: error: invalid conversion from âJSBool ()(JSContext, JSObject_, jsid, jsval_)â to âJSBool ()(JSContext, JSObject_, jsid, JSBool, jsval_)â
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp:93:1: error: invalid conversion from âJSBool ()(JSContext, JSObject_, jsid, jsval_)â to âJSBool ()(JSContext, JSObject_, jsid, JSBool, jsval_)â
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp: In member function âVXIjsiResult JsiProtectedJsval::Clear()â:
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp:136:67: error: âJS_RemoveRootâ was not declared in this scope
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp: In member function âVXIjsiResult JsiProtectedJsval::Set(jsval)â:
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp:147:62: error: âJS_AddNamedRootâ was not declared in this scope
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp: In member function âVXIjsiResult JsiContext::EvaluateScript(const VXIchar_, JsiProtectedJsval_, bool) constâ:
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp:1281:83: error: âJS_AddNamedRootâ was not declared in this scope
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp:1299:47: error: âJS_RemoveRootâ was not declared in this scope
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp: In static member function âstatic VXIjsiResult JsiContext::JsvalToVXIValue(JSContext_, jsval, VXIValue__)â:
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp:1320:5: error: âJS_GetStringCharsâ was not declared in this scope
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp:1331:72: error: invalid type argument of unary â_â
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp:1416:63: error: âJS_GetStringCharsâ was not declared in this scope
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp:1420:43: error: âJS_GetStringCharsâ was not declared in this scope
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp: In member function âVXIjsiResult JsiContext::VXIValueToJsval(JSContext_, const VXIValue_, JsiProtectedJsval_)â:
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp:1487:28: error: âINT_FITS_IN_JSVALâ was not declared in this scope
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp:1495:58: error: âJS_NewDoubleâ was not declared in this scope
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp:1497:38: error: cannot convert âjsdouble_â to âjsdoubleâ for argument â1â to âjsval DOUBLE_TO_JSVAL(jsdouble)â
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp:1506:60: error: âJS_NewDoubleâ was not declared in this scope
/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi/JsiContext.cpp:1508:38: error: cannot convert âjsdouble_â to âjsdoubleâ for argument â1â to âjsval DOUBLE_TO_JSVAL(jsdouble)â
make[1]: *_* [build/i386-linux/debug/lib/JsiContextD.o] Error 1
make[1]: Leaving directory `/home/jamesg/src/voiceglue-voiceglue-acef2bb/openvxi-3.4+vglue/src/jsi'
make: *** [SBjsi-shared] Error 2
Build failed in jsi at ./build_openvxi line 80.
Failed running "./build_openvxi" in "openvxi-3.4+vglue" to install openvxi: No such file or directory at doc/install-voiceglue line 384.
jamesg@scaramanga:/src/voiceglue-voiceglue-acef2bb$ uname -a
Linux scaramanga 2.6.38-13-server #52-Ubuntu SMP Tue Nov 8 17:11:08 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
jamesg@scaramanga:
/src/voiceglue-voiceglue-acef2bb$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty

@jmkgreen
Copy link
Author

Fix:

elsif (($::Release eq "ubuntu") &&
       ($::Major == 11) && ($::Minor == 4))
{
    @prereqs = (
                "gcc",
                "g++",
                "libxerces-c2-dev",
                "xulrunner-1.9.2-dev",
                "flite",
                "sox",
                "curl",
                "libssl-dev",
                "libxml-libxml-perl",
                "libbsd-resource-perl",
                "libmodule-build-perl",
                "liburi-perl",
                "pkg-config",
                "libsox-fmt-base"
               );
}

@nanabaahgyan
Copy link

On Ubuntu 11.04 xulrunner-dev 2.0 needs to be downgraded to 1.9.2 as pointed above. ENV variable JSUSESETOPERATIONCALLBACK=2 is what worked in my case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants