Description
Marcello Magaldi
2008-08-07 15:54:15 UTC
@Marcello: Please don't CC the reporter - it's superfluous. I made an ebuild that works from source, I still need to test it on a few different situations, ie FF2 or FF3, but i'll attach my attempt, from what i can tell it works great, but i haven't tested it enough to confirm that. Feel free to improve my ebuild, need some help with the mozextension.eclass, see attached. -Mike Created attachment 162466 [details]
Version-0.7 using src tarball
Created attachment 162467 [details]
correct attachment
attached wrong one
Created attachment 162573 [details]
build-error
Build error on my system
(In reply to comment #3) > Created an attachment (id=162466) [edit] > Version-0.7 using src tarball > Thank you for the ebuild , anyway on my system doesn't build. It fails with the errors in the attached files. On my system I have mono 1.9.1 and mozilla-firefox 2.0.0.16 If you need more info please let me know. Yea, i see the issue, i need to add a conditional for FF2. I'll update the ebuild. Wouldn't it be smarter to rename the "plugin" useflag to "nsplugin"? That's an already defined useflag to build ns-compatible browser plugins - besides that "plugin" is a masked keyword... Okay, as per comments and errors, i made some changes. Please test and report back. See incoming attachment. -Mike Created attachment 162691 [details]
updated ebuild with fixed ff3/ff2 issues
Created attachment 162750 [details]
build-error
(In reply to comment #9) > Okay, as per comments and errors, i made some changes. Please test and report > back. See incoming attachment. > > -Mike > I get again errors with your new ebuild , I reported the whole build.log ff2-dom.cpp:10:27: error: nsIDOMElement.h: No such file or directory ff2-dom.cpp:11:25: error: nsIDOMRange.h: No such file or directory ff2-dom.cpp:12:33: error: nsIDOMDocumentRange.h: No such file or directory ff2-dom.cpp:13:28: error: nsIDOMDocument.h: No such file or directory ff2-dom.cpp:14:26: error: nsIDOMWindow.h: No such file or directory ff2-dom.cpp:18:25: error: nsIDOMEvent.h: No such file or directory ff2-dom.cpp:19:30: error: nsIDOMMouseEvent.h: No such file or directory ff2-dom.cpp:20:31: error: nsIDOMEventTarget.h: No such file or directory ff2-dom.cpp:21:33: error: nsIDOMEventListener.h: No such file or directory What version of xulrunner do you have, and need emerge --info? Can you remove your '-mfpmath=sse'? that flag is still experimental for GCC 4 Updating the ebuild. Created attachment 162754 [details]
updated deps, and tests
Created attachment 162755 [details]
updated deps, and tests,
(In reply to comment #13) > ff2-dom.cpp:10:27: error: nsIDOMElement.h: No such file or directory > ff2-dom.cpp:11:25: error: nsIDOMRange.h: No such file or directory > ff2-dom.cpp:12:33: error: nsIDOMDocumentRange.h: No such file or directory > ff2-dom.cpp:13:28: error: nsIDOMDocument.h: No such file or directory > ff2-dom.cpp:14:26: error: nsIDOMWindow.h: No such file or directory > ff2-dom.cpp:18:25: error: nsIDOMEvent.h: No such file or directory > ff2-dom.cpp:19:30: error: nsIDOMMouseEvent.h: No such file or directory > ff2-dom.cpp:20:31: error: nsIDOMEventTarget.h: No such file or directory > ff2-dom.cpp:21:33: error: nsIDOMEventListener.h: No such file or directory > > What version of xulrunner do you have, I don't have xulrunner at all , I have ff2 and firefox use flag > and need emerge --info? emerge --info Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-tuxonice-r9 i686) ================================================================= System uname: 2.6.24-tuxonice-r9 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Timestamp of tree: Tue, 12 Aug 2008 09:18:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -march=pentium4 -pipe -mfpmath=sse -msse2 -msse3 -mmmx" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-Os -march=pentium4 -pipe -mfpmath=sse -msse2 -msse3 -mmmx" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallell-fetch sandbox sfperms strict unmerge-orphans userfetch usersandbox" GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://files.gentoo.org" LANG="it_IT@euro" LC_ALL="it_IT.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="it" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="--timeout=500" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/desktop-effects /usr/portage/local/layman/initng /usr/portage/local/layman/mpd /usr/portage/local/layman/sunrise /usr/portage/local/layman/synce /usr/local/portage" SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage/" USE="X Xaw3d a52 aac aalib acl acpi aim alsa amr amrnb amrwb apache2 apm arts asp aspnet audiofile autoipd avahi avi bash-completion beagle berkdb bitmap-fonts bluetooth bonobo boo branding bzip2 c++ cairo caps cdparanoia cdr cli cracklib crypt css cups curl cxx dba dbus devhelp directfb divx4linux dri dts dvd dvdnav dvdr dvdread eds emboss encode esd evo examples exif fam fbcon ffmpeg firefox flac foomaticdb fortran ftp galago gcj gdbm gif gimp glade glitz gnome gnustep gpm gstreamer gtk gtk2 guile hal howl iconv icq id3tag imagemagick imap imlib ipv6 irda isdnlog jabber jack java javascript jpeg junit kde kerberos latex ldap libg++ libnotify libwww lisa live lzo mad matroska md5sum midi mikmod mime mjpeg mmx mmx2 mono motif mp2 mp3 mpeg msn mudflap musepack mysql nas ncurses nls nptl nptlonly nsplugin obex objc odbc offensive ogg oggvorbis openal opengl openmp oscar oss pam pcmcia pcre pda pdf pdflib perl php png pnm pnp portaudio posix ppds pppd python qt qt3 qt3support qt4 quicktime rar readline real reflection samba scanner sdl sensord session shorten slang sndfile sockets sourceview speex spell spl sqlite sqlite3 srt sse sse2 ssl ssse3 startup-notification subversion svg svga sysfs tcltk tcpd tetex theora threads thunderbird tidy tiff tk totem truetype truetype-fonts type1-fonts unicode usb userlocales utf v4l v4l2 valgrind vcd videos vorbis wifi win32codecs wxgtk1 wxwindows x264 x86 xanim xcomposite xine xml xml2 xorg xpm xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INITNG_PLUGINS="service_file also bash_launcher chdir chroot conflict cpout critical ctrlaltdel daemon_clean debug_commands envparser find fmon fstat history idleprobe initctl interactive iparser last limit lockfile logfile netdev netprobe ngc4 ngcs nge pause provide reload renice rlparser simple_launcher stcmd stdout suid syncron syslog sysreq unneeded usplash" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="radeon fbdev" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS > > Can you remove your '-mfpmath=sse'? that flag is still experimental for GCC 4 > > Updating the ebuild. > I'll give a try with your new ebuild and I'll let you know Created attachment 162782 [details]
moonlight files list
list of moonlight files on my system
I finally successful merge moonlight (I think that was the xulrunner dep, that wasn't included in previous ebuild) but it seems that my firefox doesn't see the relative plugin neither under extensions, neither under about:plugins , in the previous attachment there is the list of the files of the moonlight package on my system. I forgot to say that I say that mine firefox doesn't seem to "see" that plugin also because I opened a site after installing the extension from http://www.go-mono.com/moonlight/ and opens a silverlight site (but doesn't open the videos) with your ebuild that site asks to install silverlight to view it so it doesn't find the sl features like if moonlight wasn't there. okay i will do some heavy testing on FF2 using default USE. I will update accordingly. -Mike updated a few things on the ebuild. @Marcello, can you confirm that you copied the plug-in to your $HOME/.mozilla/extensions ? Created attachment 162903 [details]
more changes
(In reply to comment #21) > updated a few things on the ebuild. > > @Marcello, can you confirm that you copied the plug-in to your > $HOME/.mozilla/extensions ? > I didn't know I have to copy the novell-moonlight.xpi file to ~/.mozilla/extensions , anyway I copied it into that dir but again my firefox doesn't see it . I thought that I didn't have to install the extension manually since with other ebuilds, like enigmail, the ebuild install the extensions to a particular dir so the extension is installed system wide. Anyway like I told you also doing : cp /usr/lib/nsbrowser/plugins/novell-moonlight.xpi /home/magowiz/.mozilla/extensions/ didn't solve this issue, Anyway I saw that you made a new ebuild, I'll try also the last and I'll let you know about it. neither soft-linking the xpi file to .mozilla/extensions/ solve this issue... I believe that the 'mono' use flag should use --with-mono instead of --with-mono-runtime (./configure --help). Also, the silverlight 2.0 feature that the 'mono' flag enables requires a version of mono greater than 1.9.1 [http://www.mono-project.com/Moonlight#Alpha_support_for_Silverlight_2.0: (version 1.9.1 is not enough)] so unless there is a svn mono ebuild, silverlight 2.0 won't work. (In reply to comment #23) > Anyway like I told you also doing : > cp /usr/lib/nsbrowser/plugins/novell-moonlight.xpi > /home/magowiz/.mozilla/extensions/ > > didn't solve this issue, Anyway I saw that you made a new ebuild, I'll try also > the last and I'll let you know about it. I believe that yuo can install the plugin by entering file:///usr/lib/nsbrowser/plugins/novell-moonlight.xpi into the address bar. Firefox will then prompt you to install the plugin. (In reply to comment #26) > (In reply to comment #23) > > Anyway like I told you also doing : > > cp /usr/lib/nsbrowser/plugins/novell-moonlight.xpi > > /home/magowiz/.mozilla/extensions/ > > > > didn't solve this issue, Anyway I saw that you made a new ebuild, I'll try also > > the last and I'll let you know about it. > > I believe that yuo can install the plugin by entering > file:///usr/lib/nsbrowser/plugins/novell-moonlight.xpi into the address bar. > Firefox will then prompt you to install the plugin. > I tried as you said , the extension installs correctly but when I open this url (which is a silverlight enabled page) : http://www.pechino2008.rai.it/dl/RaiSport/PublishingBlock-b4e0c005-45c3-4562-870c-9cff574c184d.html firefox crashes . With the extension directly from moonlight site (the one I mentioned before) the same site doesn't crash and shows me the video controls (it is a page that shows olympic games video streams) but I obviously (as mentioned in the extension page) I cannot play videos . @Marcello (In reply to comment #27) > firefox crashes . With the extension directly from moonlight site (the one I > mentioned before) the same site doesn't crash and shows me the video controls > (it is a page that shows olympic games video streams) but I obviously (as > mentioned in the extension page) I cannot play videos . Need Crash details. @gfl3162, from install DOC: "--with-mono-runtime=yes,no By default Moonlight will build with 2.0 profile of Silverlight and will try to link with Mono to provide the required managed support. Use this flag to disable support for Mono from your plugin build." From what i read, you are correct about Silverlight 2.0 but ebuilds are suppose to be portable for versions, so it will probably be correct in later versions. -Mike (In reply to comment #28) > @gfl3162, from install DOC: > > "--with-mono-runtime=yes,no > By default Moonlight will build with 2.0 profile of Silverlight and will try > to link with Mono to provide the required managed support. Use this flag to > disable support for Mono from your plugin build." > > From what i read, you are correct about Silverlight 2.0 but ebuilds are suppose > to be portable for versions, so it will probably be correct in later versions. > > -Mike > I believe that the INSTALL doc is a bit outdated, and the --with-mono flag seems to take effect on the configuration. Also, I don't think that moonlight 0.7 should be used for silverlight 2.0 because even as of now, silverlight 2.0 support is only at its alpha stages. If moonlight is compiled without the svn version of mono, I get this at the end of ./configure: Moonlight configuration: Support for 1.0: yes Support for 2.0: no (reason: Mono newer than 1.9 not installed) Support for ffmpeg: yes Support for running the test harness: yes Using cairo: system Support for Firefox: yes With Silverlight 1.0 bugs: yes Support for plugin installer: yes Support for Gecko 1.8 (Firefox 2): no Support for Gecko 1.9 (Firefox 3): yes During the configure, it uses pkg-config to look for smcs.pc, which does not exist in mono 1.9.1 (it only exists in svn) and if it can't find the file, it turns off the silverlight 2.0 feature. (In reply to comment #28) > @Marcello (In reply to comment #27) > > > firefox crashes . With the extension directly from moonlight site (the one I > > mentioned before) the same site doesn't crash and shows me the video controls > > (it is a page that shows olympic games video streams) but I obviously (as > > mentioned in the extension page) I cannot play videos . > > Need Crash details. > this is the firefox command line output I get when it crashes : $ firefox No running windows found which: no wxdfast in (/usr/bin:/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/opt/sun-jdk-1.4.2.18/bin:/opt/sun-jdk-1.4.2.18/jre/bin:/opt/sun-jdk-1.4.2.18/jre/javaws:/opt/sancho:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/games/bin) which: no gwget in (/usr/bin:/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/opt/sun-jdk-1.4.2.18/bin:/opt/sun-jdk-1.4.2.18/jre/bin:/opt/sun-jdk-1.4.2.18/jre/javaws:/opt/sancho:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/games/bin) which: no aria in (/usr/bin:/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/opt/sun-jdk-1.4.2.18/bin:/opt/sun-jdk-1.4.2.18/jre/bin:/opt/sun-jdk-1.4.2.18/jre/javaws:/opt/sancho:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/games/bin) fixme:ntoskrnl:KeInitializeSpinLock 0x4577a4 ** Message: GetValue variable 1 (1) ** Message: GetValue variable 2 (2) ** Message: GetValue variable 1 (1) ** Message: GetValue variable 2 (2) ** Message: GetValue variable 1 (1) ** Message: GetValue variable 2 (2) ** Message: GetValue variable 1 (1) ** Message: GetValue variable 2 (2) ** Message: GetValue variable 1 (1) ** Message: GetValue variable 2 (2) ** Message: GetValue variable 1 (1) ** Message: GetValue variable 2 (2) PluginXamlLoader::TryLoad, filename: /home/magowiz/.mozilla/firefox/ig4xtyjr.default/Cache/3A660E95d01, str: (null) /usr/lib/mozilla-firefox/firefox-bin: symbol lookup error: /home/magowiz/.mozilla/firefox/ig4xtyjr.default/extensions/moonlight@novell.com/plugins/moonlight/libmoon.so: undefined symbol: XML_ParserCreateNS firefox-bin exited with non-zero status (127) tell me if you need further information (In reply to comment #29) > During the configure, it uses pkg-config to look for smcs.pc, which does not > exist in mono 1.9.1 (it only exists in svn) and if it can't find the file, it > turns off the silverlight 2.0 feature. Yea i noticed that, that's why i have mono with USE moonlight because it installs: /usr/lib/mono/2.1/smcs.exe.mdb /usr/lib/mono/2.1/smcs.exe but from testing, along with trying to patch the configure ( to find those files) it still shows, Mono newer than 1.9 not installed. For now I changed to USE to just mono, i am going to test out what happens with SVN mono. @Marcello, Having a super hard time reproducing your issues, but i am getting similar one's on my install, so i am still getting to the root, i updated a few things on the ebuild that might be causing some runtime errors, rebuild an let me know. See Attached -Mike Created attachment 162987 [details]
more fine tuning
(In reply to comment #31) > (In reply to comment #29) > > During the configure, it uses pkg-config to look for smcs.pc, which does not > > exist in mono 1.9.1 (it only exists in svn) and if it can't find the file, it > > turns off the silverlight 2.0 feature. > > Yea i noticed that, that's why i have mono with USE moonlight because it > installs: > /usr/lib/mono/2.1/smcs.exe.mdb > /usr/lib/mono/2.1/smcs.exe > > but from testing, along with trying to patch the configure ( to find those > files) it still shows, Mono newer than 1.9 not installed. For now I changed to > USE to just mono, i am going to test out what happens with SVN mono. > > @Marcello, > Having a super hard time reproducing your issues, but i am getting similar > one's on my install, so i am still getting to the root, i updated a few things > on the ebuild that might be causing some runtime errors, rebuild an let me > know. > > See Attached > > -Mike > I tried your last ebuild but firefox still crashes with the same identical error (so I won't paste it again). Did you tried with the link I gave you ? If it changes you could try to go to http://www.pechino2008.rai.it and then click on "Le dirette" (on the left menu) , I don't know other silverlight enabled sites so I don't know if it is a problem relative to moonlight in general or it's only that site. The only thing I can tell you is that , as I said before, with the xpi from moonlight official site that site doesn't make my firefox crash. I tried also with a test site listed here http://go-mono.com/moonlight/MoonlightStatus.aspx , more precisely this one : http://bubblemark.com/wpfe.htm (bubble mark) that is reported to work fine and my firefox crashed again with the same error I noticed that moonlight-0.8 was released yesterday, I renamed your ebuild to moonlight-0.8.ebuild , it merges fine but I still get the same error on opening pages. (In reply to comment #35) > I noticed that moonlight-0.8 was released yesterday, I renamed your ebuild to > moonlight-0.8.ebuild , it merges fine but I still get the same error on opening > pages. > on opening silverlight pages I mean (In reply to comment #34) > I tried also with a test site listed here > http://go-mono.com/moonlight/MoonlightStatus.aspx , more precisely this one : > http://bubblemark.com/wpfe.htm (bubble mark) that is reported to work fine and > my firefox crashed again with the same error > For some reason bubblemark works perfectly for me. (In reply to comment #37) > (In reply to comment #34) > > I tried also with a test site listed here > > http://go-mono.com/moonlight/MoonlightStatus.aspx , more precisely this one : > > http://bubblemark.com/wpfe.htm (bubble mark) that is reported to work fine and > > my firefox crashed again with the same error > > > > For some reason bubblemark works perfectly for me. > I don't know perhaps it is a particular issue with my system , I googled a bit and I found that the function that moonlight doesn't find it should be from expat library so I'll try to rebuild it. Created attachment 163226 [details]
Updated Version with some fixes
Attaching version 0.8 with a few changes. I have been testing with x86 on FF2, with all stable packages, except this one of course. I don't seem to get the same errors, but it does crash about 45% of time, i managed to narrow it down to an issue with nsl.PrefBrach.getComplexValue function, which is the FF ContentHandler. I am testing the Various MOONLIGHT runtime-parameters, to see if i can get to the root of this.
(In reply to comment #39) > Created an attachment (id=163226) [edit] > Updated Version with some fixes > > Attaching version 0.8 with a few changes. I have been testing with x86 on FF2, > with all stable packages, except this one of course. I don't seem to get the > same errors, but it does crash about 45% of time, i managed to narrow it down > to an issue with nsl.PrefBrach.getComplexValue function, which is the FF > ContentHandler. I am testing the Various MOONLIGHT runtime-parameters, to see > if i can get to the root of this. again that error for me with your 0.8 ebuild. I start to think that something in my system is broken. I don't have all stable packages since I have mono-1.9.1 and other stuff that are testing. I'm still trying to find where that XML_ParserCreateNS came from . I really don't know what should I do or what is wrong with my installation, also googling doesn't help a lot since I cannot find any similar issue with moonlight. Should I report the bug upstream ? Created attachment 163246 [details]
ldd /usr/lib/moonlight.so
I asked about my problem on #moonlight (on irc.gnome.org) they said that somehow my libmoon.so isn't linked against expat . Next attachment will be the chat log Created attachment 163248 [details]
#moonlight irc log
@Marcello, you can't report this as an upstream bug if you are using an unstable system. Please make sure sure your Reverse Dependencies are in order. I am attaching an ebuild and patch, which i think deals with the expat issues. on my system: # ldd /usr/lib/moon/plugin/libmoonplugin.so | grep expat libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb78d5000) Created attachment 163250 [details]
Updated Version-0.8 fix for libtoo2,expat,pixman,cairo
Created attachment 163252 [details, diff]
patch forversion-0.8
(In reply to comment #44) > @Marcello, you can't report this as an upstream bug if you are using an > unstable system. my system is not properly a unstable one , I have an x86 with some packages that are ~x86 . > Please make sure sure your Reverse Dependencies are in order. I ran a revdep-rebuild today that doesn't report any breakage > > I am attaching an ebuild and patch, which i think deals with the expat issues. > > on my system: > > # ldd /usr/lib/moon/plugin/libmoonplugin.so | grep expat > libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb78d5000) > I tried again with your last ebuild but same error and libmoon.so and libmoonplugin.so aren't linked with libexpat I quote from moonlight mailing list : "Using --enable-user-plugin for a local build is wrong. We should probably rename this option to --enable-firefox-plugin-installer or something. Doing both --enable-user-plugin and make install will have unexpected results." I don't know if it is the cause of my problem , anyway it could be a hint to improve your ebuild. Marcello, from INSTALL DOC: To build a mozilla plugin installer (XPI) configure with --enable-user-plugin and build as above. This modifies the libraries to open the libraries it needs from ~/.mozilla/plugins and builds an unsigned .xpi file which you may use to install the plugin in your browser. testing results when i added --shared to configure, will update accordingly. I tried also enabling system wide expat use flag that wasn't enabled, but doing emerge -uDN world re-emerge only neon library and nothing changes on libmoon.so dynamic linking Created attachment 163308 [details]
updated deps,xulrunner_libs,
Added a few deps, which came up while investigating this annoying crash, but i managed to get somewhere though. I think i am passing the right configure items that it should build correctly now.
On FF2 setup it doesn't seem to link libexpat.so.1 inside libmoon.so in the XPI
On FF3 setup it links libexpat.so.1 inside libmoon.so in the XPI
on my unstable setup:
ldd XPI/plugins/moonlight/libmoon.so | grep expat
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb77d9000)
on my stable setup:
nothing.
Also it looks like the XPI/plugins/moonlight/libmoonplugin-ff3bridge.so can't find xulrunner1.9 even with XULRUNNER_LIBS passed to conf
libxul.so => not found
but on XPI/plugins/moonlight/libmoonplugin-ff2-bridge.so it finds xulrunner1.8 just fine.
Thats where i am at this point,
-Mike
(In reply to comment #51) > [...] I can confirm it on my setup (ff2) : /usr/lib/libmoon.so : no link to expat /usr/lib/moon/plugin/libmoonplugin-ff2bridge.so : linked to xulrunner ( mine is 1.8.1.16 ) result : same annoying crash also with your last ebuild . but I think you expected this since you are still working to this issue. I chatted in the #moonlight channel and they told me that moonlight doesn't check explicitly for expat and doesn't link explicitly to expat. They told me anyway that (perhaps in the next release) they should fix this (I hope). I think it could be better to have a dialogue with moonlight developers to better discover which is the problem and how to fix this. latest ebuild is working for me on x86 with ff3 and xulrunner-1.9.0.1. I used bubblemark.com as test site @Marcello: Yes it's clear that the issues with FF2 build is that it doesn't explicity check or do anything with expat, it just assumes everything is all good. But i am able to get it to work on 2 different FF3 installations, i am going to try a clean chroot to make sure i haven't missed any deps. I have not been able to get it to work on FF2. -Mike Created attachment 163692 [details, diff]
Expat linking fix
I had the XML_ParserCreateNS symbol problem with the latest ebuild. Applying this patch should hopefully fix the expat linking issue. I figure it should explicitly check for the expat header/library since it uses expat functions in src/xaml.cpp.
With this patch, bubblemark.com works on FF3 + amd64.
Created attachment 163692 [details, diff]
Expat linking fix
I had the XML_ParserCreateNS symbol problem with the latest ebuild. Applying this patch should hopefully fix the expat linking issue. I figure it should explicitly check for the expat header/library since it uses expat functions in src/xaml.cpp.
With this patch, bubblemark.com works on FF3 + amd64.
Created attachment 163696 [details]
new ebuild with expat linking patch
I modified last ebuild to include the expat linking patch
With the patch provided by Daniel I can confirm that here (ff2 x86) it works like a charm. I'll test it with other pages and let you know if I have problems. working great on x86 with FF2 and FF3 for me, even builds fine under i486 and i686 with gcc-4.1.2, 4.2.4 and 4.31. Using bubblemark.com as test site. The only thing i am not sure about is the mozdevelop USE flag on Firefox, i am not too familar with NSPR libs, so it clould definitely not be needed. Now that it's working, i am going to work on getting the tests to work, and try to trim down some of the excess code, that i think is in the ebuild. -Mike Comment on attachment 163308 [details]
updated deps,xulrunner_libs,
latest one is attached.
Created attachment 163777 [details]
Cleaned up ebuild version0.8
Cleaned up the ebuild, updated some of the tests, a few are working, still having issues gtk-sharp libs.
Created attachment 163778 [details, diff]
patch for tests
Created attachment 163780 [details, diff]
second test patch
also last one works here. I didn't enabled test use flag anyway. I was able to install moonlight using the 0.8 ebuild. I'm able to run Silverlight apps from several of the sites listed in the project's TestSites (http://go-mono.com/moonlight/MoonlightStatus.aspx), including bubblemark.com. Other sites that are listed as working reliably crash my browser instead, for example the Glyph Map here: http://www.wynapse.com/Silverlight/Silverlight_GlyphMap_Utility.aspx Should I report this kind of bug here or upstream? The only message FF3 prints when it crashes is "windowless mode" even with the "debug" use flag set in moonlight. What else can I do to produce more useful output? I'm running FF 3.0.1 on an otherwise stable system. @Nick, Run FF3 via command line with a clean profile. Also the Error Console can be found in the tools menu. If you are reporting a crash, need exact crash text, 'emerge --info', and steps to reproduce. Also please note the Silverlight 2.0_alpha support is not working, thus those websites will not work. Without this info, cannot determine where the source of the bug is. -Mike I'm running FF3 in a new user account with a clean profile and plugins other than moonlight. I'm going to this site: http://www.wynapse.com/Silverlight/Silverlight_GlyphMap_Utility.aspx The Moonlight 1.0 Test Sites page (http://go-mono.com/moonlight/MoonlightStatus.aspx) lists that site as working reliably. In my experience, the only steps needed to reproduce this crash is to simply load the site. Firefox crashes as soon as the site loads. The only message on the command line is: windowless mode windowless mode windowless mode Segmentation fault It doesn't list anything in the Error Console. If I run Firefox in gdb, I only get a little more information before it segfaults: [New Thread 0xaee5eb90 (LWP 3351)] [Thread 0xb0027b90 (LWP 3344) exited] (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) windowless mode (no debugging symbols found) windowless mode windowless mode (firefox:3328): Moonlight-WARNING **: EventHandle called before SetWindow, discarding event. (no debugging symbols found) (no debugging symbols found) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb7d216d0 (LWP 3328)] 0xb4f94473 in ?? () from /usr/lib/xulrunner-1.9/components/../libthebes.so $ emerge --info Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686) ================================================================= System uname: 2.6.24-gentoo-r8 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ Timestamp of tree: Mon, 25 Aug 2008 05:30:02 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US" LC_ALL="en_US" LDFLAGS="-Wl,-O1" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X acl acpi alsa berkdb bitmap-fonts bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gpm gstreamer gtk hal iconv isdnlog jpeg kerberos ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd threads tiff truetype truetype-fonts type1-fontsa unicode usb vorbis win32codecs x86 xinerama xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS USE flags for Firefox: www-client/mozilla-firefox-3.0.1 USE="dbus java startup-notification xulrunner -bindist -custom-optimization -gnome -iceweasel -ipv6 -mozdevelop -restrict-javascript" LINGUAS="en en_GB en_US -af -ar -be -ca -cs -da -de -el -es -es_AR -es_ES -eu -fi -fr -fy -fy_NL -ga -ga_IE -gu -gu_IN -he -hu -id -it -ja -ka -ko -ku -lt -mk -mn -nb -nb_NO -nl -nn -nn_NO -pa -pa_IN -pl -pt -pt_BR -pt_PT -ro -ru -si -sk -sl -sq -sr -sv -sv_SE -tr -uk -zh -zh_CN -zh_TW" USE flags for xulrunner: net-libs/xulrunner-1.9.0.1 USE="dbus startup-notification -custom-optimization -gnome -ipv6 -java" USE flags for moonlight: mono/moonlight-0.8 USE="debug ffmpeg nsplugin -mono -test" If there's anything else I can do to make the FF more verbose before it segfault's I'll give it a try. Nick: drop -fomit-frame-pointer from your CFLAGS, and add -g, and then recompile whatever library owns the file the crash is coming from. This should enable better debug messages. My CFLAGS are now "-O2 -march=k8 -pipe -g" I've recompiled firefox, xulrunner, and moonlight with these flags: www-client/mozilla-firefox-3.0.1 USE="dbus java startup-notification xulrunner" net-libs/xulrunner-1.8.1.16 USE="debug xinerama" mono/moonlight-0.8 USE="debug nsplugin" On the command line, all Firefox says is this: windowless mode windowless mode windowless mode Segmentation fault Running it in gdb, I get this: (no debugging symbols found) [New Thread 0xaedffb90 (LWP 29315)] [New Thread 0xae5feb90 (LWP 29316)] [Thread 0xaedffb90 (LWP 29315) exited] [Thread 0xb0019b90 (LWP 29310) exited] (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) windowless mode (no debugging symbols found) windowless mode windowless mode (no debugging symbols found) (no debugging symbols found) ---Type <return> to continue, or q <return> to quit--- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb7d136d0 (LWP 29294)] 0xb4f86473 in ?? () from /usr/lib/xulrunner-1.9/components/../libthebes.so (In reply to comment #68) > 0xb4f86473 in ?? () from /usr/lib/xulrunner-1.9/components/../libthebes.so #qfile libthebes.so net-libs/xulrunner (/usr/lib/xulrunner-1.9/libthebes.so) @Nick, please confirm your box is somewhat stable and then # emerge --sync # emerge =net-libs/xulrunner-1.9.0.1 rebuild moonlight with USE="ffmpeg mono nsplugin debug" then start firefox with # firefox -ProfileManager Create a clean profile and install the plugin -Mike If moonlight needs mono svn, wouldn't it be a good idea to create a 'mono-9999' ebuild? Moonlight needs mono-2.0 for Sliverlight-2.0_alpha, which is not near stable. There is a mono-2.0_alpha tarball out from dev's, but Sliverlight-2.0a is still shotty at best, and mono-2.0 is still in development. Just made the ebuild ready for that time period. -Mike I tried the ebuild but got the following blockings: [blocks B ] net-dns/avahi (is blocking net-misc/mDNSResponder-107.6-r5) [blocks B ] net-misc/mDNSResponder (is blocking net-dns/avahi-0.6.23) BTW, is it needed all that gnome stuff, like gnome-desktop for kde users? Thanks (In reply to comment #73) > I tried the ebuild but got the following blockings: > [blocks B ] net-dns/avahi (is blocking net-misc/mDNSResponder-107.6-r5) > [blocks B ] net-misc/mDNSResponder (is blocking net-dns/avahi-0.6.23) > > BTW, is it needed all that gnome stuff, like gnome-desktop for kde users? > > Thanks > This is not relevant to this ebuild, nor this bug, please do not try and hijack. This is an ebuild for a NSBROWSER plugin. -Mike Would you detail please, Mike? I tried the ebuild: 1. It causes some blocking situations - So I cannot try it. 2. It reports lots of dependencies, like gnome-desktop. May be they are really needed but also may be not. What is wrong in reporting these here? Did I misunderstand anything? Thank you and I apologize if I did something wrong. (In reply to comment #74) > Would you detail please, Mike? > 1. It causes some blocking situations - So I cannot try it. The Blocker is not caused by this ebuild, something separate. > 2. It reports lots of dependencies, like gnome-desktop. May be they are really > needed but also may be not. You need to obviously have an X env setup and have an NSBROWSER > 3. What is wrong in reporting these here? This is a request bug for this package to get added to the tree, and your issues don't directly effect the building of this package. You did nothing wrong, just trying to keep this bug somewhat clean. -Mike Working fine for me with x86,FF-3.0.3,xul-1.9.0.3,libtool-2.2.6a. Need to rebuild though with new versions. -Mike Moonlight now uses --with-managed=yes|no|desktop|browser instead of --with-mono. Created attachment 166955 [details]
live ebuild for moonlight
Created attachment 170589 [details]
New ebuild with version checking patch for new FFMPEG
This ebuild checks for the new version of FFMPEG and patches moonlight to work with it
Created attachment 170591 [details, diff]
patch for new ffmpeg
This patch fixes a problem with the new ffmpeg. They changed one of the function names and this patch corrects this in the ebuild. See patch for details. The change is merely a name change and should be trivial.
Comment on attachment 163777 [details]
Cleaned up ebuild version0.8
Thanks for the Patch!! Working Great!
-Mike
Created attachment 174796 [details]
Ebuild for Version 1.0 beta1
New ebuild for overhauled beta1. Tons of fixes and a lot better compatibility.
new TEST are WIP ATM.
-Mike
(In reply to comment #83) Compilation gave this error: Requested 'cairo >= 1.8' but version of cairo is 1.6.4 There seem to be a missing dependency in the ebuild. Created attachment 177513 [details]
moonlight -1.0_beta1
fixed deps.
Does this really require www-client/mozilla-firefox? Shouldn't net-libs/xulrunner be enough? The indention for DEPEND is misleading. S="${WORKDIR}/moon-1.0b1" << You should use MY_PN, MY_PV, MY_P instead. (MY_PN=moon, MY_PV=${PV/_beta/b/}, MY_P=${MY_PN}-${MY_PV} Same for SRC_URI: SRC_URI="ftp://ftp.novell.com/pub/mono/sources/${MY_PN}/${MY_P}.tar.bz2" if use ffmpeg ; then myconf="${myconf} --with-ffmpeg=yes" fi Should be: $(use_with ffmpeg), I think. You use: doexe novell-moonlight.xpi || die "plugin install failed" but: einfo "file:///usr/$(get_libdir)/${PLUGINS_DIR}/novell-${PN}.xpi" Created attachment 179113 [details] Ebuild with fixes as described The attached ebuild is untested. (I found the precompiled one at http://www.go-mono.com/moonlight/.) What I wonder about is the enormous amount of dependencies... Is the dev-util/mono-tools dependency really required? I've just built moonlight without it and it seems to work without any problem. And removing it saved me from building almost whole GNOME. It's now in the tree. The libraries are installed to the harddrive now and if you restart firefox after having installed it, it should Just Work. You can go here and test it: http://www.go-mono.com/moonlight/MoonlightStatus.aspx Forgot to reassign. There's 2.2 stable out there. Please reopen this and update the ebuild.. (In reply to comment #91) > There's 2.2 stable out there. Please reopen this and update the ebuild.. > http://ftp.novell.com/pub/mono/sources/moon/ The latest version is 1.0. It is in the tree as net-www/moonlight Can a multilib option be added to this ebuild? I'm running 32-bit Opera on amd64 and would like to use moonlight. > (In reply to comment #91) > > There's 2.2 stable out there. Please reopen this and update the ebuild.. > http://ftp.novell.com/pub/mono/sources/moon/ > The latest version is 1.0. It is in the tree as net-www/moonlight 2.2 is available here : http://www.go-mono.com/mono-downloads/download.html (In reply to comment #93) > 2.2 is available here : http://www.go-mono.com/mono-downloads/download.html No that's mono. http://www.go-mono.com/moonlight/ The first Moonlight 2.0 beta is released: http://squeedlyspooch.com/blog/2009/08/17/moonlight-20-beta-1 See ebuild requiest for Moonlight 2.0: http://bugs.gentoo.org/show_bug.cgi?id=291137 There is source tarball for moonlight 2.0: http://ftp.novell.com/pub/mono/sources/moon/2.0/moonlight-2.0.tar.bz2 It is possible to install it in binary form through firefox: http://www.go-mono.com/moonlight/downloads/2.0/novell-moonlight-2.0-x86_64.xpi I tried to compile moonlight-2.0 but it needs mono >= 2.5 which is not in portage yet. > I tried to compile moonlight-2.0 but it needs mono >= 2.5 which is not in
> portage yet.
dev-lang/mono-2.6.4-r1 is in portage
|