kdekorte / gecko-mediaplayer

Automatically exported from code.google.com/p/gecko-mediaplayer
GNU General Public License v2.0
0 stars 0 forks source link

Does not build with Firefox 4 #109

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Trying to build gecko-mediaplayer 0.9.99rc1 with Firefox 4.0 Beta 4
2. ./configure works but make aborts with error
3. Console output:
mv -f .deps/plugin_types_std.Tpo .deps/plugin_types_std.Po
g++ -DHAVE_CONFIG_H -I. -I.. -fPIC 
-DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""."\" 
-DPACKAGE_DATA_DIR=\""/usr/local/share"\" -fshort-wchar 
-I/usr/include/xulrunner-2.0b4 -I/usr/include/nspr4   -I/usr/include/glib-2.0 
-I/usr/lib64/glib-2.0/include   -pthread -I/usr/include/dbus-1.0 
-I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 
-I/usr/lib64/glib-2.0/include   -DORBIT2=1 -pthread -I/usr/include/gconf/2 
-I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include 
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -DHAVE_GCONF 
-DMOZILLA_STRICT_API -DXP_UNIX    -g -O2 -MT plugin.o -MD -MP -MF 
.deps/plugin.Tpo -c -o plugin.o plugin.cpp
In file included from /usr/include/xulrunner-2.0b4/nscore.h:50:0,
                 from /usr/include/xulrunner-2.0b4/nsrootidl.h:11,
                 from /usr/include/xulrunner-2.0b4/nsISupports.h:10,
                 from /usr/include/xulrunner-2.0b4/nsIPrefBranch.h:10,
                 from plugin.cpp:45:
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:107:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:111:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:115:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:118:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:122:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:125:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:129:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:132:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h: In function ‘void* operator 
new(size_t)’:
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:226:28: error: 
‘moz_xmalloc’ was not declared in this scope
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h: In function ‘void* operator 
new(size_t, const std::nothrow_t&)’:
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:232:27: error: ‘moz_malloc’ 
was not declared in this scope
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h: In function ‘void* operator 
new [](size_t)’:
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:238:28: error: 
‘moz_xmalloc’ was not declared in this scope
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h: In function ‘void* operator 
new [](size_t, const std::nothrow_t&)’:
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:244:27: error: ‘moz_malloc’ 
was not declared in this scope
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h: In function ‘void* operator 
new(size_t, const mozilla::fallible_t&)’:
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:300:27: error: ‘moz_malloc’ 
was not declared in this scope
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h: In function ‘void* operator 
new [](size_t, const mozilla::fallible_t&)’:
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:306:27: error: ‘moz_malloc’ 
was not declared in this scope
plugin.cpp: In member function ‘virtual bool 
ScriptablePluginObjectControls::InvokeDefault(const NPVariant*, uint32_t, 
NPVariant*)’:
plugin.cpp:1579:5: error: ‘moz_strdup’ was not declared in this scope
plugin.cpp: In member function ‘virtual bool 
ScriptablePluginObject::InvokeDefault(const NPVariant*, uint32_t, 
NPVariant*)’:
plugin.cpp:1902:5: error: ‘moz_strdup’ was not declared in this scope
make[3]: *** [plugin.o] Fehler 1
make[3]: Leaving directory `/home/m/Downloads/gecko-mediaplayer-0.9.99.rc1/src'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/m/Downloads/gecko-mediaplayer-0.9.99.rc1/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/m/Downloads/gecko-mediaplayer-0.9.99.rc1'
make: *** [all] Fehler 2

Original issue reported on code.google.com by mdeissen...@gmail.com on 1 Sep 2010 at 7:09

GoogleCodeExporter commented 9 years ago
Those actually look like mozilla errors to me...

I have not been able to try firefox4 yet so I haven't tested this yet.

Original comment by kdeko...@gmail.com on 1 Sep 2010 at 12:40

GoogleCodeExporter commented 9 years ago
SVN has been patched to compile against xulrunner 2.0beta 5 or something higher 
than beta4. There were some bugs in beta4 that prevented the code from working.

Original comment by kdeko...@gmail.com on 3 Sep 2010 at 12:46