From owner-freebsd-questions@FreeBSD.ORG Sun Nov 12 15:15:33 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 422E716A403 for ; Sun, 12 Nov 2006 15:15:33 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail4.sea5.speakeasy.net (mail4.sea5.speakeasy.net [69.17.117.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FF9043DAC for ; Sun, 12 Nov 2006 15:14:53 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 32007 invoked from network); 12 Nov 2006 15:14:53 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 12 Nov 2006 15:14:52 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 319C528430; Sun, 12 Nov 2006 10:14:52 -0500 (EST) To: Erik Norgaard References: <4555D865.6060106@locolomo.org> From: Lowell Gilbert Date: Sun, 12 Nov 2006 10:14:52 -0500 In-Reply-To: <4555D865.6060106@locolomo.org> (Erik Norgaard's message of "Sat, 11 Nov 2006 15:04:21 +0100") Message-ID: <444pt47l3n.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: questions@freebsd.org Subject: Re: Java plugin for Firefox X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Nov 2006 15:15:33 -0000 Erik Norgaard writes: > Hi: > > How do I build the java plugin for Firefox? I have jdk15 installed > without the plugin. I tried to rebuild with USE_GECKO=firefox which > fails as the Makefile also states: > > /usr/local/include/firefox/nsDebug.h:207:1: warning: this is the > location of the previous definition > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp: > In member function `virtual JDresult > CNSAdapter_JVMManager::GetCurrentThread(JDUint32*)': > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142: > error: `nsPluginThread' was not declared in this scope > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142: > error: `pPluginThread' was not declared in this scope > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp: > In member function `virtual JDresult > CNSAdapter_JVMManager::PostEvent(JDUint32, IRunnable*, JDBool)': > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:172: > error: invalid conversion from `JDUint32' to `PRThread*' > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:172: > error: initializing argument 1 of `virtual nsresult > nsIThreadManager::PostEvent(PRThread*, nsIRunnable*, PRBool)' > gmake[5]: *** > [/usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/deploy/plugin/adapter/ns7/obj/CNSAdapter_JVMManager.o] > Error 1 > gmake[5]: Leaving directory > /usr/ports/java/jdk15/work/deploy/make/plugin/adapter/ns7-adapter' > gmake[4]: *** [optimized] Error 2 > gmake[4]: Leaving directory > /usr/ports/java/jdk15/work/deploy/make/plugin/adapter/ns7-adapter' > gmake[3]: *** [ns7-adapter] Error 2 > gmake[3]: Leaving directory > /usr/ports/java/jdk15/work/deploy/make/plugin/adapter' > gmake[2]: *** [adapter] Error 2 > gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/deploy/make/plugin' > gmake[1]: *** [plugin-all] Error 2 > gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/deploy/make' > gmake: *** [deploy-build] Error 2 > *** Error code 2 > > Stop in /usr/ports/java/jdk15. > > Then I tried just building it for mozilla with the idea of copying or > linking the plugin to the firefox plugin dir. But building mozilla fails > > nsType1.cpp:371: error: invalid conversion from `int (*)(const > FT_Vector*, void*)' to `int (*)(FT_Vector*, void*)' > nsType1.cpp:371: error: invalid conversion from `int (*)(const > FT_Vector*, void*)' to `int (*)(FT_Vector*, void*)' > nsType1.cpp:371: error: invalid conversion from `int (*)(const > FT_Vector*, const FT_Vector*, void*)' to `int (*)(FT_Vector*, > FT_Vector*, void*)' > nsType1.cpp:371: error: invalid conversion from `int (*)(const > FT_Vector*, const FT_Vector*, const FT_Vector*, void*)' to `int > (*)(FT_Vector*, FT_Vector*, FT_Vector*, void*)' > gmake[4]: *** [nsType1.o] Error 1 > gmake[4]: Leaving directory `/usr/ports/www/mozilla/work/mozilla/gfx/src/ps' > gmake[3]: *** [libs] Error 2 > gmake[3]: Leaving directory `/usr/ports/www/mozilla/work/mozilla/gfx/src' > gmake[2]: *** [libs] Error 2 > gmake[2]: Leaving directory `/usr/ports/www/mozilla/work/mozilla/gfx' > gmake[1]: *** [tier_9] Error 2 > gmake[1]: Leaving directory `/usr/ports/www/mozilla/work/mozilla' > gmake: *** [default] Error 2 > *** Error code 2 > > Stop in /usr/ports/www/mozilla. > > Any suggestions? I just built jdk15 with the default options, and the Java plugin works in my firefox. > Secondly, is there a way to just build the plugin since I have the jdk > built and installed? It looks possible, but (to me) it's not worth a few hours of human time to figure it out in order to save a few hours (or even days) of the computer's time. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/