Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234189 - ebuild request for moonlight
Summary: ebuild request for moonlight
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: dotnet project
URL: http://www.go-mono.com/moonlight
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-07 15:54 UTC by Marcello Magaldi
Modified: 2010-08-02 02:29 UTC (History)
24 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Version-0.7 using src tarball (moonlight-0.7.ebuild,1.91 KB, text/plain)
2008-08-07 21:05 UTC, Mike Weissman
Details
correct attachment (moonlight-0.7.ebuild,1.91 KB, text/plain)
2008-08-07 21:25 UTC, Mike Weissman
Details
build-error (err,15.77 KB, text/plain)
2008-08-09 14:58 UTC, Marcello Magaldi
Details
updated ebuild with fixed ff3/ff2 issues (moonlight-0.7.ebuild,2.08 KB, text/plain)
2008-08-11 16:47 UTC, Mike Weissman
Details
build-error (build.log,325.51 KB, text/plain)
2008-08-12 14:07 UTC, Marcello Magaldi
Details
updated deps, and tests (moonlight-0.7.ebuild,2.53 KB, text/plain)
2008-08-12 15:26 UTC, Mike Weissman
Details
updated deps, and tests, (moonlight-0.7.ebuild,2.55 KB, text/plain)
2008-08-12 15:32 UTC, Mike Weissman
Details
moonlight files list (moonlight-files,2.64 KB, text/plain)
2008-08-12 21:13 UTC, Marcello Magaldi
Details
more changes (moonlight-0.7.ebuild,2.45 KB, text/plain)
2008-08-14 15:21 UTC, Mike Weissman
Details
more fine tuning (moonlight-0.7.ebuild,2.53 KB, text/plain)
2008-08-15 18:49 UTC, Mike Weissman
Details
Updated Version with some fixes (moonlight-0.8.ebuild,2.81 KB, text/plain)
2008-08-18 16:56 UTC, Mike Weissman
Details
ldd /usr/lib/moonlight.so (ldd-moonlight,2.66 KB, text/plain)
2008-08-18 21:02 UTC, Marcello Magaldi
Details
#moonlight irc log (moonlight-irclog,1.18 KB, text/plain)
2008-08-18 21:06 UTC, Marcello Magaldi
Details
Updated Version-0.8 fix for libtoo2,expat,pixman,cairo (moonlight-0.8.ebuild,3.51 KB, text/plain)
2008-08-18 21:17 UTC, Mike Weissman
Details
patch forversion-0.8 (moonlight-0.8-cairo.patch,349 bytes, patch)
2008-08-18 21:18 UTC, Mike Weissman
Details | Diff
updated deps,xulrunner_libs, (moonlight-0.8.ebuild,3.66 KB, text/plain)
2008-08-19 17:24 UTC, Mike Weissman
Details
Expat linking fix (moonlight-0.8-expat.patch,912 bytes, patch)
2008-08-24 05:50 UTC, Daniel Fullmer
Details | Diff
new ebuild with expat linking patch (moonlight-0.8.ebuild,3.70 KB, text/plain)
2008-08-24 10:34 UTC, Marcello Magaldi
Details
Cleaned up ebuild version0.8 (moonlight-0.8.ebuild,3.56 KB, text/plain)
2008-08-25 20:31 UTC, Mike Weissman
Details
patch for tests (moonlight-0.8-agtest.patch,497 bytes, patch)
2008-08-25 20:31 UTC, Mike Weissman
Details | Diff
second test patch (moonlight-0.8-tests.patch,359 bytes, patch)
2008-08-25 20:32 UTC, Mike Weissman
Details | Diff
live ebuild for moonlight (moonlight-9999.ebuild,3.43 KB, text/plain)
2008-10-02 02:52 UTC, gfl3162+gbugzilla
Details
New ebuild with version checking patch for new FFMPEG (moonlight-0.8.ebuild,3.69 KB, text/plain)
2008-11-03 04:47 UTC, Brian Nisonger
Details
patch for new ffmpeg (moonlight-0.8-new_ffmpeg.patch,508 bytes, patch)
2008-11-03 04:49 UTC, Brian Nisonger
Details | Diff
Ebuild for Version 1.0 beta1 (moonlight-1.0_beta1.ebuild,2.65 KB, text/plain)
2008-12-09 21:49 UTC, Mike Weissman
Details
moonlight -1.0_beta1 (moonlight-1.0_beta1.ebuild,2.67 KB, text/plain)
2009-01-05 22:02 UTC, Mike Weissman
Details
Ebuild with fixes as described (moonlight-1.0.ebuild,2.65 KB, text/plain)
2009-01-20 21:20 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcello Magaldi 2008-08-07 15:54:15 UTC
Moonlight is an open source implementation of Microsoft Silverlight for Unix systems.
http://www.go-mono.com/moonlight

I think it should be a good idea to provide an ebuild that installs moonlight firefox plugin and can be able to trigger audio/video codecs trought this ebuild USE flags.

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-08-07 18:08:34 UTC
@Marcello: Please don't CC the reporter - it's superfluous.
Comment 2 Mike Weissman 2008-08-07 21:05:25 UTC
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
Comment 3 Mike Weissman 2008-08-07 21:05:57 UTC
Created attachment 162466 [details]
Version-0.7 using src tarball
Comment 4 Mike Weissman 2008-08-07 21:25:36 UTC
Created attachment 162467 [details]
correct attachment

attached wrong one
Comment 5 Marcello Magaldi 2008-08-09 14:58:12 UTC
Created attachment 162573 [details]
build-error

Build error on my system
Comment 6 Marcello Magaldi 2008-08-09 15:00:18 UTC
(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.
Comment 7 Mike Weissman 2008-08-09 16:40:50 UTC
Yea, i see the issue, i need to add a conditional for FF2. I'll update the ebuild.
Comment 8 Kai Krakow 2008-08-11 10:22:17 UTC
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...
Comment 9 Mike Weissman 2008-08-11 16:47:12 UTC
Okay, as per comments and errors, i made some changes. Please test and report back. See incoming attachment. 

-Mike
Comment 10 Mike Weissman 2008-08-11 16:47:42 UTC
Created attachment 162691 [details]
updated ebuild with fixed ff3/ff2 issues
Comment 11 Marcello Magaldi 2008-08-12 14:07:31 UTC
Created attachment 162750 [details]
build-error
Comment 12 Marcello Magaldi 2008-08-12 14:09:06 UTC
(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
Comment 13 Mike Weissman 2008-08-12 15:25:40 UTC
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.
Comment 14 Mike Weissman 2008-08-12 15:26:00 UTC
Created attachment 162754 [details]
updated deps, and tests
Comment 15 Mike Weissman 2008-08-12 15:32:21 UTC
Created attachment 162755 [details]
updated deps, and tests,
Comment 16 Marcello Magaldi 2008-08-12 15:33:15 UTC
(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
Comment 17 Marcello Magaldi 2008-08-12 21:13:56 UTC
Created attachment 162782 [details]
moonlight files list

list of moonlight files on my system
Comment 18 Marcello Magaldi 2008-08-12 21:17:50 UTC
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. 
Comment 19 Marcello Magaldi 2008-08-12 21:29:00 UTC
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.
Comment 20 Mike Weissman 2008-08-12 22:01:03 UTC
okay i will do some heavy testing on FF2 using default USE. I will update accordingly. 

-Mike
Comment 21 Mike Weissman 2008-08-14 15:21:08 UTC
updated a few things on the ebuild.

@Marcello, can you confirm that you copied the plug-in to your $HOME/.mozilla/extensions ?


Comment 22 Mike Weissman 2008-08-14 15:21:30 UTC
Created attachment 162903 [details]
more changes
Comment 23 Marcello Magaldi 2008-08-14 15:57:21 UTC
(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.
Comment 24 Marcello Magaldi 2008-08-14 16:11:27 UTC
neither soft-linking the xpi file to .mozilla/extensions/ solve this issue... 
Comment 25 gfl3162+gbugzilla 2008-08-14 22:40:58 UTC
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.
Comment 26 gfl3162+gbugzilla 2008-08-14 22:54:07 UTC
(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.
Comment 27 Marcello Magaldi 2008-08-15 13:50:55 UTC
(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 .  
Comment 28 Mike Weissman 2008-08-15 14:23:26 UTC
@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
Comment 29 gfl3162+gbugzilla 2008-08-15 16:56:57 UTC
(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.
Comment 30 Marcello Magaldi 2008-08-15 17:24:51 UTC
(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 
Comment 31 Mike Weissman 2008-08-15 18:49:24 UTC
(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
Comment 32 Mike Weissman 2008-08-15 18:49:38 UTC
Created attachment 162987 [details]
more fine tuning
Comment 33 Marcello Magaldi 2008-08-16 20:47:07 UTC
(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. 
Comment 34 Marcello Magaldi 2008-08-16 20:55:12 UTC
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 
Comment 35 Marcello Magaldi 2008-08-16 21:32:05 UTC
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. 
Comment 36 Marcello Magaldi 2008-08-16 21:32:35 UTC
(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
Comment 37 gfl3162+gbugzilla 2008-08-18 04:05:39 UTC
(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.
Comment 38 Marcello Magaldi 2008-08-18 09:02:29 UTC
(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.
Comment 39 Mike Weissman 2008-08-18 16:56:02 UTC
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.
Comment 40 Marcello Magaldi 2008-08-18 19:42:00 UTC
(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 ?

Comment 41 Marcello Magaldi 2008-08-18 21:02:50 UTC
Created attachment 163246 [details]
ldd /usr/lib/moonlight.so
Comment 42 Marcello Magaldi 2008-08-18 21:05:35 UTC
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
Comment 43 Marcello Magaldi 2008-08-18 21:06:18 UTC
Created attachment 163248 [details]
#moonlight irc log
Comment 44 Mike Weissman 2008-08-18 21:16:30 UTC
@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)
Comment 45 Mike Weissman 2008-08-18 21:17:44 UTC
Created attachment 163250 [details]
Updated Version-0.8 fix for libtoo2,expat,pixman,cairo
Comment 46 Mike Weissman 2008-08-18 21:18:19 UTC
Created attachment 163252 [details, diff]
patch forversion-0.8
Comment 47 Marcello Magaldi 2008-08-18 22:56:48 UTC
(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
Comment 48 Marcello Magaldi 2008-08-18 22:59:25 UTC
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.
Comment 49 Mike Weissman 2008-08-18 23:25:01 UTC
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. 
Comment 50 Marcello Magaldi 2008-08-19 11:20:27 UTC
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
Comment 51 Mike Weissman 2008-08-19 17:24:53 UTC
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
Comment 52 Marcello Magaldi 2008-08-20 09:21:29 UTC
(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.
 
Comment 53 Mike Weissman 2008-08-20 13:58:19 UTC
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
Comment 54 Daniel Fullmer 2008-08-24 05:50:17 UTC
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.
Comment 55 Daniel Fullmer 2008-08-24 05:50:17 UTC
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.
Comment 56 Marcello Magaldi 2008-08-24 10:34:10 UTC
Created attachment 163696 [details]
new ebuild with expat linking patch

I modified last ebuild to include the expat linking patch
Comment 57 Marcello Magaldi 2008-08-24 12:35:29 UTC
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.

Comment 58 Mike Weissman 2008-08-24 23:03:57 UTC
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 59 Mike Weissman 2008-08-24 23:04:22 UTC
Comment on attachment 163308 [details]
updated deps,xulrunner_libs,

latest one is attached.
Comment 60 Mike Weissman 2008-08-25 20:31:16 UTC
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.
Comment 61 Mike Weissman 2008-08-25 20:31:39 UTC
Created attachment 163778 [details, diff]
patch for tests
Comment 62 Mike Weissman 2008-08-25 20:32:15 UTC
Created attachment 163780 [details, diff]
second test patch
Comment 63 Marcello Magaldi 2008-08-26 10:16:05 UTC
also last one works here. I didn't enabled test use flag anyway.
Comment 64 Nick Aubert 2008-08-30 07:57:02 UTC
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.
Comment 65 Mike Weissman 2008-08-30 18:37:40 UTC
@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
Comment 66 Nick Aubert 2008-09-03 05:07:31 UTC
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.
Comment 67 Ravi Pinjala 2008-09-04 07:14:44 UTC
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.
Comment 68 Nick Aubert 2008-09-05 06:37:14 UTC
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
Comment 69 Mike Weissman 2008-09-07 03:00:46 UTC
(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
Comment 70 gfl3162+gbugzilla 2008-09-12 00:55:25 UTC
If moonlight needs mono svn, wouldn't it be a good idea to create a 'mono-9999' ebuild?
Comment 71 Mike Weissman 2008-09-12 01:21:44 UTC
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 
Comment 72 Paulo da Silva 2008-09-22 15:22:38 UTC
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
Comment 73 Mike Weissman 2008-09-22 15:30:08 UTC
(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
Comment 74 Paulo da Silva 2008-09-22 21:34:10 UTC
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.
Comment 75 Mike Weissman 2008-09-25 16:52:19 UTC
(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

Comment 76 Mike Weissman 2008-09-29 15:47:08 UTC
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
Comment 77 gfl3162+gbugzilla 2008-10-02 02:50:06 UTC
Moonlight now uses --with-managed=yes|no|desktop|browser instead of --with-mono.
Comment 78 gfl3162+gbugzilla 2008-10-02 02:52:20 UTC
Created attachment 166955 [details]
live ebuild for moonlight
Comment 79 Brian Nisonger 2008-11-03 04:47:26 UTC
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
Comment 80 Brian Nisonger 2008-11-03 04:49:49 UTC
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 81 Mike Weissman 2008-11-04 22:14:22 UTC
Comment on attachment 163777 [details]
Cleaned up ebuild version0.8

Thanks for the Patch!! Working Great!

-Mike
Comment 82 Mike Weissman 2008-12-09 21:49:49 UTC
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
Comment 83 Peter Hultqvist 2008-12-11 18:03:48 UTC
(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.
Comment 84 Mike Weissman 2009-01-05 22:02:59 UTC
Created attachment 177513 [details]
moonlight -1.0_beta1

fixed deps.
Comment 85 Dennis Schridde 2009-01-20 21:00:42 UTC
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"
Comment 86 Dennis Schridde 2009-01-20 21:20:04 UTC
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...
Comment 87 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2009-01-24 15:06:02 UTC
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.
Comment 88 Peter Alfredsen (RETIRED) gentoo-dev 2009-01-25 22:43:49 UTC
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

Comment 89 Peter Alfredsen (RETIRED) gentoo-dev 2009-01-25 22:44:36 UTC
Forgot to reassign.
Comment 90 niogic 2009-02-22 21:10:08 UTC
There's 2.2 stable out there. Please reopen this and update the ebuild..
Comment 91 Peter Alfredsen (RETIRED) gentoo-dev 2009-02-22 21:23:54 UTC
(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
Comment 92 Chee Sing Lee 2009-06-01 21:00:25 UTC
Can a multilib option be added to this ebuild?

I'm running 32-bit Opera on amd64 and would like to use moonlight.
Comment 93 James Broadhead 2009-07-16 17:12:16 UTC
> (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




Comment 94 Peter Hultqvist 2009-07-16 18:29:27 UTC
(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/
Comment 95 Nikos Chantziaras 2009-08-19 22:38:26 UTC
The first Moonlight 2.0 beta is released:

http://squeedlyspooch.com/blog/2009/08/17/moonlight-20-beta-1
Comment 96 Arsen Shnurkov 2010-01-24 23:04:38 UTC
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
Comment 97 Steffen Hau 2010-01-27 17:25:46 UTC
I tried to compile moonlight-2.0 but it needs mono >= 2.5 which is not in portage yet.
Comment 98 Arsen Shnurkov 2010-08-02 02:29:03 UTC
> 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