* [gentoo-dev] Mozilla "patch" for flash/linux/GCC3.1
@ 2002-06-27 11:36 Ian Phillips
2002-06-27 12:44 ` Bart Verwilst
0 siblings, 1 reply; 9+ messages in thread
From: Ian Phillips @ 2002-06-27 11:36 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1082 bytes --]
Hi,
I've not gotten around to learning how to create/modify ebuilds myself yet, so
I'm submitting this here in the hope that some worthy sould will take this and
run with it.
Problem:
If mozilla is built with GCC3.x then loading flash or java plugins causes it to
crash. Bummer. This is bug 124006 in mozillas bug database.
Solution:
Write a small patch library to supply the reuired missing functions and preload
it (e.g. LD_PRELOAD=libmozhack.so). The required code is attached to this, mail.
See, it's really trivial, build it with "gcc -shared -fPIC -o libmozhack.so
libmozhack.c && strip libmozhack.so"
So I suggest that a revision of the mozilla ebuild includes the following logic:
do-usual-stuff;
if (gcc-3-based-build) {
copy mozhack.c from ebuild-files-dir to work-dir;
build libmozhack.so
copy libmozhack.so to /usr/lib/mozilla
patch mozilla shell script to preload libmozhack.so
}
What do people think?
Ian.
--
#ifndef __COMMON_SENSE__ | Ian Phillips
#include <std_disclaimer> | TIBCO Software Inc.
#endif | www.tibco.com
[-- Attachment #2: mozhack.c --]
[-- Type: text/plain, Size: 454 bytes --]
// -*- Mode: C -*-
// This is a hack to enable Mozilla to use Flash and Java plugins.
// It is required when building mozilla with GCC 3.x
// See http://bugzilla.mozilla.org/show_bug.cgi?id=124006 for more info.
void* __builtin_new(int s) {
return (void*)malloc(s);
}
void* __builtin_vec_new(int s) {
return __builtin_new(s);
}
void* __builtin_delete(void* p) {
free(p);
}
void* __builtin_vec_delete(void* p) {
__builtin_delete(p);
}
// EOF
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Mozilla "patch" for flash/linux/GCC3.1
2002-06-27 12:44 ` Bart Verwilst
@ 2002-06-27 12:41 ` Prashanth Aditya Susarla
2002-06-27 13:47 ` Christophe Vanfleteren
2002-06-27 12:47 ` Bart Verwilst
` (3 subsequent siblings)
4 siblings, 1 reply; 9+ messages in thread
From: Prashanth Aditya Susarla @ 2002-06-27 12:41 UTC (permalink / raw
To: gentoo-dev
> On another note, karltk, how's java support for gentoo 1.3?
> Is there a working java jre/jdk for use with gcc 3.1?
jdk/jre as such works well with gentoo-1.3/gcc-3.1 (I use
blackdown-jdk-1.3.1-r7 - the latest as of this point of time) but Mozilla
again seems to be having some problems with the java plugin provided by
blackdown. The plugin doesn't get "registered" (doesn't show up on
entering about:plugins). I tried remerging blackdown-jdk and
setting java-config --set-system-vm=blackdown-jdk-1.3.1 to no avail. I am
still trying. Perhaps this is a problem with blackdown and not gentoo-1.3?
Regards,
Prashanth Aditya Susarla
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Mozilla "patch" for flash/linux/GCC3.1
2002-06-27 11:36 [gentoo-dev] Mozilla "patch" for flash/linux/GCC3.1 Ian Phillips
@ 2002-06-27 12:44 ` Bart Verwilst
2002-06-27 12:41 ` Prashanth Aditya Susarla
` (4 more replies)
0 siblings, 5 replies; 9+ messages in thread
From: Bart Verwilst @ 2002-06-27 12:44 UTC (permalink / raw
To: gentoo-dev
Alrighty..
Will this fix this issue for all browsers out there?
I mean Mozilla/konqueror/galeon/.... ?
I don't want a half solution on this.
On another note, karltk, how's java support for gentoo 1.3?
Is there a working java jre/jdk for use with gcc 3.1?
See ya & Thanks!
--
Bart Verwilst
Gentoo Linux Developer, Release Coordinator
Gent, Belgium
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Mozilla "patch" for flash/linux/GCC3.1
2002-06-27 12:44 ` Bart Verwilst
2002-06-27 12:41 ` Prashanth Aditya Susarla
@ 2002-06-27 12:47 ` Bart Verwilst
2002-06-27 13:15 ` Christophe Vanfleteren
` (2 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Bart Verwilst @ 2002-06-27 12:47 UTC (permalink / raw
To: gentoo-dev
On Thursday 27 June 2002 14:44, Bart Verwilst wrote:
|| Alrighty..
||
|| Will this fix this issue for all browsers out there?
|| I mean Mozilla/konqueror/galeon/.... ?
|| I don't want a half solution on this.
||
|| On another note, karltk, how's java support for gentoo 1.3?
|| Is there a working java jre/jdk for use with gcc 3.1?
||
|| See ya & Thanks!
Update :o)
I don't want to install mozilla, i only use konqueror..
I want flash and such to work without having to install mozilla..
--
Bart Verwilst
Gentoo Linux Developer, Release Coordinator
Gent, Belgium
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Mozilla "patch" for flash/linux/GCC3.1
2002-06-27 12:44 ` Bart Verwilst
2002-06-27 12:41 ` Prashanth Aditya Susarla
2002-06-27 12:47 ` Bart Verwilst
@ 2002-06-27 13:15 ` Christophe Vanfleteren
2002-06-27 14:50 ` Karl Trygve Kalleberg
2002-06-30 9:38 ` Matthew Kennedy
4 siblings, 0 replies; 9+ messages in thread
From: Christophe Vanfleteren @ 2002-06-27 13:15 UTC (permalink / raw
To: gentoo-dev
On Thursday 27 June 2002 14:44, Bart Verwilst wrote:
> Alrighty..
>
> Will this fix this issue for all browsers out there?
> I mean Mozilla/konqueror/galeon/.... ?
> I don't want a half solution on this.
>
> On another note, karltk, how's java support for gentoo 1.3?
> Is there a working java jre/jdk for use with gcc 3.1?
>
> See ya & Thanks!
I'm using sun-jdk-1.4.0 without any problems.
Christophe Vanfleteren
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Mozilla "patch" for flash/linux/GCC3.1
2002-06-27 12:41 ` Prashanth Aditya Susarla
@ 2002-06-27 13:47 ` Christophe Vanfleteren
0 siblings, 0 replies; 9+ messages in thread
From: Christophe Vanfleteren @ 2002-06-27 13:47 UTC (permalink / raw
To: gentoo-dev
On Thursday 27 June 2002 14:41, Prashanth Aditya Susarla wrote:
> > On another note, karltk, how's java support for gentoo 1.3?
> > Is there a working java jre/jdk for use with gcc 3.1?
>
> jdk/jre as such works well with gentoo-1.3/gcc-3.1 (I use
> blackdown-jdk-1.3.1-r7 - the latest as of this point of time) but Mozilla
> again seems to be having some problems with the java plugin provided by
> blackdown. The plugin doesn't get "registered" (doesn't show up on
> entering about:plugins). I tried remerging blackdown-jdk and
> setting java-config --set-system-vm=blackdown-jdk-1.3.1 to no avail. I am
> still trying. Perhaps this is a problem with blackdown and not gentoo-1.3?
Starting mozilla in the console gives me this (plugin doesn't work obviously):
cxvx@luke cxvx $ mozilla
LoadPlugin: failed to initialize shared library
/opt/sun-jdk-1.4.0/jre/plugin/i386/ns610/libjavaplugin_oji.so
[/opt/sun-jdk-1.4.0/jre/plugin/i386/ns610/libjavaplugin_oji.so: undefined
symbol: GetGlobalServiceManager__16nsServiceManagerPP17nsIServiceManager]
Christophe Vanfleteren
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Mozilla "patch" for flash/linux/GCC3.1
2002-06-27 12:44 ` Bart Verwilst
` (2 preceding siblings ...)
2002-06-27 13:15 ` Christophe Vanfleteren
@ 2002-06-27 14:50 ` Karl Trygve Kalleberg
2002-06-30 9:38 ` Matthew Kennedy
4 siblings, 0 replies; 9+ messages in thread
From: Karl Trygve Kalleberg @ 2002-06-27 14:50 UTC (permalink / raw
To: gentoo-dev
On Thu, 27 Jun 2002, Bart Verwilst wrote:
> Is there a working java jre/jdk for use with gcc 3.1?
Unless you want to go through JNI, it works nicely. If you do, you will
need to use kaffe.
The browser plugins do not work, nor will they until the up-stream
commercial vendors recompile their binary JDKs.
Karl T
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Mozilla "patch" for flash/linux/GCC3.1
2002-06-27 12:44 ` Bart Verwilst
` (3 preceding siblings ...)
2002-06-27 14:50 ` Karl Trygve Kalleberg
@ 2002-06-30 9:38 ` Matthew Kennedy
2002-06-30 11:22 ` Bart Verwilst
4 siblings, 1 reply; 9+ messages in thread
From: Matthew Kennedy @ 2002-06-30 9:38 UTC (permalink / raw
To: verwilst; +Cc: gentoo-dev
On Thu, 2002-06-27 at 07:44, Bart Verwilst wrote:
> Alrighty..
>
> Will this fix this issue for all browsers out there?
> I mean Mozilla/konqueror/galeon/.... ?
> I don't want a half solution on this.
I just tried it for galeon on my gcc3.1 box. It fixes the same problem
perfectly. Definitely worth putting into portage IMO.
--
Matthew Kennedy
Gentoo Linux Developer
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Mozilla "patch" for flash/linux/GCC3.1
2002-06-30 9:38 ` Matthew Kennedy
@ 2002-06-30 11:22 ` Bart Verwilst
0 siblings, 0 replies; 9+ messages in thread
From: Bart Verwilst @ 2002-06-30 11:22 UTC (permalink / raw
To: gentoo-dev
Yeah, but galeon uses mozilla... i meant systems _without_ mozilla,
and only konqueror (like mine).. How could this be fixed then?
Can't we just let the flash ebuild install the workaround as well?
On Sunday 30 June 2002 11:38, Matthew Kennedy wrote:
|| On Thu, 2002-06-27 at 07:44, Bart Verwilst wrote:
|| > Alrighty..
|| >
|| > Will this fix this issue for all browsers out there?
|| > I mean Mozilla/konqueror/galeon/.... ?
|| > I don't want a half solution on this.
||
|| I just tried it for galeon on my gcc3.1 box. It fixes the same problem
|| perfectly. Definitely worth putting into portage IMO.
--
Bart Verwilst
Gentoo Linux Developer, Release Coordinator
Gent, Belgium
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2002-06-30 11:21 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-27 11:36 [gentoo-dev] Mozilla "patch" for flash/linux/GCC3.1 Ian Phillips
2002-06-27 12:44 ` Bart Verwilst
2002-06-27 12:41 ` Prashanth Aditya Susarla
2002-06-27 13:47 ` Christophe Vanfleteren
2002-06-27 12:47 ` Bart Verwilst
2002-06-27 13:15 ` Christophe Vanfleteren
2002-06-27 14:50 ` Karl Trygve Kalleberg
2002-06-30 9:38 ` Matthew Kennedy
2002-06-30 11:22 ` Bart Verwilst
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox