LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   gecko-mediaplayer-1.0.0 compile error (http://www.linuxquestions.org/questions/slackware-14/gecko-mediaplayer-1-0-0-compile-error-852501/)

Daedra 12-26-2010 07:08 PM

gecko-mediaplayer-1.0.0 compile error
 
I am trying to compile gecko-mediaplayer-1.0.0 on -current but I am getting an error related to seamonkey. The error is

sr/include/seamonkey-2.1b1/nspr -I/usr/include/seamonkey-2.1b1 -I/usr/include/seamonkey-2.1b1/xpcom -I/usr/include/seamonkey-2.1b1/string -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 -DMOZILLA_STRICT_API -DXP_UNIX -O2 -fPIC -MT plugin.o -MD -MP -MF .deps/plugin.Tpo -c -o plugin.o plugin.cpp
In file included from /usr/include/seamonkey-2.1b1/plugin/nsrootidl.h:11:0,
from /usr/include/seamonkey-2.1b1/plugin/nsISupports.h:10,
from /usr/include/seamonkey-2.1b1/plugin/nsIPrefBranch.h:10,
from plugin.cpp:45:
/usr/include/seamonkey-2.1b1/plugin/nscore.h:50:32: fatal error: mozilla/mozalloc.h: No such file or directory
compilation terminated.
make[2]: *** [plugin.o] Error 1
make[2]: Leaving directory `/tmp/build/tmp-gecko-mediaplayer/gecko-mediaplayer-1.0.0/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/tmp/build/tmp-gecko-mediaplayer/gecko-mediaplayer-1.0.0/src'
make: *** [install-recursive] Error 1


Looks like Seamonkey is the problem, I am googling around for an answer but if anybody knows whats going on here, please let me know.

Thanks

slowpoke 12-26-2010 10:36 PM

I had the same problem but Eric's slackbuild worked.
http://connie.slackware.com/~alien/s...aplayer/build/
hope this helps

Daedra 12-27-2010 01:43 AM

actually his is doing the same thing. I have tried Eric's, SBO, and src2pkg. They all give the same error for me.

knudfl 12-27-2010 05:14 AM

Quote:

mozilla/mozalloc.h: No such file or directory
This file is present in the source
ftp://ftp.slackware.org.uk/slackware....source.tar.xz
> seamonkey-2.1b1.source.tar.xz > > comm-central/

→ find comm-central/* -name mozalloc.h
The reply is : comm-central/mozilla/memory/mozalloc/mozalloc.h
( mozalloc/* are new files, not present in previous versions :
2.0 has mozilla/memory/jemalloc/* ).

When you Google .. mozilla/mozalloc.h: No such file or directory ..
.. one of the first hits will suggest "seamonkey-sdk".

I'd guess, a mozilla/ directory in /usr/include/ with the required headers will do.

Also : there is a patch, gecko-mediaplayer-1.0.0-libxul2.patch :
http://gecko-mediaplayer.googlegroup...2.patch?part=2
Quote : ... [GECKO_CFLAGS="$GECKO_CFLAGS -DMOZ_NO_MOZALLOC" ....

..

ponce 12-27-2010 06:05 AM

it can be that seamonkey must be rebuilt for gecko-mediaplayer to find its headers with this small change to the slackbuild
Code:

--- seamonkey.SlackBuild.orig  2010-12-21 23:41:29.000000000 +0100
+++ seamonkey.SlackBuild        2010-12-27 13:03:30.894674542 +0100
@@ -103,8 +103,8 @@
 make $NUMJOBS || exit 1
 DESTDIR=$PKG make install || exit 1
 
-# Install js/nspr/nss headers.
-for includedir in nspr nspr/obsolete nspr/private ; do
+# Install js/nspr/nss and mozilla headers.
+for includedir in mozilla nspr nspr/obsolete nspr/private ; do
  mkdir -p $PKG/usr/include/seamonkey-${VERSION}/$includedir
  cp -aL mozilla/dist/include/${includedir}/*.h $PKG/usr/include/seamonkey-${VERSION}/$includedir
 done

I'm trying a build now on 64-current.

EDIT: maybe this way is better
Code:

--- seamonkey.SlackBuild.orig  2010-12-21 23:41:29.000000000 +0100
+++ seamonkey.SlackBuild        2010-12-27 13:37:34.354673041 +0100
@@ -110,7 +110,7 @@
 done
 cp -aL mozilla/dist/include/*.tbl mozilla/dist/include/*.msg $PKG/usr/include/seamonkey-${VERSION}
 cp -aL mozilla/dist/include/*.h $PKG/usr/include/seamonkey-${VERSION}
-cp -aL mozilla/dist/sdk/include/* $PKG/usr/include/seamonkey-${VERSION}
+cp -aL mozilla/dist/include/mozilla $PKG/usr/include/seamonkey-${VERSION}/
 # compat symlinks
 ( cd $PKG/usr/include/seamonkey-${VERSION}
  ln -sf . js

mozilla/dist/sdk/include isn't there anymore.

EDIT2: no, it needs further tweaking: I'll try to get back with more news soon.

slackass 12-27-2010 08:50 AM

Quote:

Originally Posted by Daedra (Post 4203976)
actually his is doing the same thing. I have tried Eric's, SBO, and src2pkg. They all give the same error for me.

Hmm
Eric's build made a package for me.
Src2pkg would not.

Slackware64-Current ml

ponce 12-27-2010 09:14 AM

just tried Eric's build (0.9.9.2) but it breaks looking for mozilla/mozalloc.h again: it's included in /usr/include/seamonkey-2.1b1/plugin/nscore.h, so if you have the seamonkey in -current it should break for you too.

if you get him the required header rebuilding seamonkey including all of them, 1.0.0 fails the same.

slackass 12-27-2010 09:31 AM

code:
ls -1 /var/log/packages


Partial list:

gamin-0.1.10-x86_64-2
gamin-compat32-0.1.10-x86_64-2
gawk-3.1.8-x86_64-1
gc-7.1-x86_64-1_SBo
gcc-4.5.1_multilib-x86_64-2alien
gcc-g++-4.5.1_multilib-x86_64-2alien
gcc-gfortran-4.5.1_multilib-x86_64-2alien
gcc-gnat-4.5.1_multilib-x86_64-2alien
gcc-java-4.5.1_multilib-x86_64-2alien
gcc-objc-4.5.1_multilib-x86_64-2alien
gccmakedep-1.0.2-noarch-2
gd-2.0.35-x86_64-4
gdb-7.2-x86_64-1
gdbm-1.8.3-x86_64-4
gdk-pixbuf2-2.22.1-x86_64-2
gdk-pixbuf2-compat32-2.22.1-x86_64-2
geany-0.19.1-x86_64-1_SBo
geany-plugins-0.19-x86_64-1_SBo
gecko-mediaplayer-1.0.0-x86_64-1alien <--------

ponce 12-27-2010 09:33 AM

you probably have a different seamonkey (or xulrunner) installed.

EDIT: if you don't have xulrunner installed and you have seamonkey-2.1b1 in -current, have you looked inside the package? the plugin is there?
Code:

cat /var/log/packages/gecko-mediaplayer-1.0.0-x86_64-1alien

slackass 12-27-2010 09:48 AM

cat /var/log/packages/gecko-mediaplayer-1.0.0-x86_64-1alien:

PACKAGE NAME: gecko-mediaplayer-1.0.0-x86_64-1alien
COMPRESSED PACKAGE SIZE: 20K
UNCOMPRESSED PACKAGE SIZE: 60K
PACKAGE LOCATION: ./gecko-mediaplayer-1.0.0-x86_64-1alien.tgz
PACKAGE DESCRIPTION:
gecko-mediaplayer: gecko-mediaplayer (media plugin for Gecko based browsers)
gecko-mediaplayer:
gecko-mediaplayer: Gecko Media Player is a browser plugin that uses GNOME
gecko-mediaplayer: MPlayer to play media in a browser.
gecko-mediaplayer: It should work with all browsers on Unix-ish systems
gecko-mediaplayer: (Linux, BSD, Solaris) and use the NS4 API (Mozilla, Firefox,
gecko-mediaplayer: Opera, etc).
gecko-mediaplayer:
gecko-mediaplayer:
gecko-mediaplayer: URL: http://kdekorte.googlepages.com/gecko-mediaplayer/
gecko-mediaplayer:
FILE LIST:
./
usr/
usr/doc/
usr/doc/gecko-mediaplayer-1.0.0/
usr/doc/gecko-mediaplayer-1.0.0/javascript.txt
usr/doc/gecko-mediaplayer-1.0.0/AUTHORS
usr/doc/gecko-mediaplayer-1.0.0/README
usr/doc/gecko-mediaplayer-1.0.0/ChangeLog
usr/doc/gecko-mediaplayer-1.0.0/gecko-mediaplayer.SlackBuild
usr/doc/gecko-mediaplayer-1.0.0/COPYING
usr/doc/gecko-mediaplayer-1.0.0/NEWS
install/
install/slack-desc
install/slack-required


NOTE:
I just built it again on a fresh system but I forgot to install gnome-player first.
Methinks the package is junk because I think it should not have built.

ponce 12-27-2010 11:57 AM

tried with xulrunner-1.9.2.13 and it builds fine.

rmjohnso 12-27-2010 12:06 PM

I'm running slackware64-current, but I haven't tried gecko-mediaplayer in a while since I mostly use vlc. I grabbed 1.0.0 like you have, along with AlienBOB's files. It compiled just fine for me. I've got both seamonkey and seamonkey-solibs installed, along with xulrunner and mozilla-nss.

larryhaja 12-27-2010 06:48 PM

Quote:

Originally Posted by slackass (Post 4204385)
cat /var/log/packages/gecko-mediaplayer-1.0.0-x86_64-1alien:

PACKAGE NAME: gecko-mediaplayer-1.0.0-x86_64-1alien
COMPRESSED PACKAGE SIZE: 20K
UNCOMPRESSED PACKAGE SIZE: 60K
PACKAGE LOCATION: ./gecko-mediaplayer-1.0.0-x86_64-1alien.tgz
PACKAGE DESCRIPTION:
gecko-mediaplayer: gecko-mediaplayer (media plugin for Gecko based browsers)
gecko-mediaplayer:
gecko-mediaplayer: Gecko Media Player is a browser plugin that uses GNOME
gecko-mediaplayer: MPlayer to play media in a browser.
gecko-mediaplayer: It should work with all browsers on Unix-ish systems
gecko-mediaplayer: (Linux, BSD, Solaris) and use the NS4 API (Mozilla, Firefox,
gecko-mediaplayer: Opera, etc).
gecko-mediaplayer:
gecko-mediaplayer:
gecko-mediaplayer: URL: http://kdekorte.googlepages.com/gecko-mediaplayer/
gecko-mediaplayer:
FILE LIST:
./
usr/
usr/doc/
usr/doc/gecko-mediaplayer-1.0.0/
usr/doc/gecko-mediaplayer-1.0.0/javascript.txt
usr/doc/gecko-mediaplayer-1.0.0/AUTHORS
usr/doc/gecko-mediaplayer-1.0.0/README
usr/doc/gecko-mediaplayer-1.0.0/ChangeLog
usr/doc/gecko-mediaplayer-1.0.0/gecko-mediaplayer.SlackBuild
usr/doc/gecko-mediaplayer-1.0.0/COPYING
usr/doc/gecko-mediaplayer-1.0.0/NEWS
install/
install/slack-desc
install/slack-required

It doesn't look like it built or installed anything. At least anything that is useful, unless this is an abbreviated description of the installed package.

Daedra 12-28-2010 04:28 AM

Quote:

Originally Posted by ponce (Post 4204478)
tried with xulrunner-1.9.2.13 and it builds fine.

Same here, Thanks ponce.


All times are GMT -5. The time now is 09:08 PM.