Found a patch to fix the loading of netscape plugins in konq when compiled with gcc3.x Added 'PATCHES="$FILESDIR/${P}-nsplugin.cpp.patch"' to kdebase/kdebase-3.0.3.ebuild, stuck the patch in $FILESDIR (changing the path to nsplugin.cpp) and recompiled, flash now works (still sucks, but that's another matter :) A good example URL is http://www.nike.com/usa/index.html
Created attachment 4252 [details, diff] netscape plugin fix for konq compiled with gcc3.x fix netscape plugin support in konq when compiled with gcc3.x
Credit to the author, http://lists.kde.org/?l=kde-devel&m=102498139302436&w=2
I looked this up in the kde cvs. Seems it went into cvs head long ago (nsplugin.cpp revision 1.71) but for some reason never made it into the 3.0.x branch. The complete diff comitted to cvs is: ------------cut-------------------- Index: nsplugin.cpp =================================================================== RCS file: /home/kde/kdebase/nsplugins/viewer/nsplugin.cpp,v retrieving revision 1.70 retrieving revision 1.71 diff -u -p -r1.70 -r1.71 --- nsplugin.cpp 16 Mar 2002 17:57:26 -0000 1.70 +++ nsplugin.cpp 5 Jul 2002 02:45:55 -0000 1.71 @@ -54,6 +54,34 @@ #include <X11/StringDefs.h> #include <Xm/DrawingA.h> +// provide these symbols when compiling with gcc 3.x +#if defined(__GNUC__) && __GNUC_PREREQ(3,0) +extern "C" void* __builtin_new(size_t s) +{ + return operator new(s); +} + +extern "C" void __builtin_delete(void* p) +{ + operator delete(p); +} + +extern "C" void* __builtin_vec_new(size_t s) +{ + return operator new[](s); +} + +extern "C" void __builtin_vec_delete(void* p) +{ + operator delete[](p); +} + +extern "C" void __pure_virtual() +{ + abort(); +} +#endif + // server side functions ----------------------------------------------------- // allocate memory -------------cut----------------- I'm a bit leery about adding patches that are more or less backported from the 3.1 cvs to our 3.0.x ebuilds. nsplugin is one thing that almost never worked properly and was never exactly guaranteed to do so, either (at least not for kde 3.0.x). I'll think about it...
I talked to David (Faure), and he, being the true hero as he is (sorry, he might be reading along ;o) committed the patch to branch (FOOT, if you're reading, David ;o), so it'll be fixed as soon as 3.0.4 is out. *dances around the campfire* I guess we can close this bug.
It is indeed in 3.0.4. I can testify to it since kdebase-3.0.4 now doesn't compile beause of it. /me investigates...