Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8460 - 'Unable to load Netscape plugin for ...' gcc3.x fix patch
Summary: 'Unable to load Netscape plugin for ...' gcc3.x fix patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-27 07:41 UTC by Mike Williams
Modified: 2002-10-05 06:43 UTC (History)
0 users

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


Attachments
netscape plugin fix for konq compiled with gcc3.x (kdebase-3.0.3-nsplugin.cpp.patch,547 bytes, patch)
2002-09-27 08:00 UTC, Mike Williams
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Williams 2002-09-27 07:41:44 UTC
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
Comment 1 Mike Williams 2002-09-27 08:00:22 UTC
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
Comment 2 Mike Williams 2002-09-27 08:06:45 UTC
Credit to the author, http://lists.kde.org/?l=kde-devel&m=102498139302436&w=2 
Comment 3 Dan Armak (RETIRED) gentoo-dev 2002-10-01 07:54:14 UTC
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... 
Comment 4 Bart Verwilst 2002-10-01 12:01:29 UTC
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.  
Comment 5 Dan Armak (RETIRED) gentoo-dev 2002-10-05 06:43:57 UTC
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...