jdk-1.5 update to _3 does not work under freebsd 6 stable
Melvyn Sopacua
melvyn at melvyn.homeunix.org
Wed Dec 14 13:33:51 PST 2005
Patches properly attached now.
(No succesfull build yet though)
--
Melvyn Sopacua
melvyn at melvyn.homeunix.org
FreeBSD 6.0-STABLE
Qt: 3.3.5
KDE: 3.4.3
-------------- next part --------------
--- Makefile.orig Tue Dec 13 19:49:17 2005
+++ Makefile Wed Dec 14 17:27:22 2005
@@ -82,10 +82,12 @@
$(subst \,/, $(MOZILLA_HEADERS_PATH)/$(BROWSER)/nspr) \
$(subst \,/, $(MOZILLA_HEADERS_PATH)/$(BROWSER)/oji) \
$(subst \,/, $(MOZILLA_HEADERS_PATH)/$(BROWSER)/plugin) \
- $(subst \,/, $(MOZILLA_HEADERS_PATH)/$(BROWSER)/xpcom)
+ $(subst \,/, $(MOZILLA_HEADERS_PATH)/$(BROWSER)/xpcom) \
+ $(subst \,/, $(MOZILLA_HEADERS_PATH)/$(BROWSER)/js)
endif
X11HDRDIR = /usr/X11R6/include
ICONVHDRDIR = /usr/local/include
+NSPRHDRDIR = $(NSPR_HEADERS_PATH)
else
MOZHDRDIR = $(subst \,/,$(MOZILLA_HEADERS_PATH)/mozilla_headers_ns7) \
$(subst \,/, $(MOZILLA_HEADERS_PATH)/mozilla_headers_ns7/nspr)
@@ -110,6 +112,7 @@
$(COREDIR) \
$(INTERFACESDIR) \
$(MOZHDRDIR) \
+ $(NSPRHDRDIR) \
$(X11HDRDIR) \
$(ICONVHDRDIR)
-------------- next part --------------
--- ../../deploy/src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp.orig Tue Oct 19 21:04:26 2004
+++ ../../deploy/src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp Wed Dec 14 16:38:54 2005
@@ -130,7 +130,7 @@
// notes :
//
JD_METHOD
-CNSAdapter_JVMManager::GetCurrentThread(JDUint32 *threadID)
+CNSAdapter_JVMManager::GetCurrentThread(PRThread* *threadID)
{
TRACE("CNSAdapter_JVMManager::GetCurrentThread\n");
@@ -139,11 +139,11 @@
nsresult res = JD_OK;
- nsPluginThread* pPluginThread = NULL;
+ PRThread* pPluginThread = NULL;
res = m_pThreadManager->GetCurrentThread(&pPluginThread);
if (NS_SUCCEEDED(res) && pPluginThread)
- *threadID = (JDUint32)pPluginThread;
+ threadID = &pPluginThread;
return res;
}
@@ -158,7 +158,7 @@
// notes :
//
JD_METHOD
-CNSAdapter_JVMManager::PostEvent(JDUint32 threadID, IRunnable* runnable, JDBool async)
+CNSAdapter_JVMManager::PostEvent(PRThread *threadID, IRunnable* runnable, JDBool async)
{
TRACE("CNSAdapter_JVMManager::PostEvent\n");
if (m_pThreadManager == NULL)
--- ../../deploy/src/plugin/share/adapter/common/CNSAdapter_JVMManager.h.orig Wed Dec 14 16:46:00 2005
+++ ../../deploy/src/plugin/share/adapter/common/CNSAdapter_JVMManager.h Wed Dec 14 16:38:18 2005
@@ -56,10 +56,10 @@
//IThreadManager
JD_IMETHOD
- GetCurrentThread(JDUint32 *threadID);
+ GetCurrentThread(PRThread* *threadID);
JD_IMETHOD
- PostEvent(JDUint32 threadID, IRunnable* runnable, JDBool async);
+ PostEvent(PRThread *threadID, IRunnable* runnable, JDBool async);
private:
nsIJVMManager* m_pJVMManager;
-------------- next part --------------
--- ../../work/deploy/make/plugin/nscore/unix/Makefile.orig Tue Oct 19 21:03:59 2004
+++ ../../work/deploy/make/plugin/nscore/unix/Makefile Wed Dec 14 22:23:32 2005
@@ -16,18 +16,37 @@
include $(PLUGIN_TOP)/make/plugin/common/config.gmk
+ifeq ($(PLATFORM), bsd)
+LDLIBS = -lX11
+X11HDRDIR = /usr/X11R6/include
+ICONVHDRDIR = /usr/local/include
+else
+X11HDRDIR =
+ICONVHDRDIR =
ifeq ($(PLATFORM), linux)
LDLIBS = -lX11 -ldl -lc
else
LDLIBS = -lXt -lX11 -ldl -lCrun -lc
endif
+endif
+
+ifeq ($(PLATFORM), bsd)
+TRUE_PLATFORM_INCLUDE := $(shell $(ECHO) $(TRUE_PLATFORM) | $(TR) "[:upper:]" "[:lower:]")
+JNIDIR = $(OUTPUTDIR)/include/$(TRUE_PLATFORM_INCLUDE)
+else
+JNIDIR = $(OUTPUTDIR)/include/$(PLATFORM)
+endif
-CPPINCPATH = $(SRCDIR) $(SRCDIR)/../common \
+CPPINCPATH = $(OUTPUTDIR)/include $(JNIDIR) \
+ $(SRCDIR) $(SRCDIR)/../common \
$(subst $(LIBRARY),,$(TMPDIR)) \
$(subst $(LIBRARY)/,,$(CLASSHDRDIR)) \
$(COMMONDIR) \
$(PLUGIN_TOP)/src/plugin/share/jpiapi \
- $(SRCDIR)/../nsstub
+ $(SRCDIR)/../nsstub \
+ $(X11HDRDIR) \
+ $(NSPR_HEADERS_PATH) \
+ $(ICONVHDRDIR)
ifeq ($(PLATFORM), linux)
EXTRA_CPPFLAGS = -DLINUX -DRAPTOR_API -DNEW_STREAMING_API -DXP_UNIX
-------------- next part --------------
--- ../../work/deploy/src/plugin/share/jpiapi/IThreadManager.h.orig Tue Oct 19 21:04:44 2004
+++ ../../work/deploy/src/plugin/share/jpiapi/IThreadManager.h Wed Dec 14 21:45:30 2005
@@ -15,6 +15,7 @@
#define _ITHREADMANAGER_H_
#include "ISupports.h"
+#include "prthread.h"
class IRunnable;
//{EFD74BDF-99B7-11d6-9A76-00B0D0A18D51}
#define ITHREADMANAGER_IID \
@@ -26,10 +27,10 @@
JD_DEFINE_STATIC_IID_ACCESSOR(ITHREADMANAGER_IID);
JD_IMETHOD
- GetCurrentThread(JDUint32 *threadID) = 0;
+ GetCurrentThread(PRThread* *threadID) = 0;
JD_IMETHOD
- PostEvent(JDUint32 threadID, IRunnable* runnable, JDBool async) = 0;
+ PostEvent(PRThread *threadID, IRunnable* runnable, JDBool async) = 0;
};
////////////////////////////////////////////////////////////////////////////////
-------------- next part --------------
--- ../../work/deploy/src/plugin/share/adapter/ns7/CNS7Adapter_PluginServiceProvider.cpp.orig Tue Oct 19 21:04:28 2004
+++ ../../work/deploy/src/plugin/share/adapter/ns7/CNS7Adapter_PluginServiceProvider.cpp Wed Dec 14 20:38:12 2005
@@ -28,6 +28,7 @@
#include "nsILiveconnect.h"
#include "nsIObserverService.h"
#include "nsIJVMAuthTools.h"
+#include "nsIComponentManager.h"
#include "CNSAdapter_JVMManager.h"
#include "CNSAdapter_PluginManager.h"
#include "CNSAdapter_Liveconnect.h"
@@ -67,7 +68,9 @@
static NS_DEFINE_CID(kCPluginManagerCID, NS_PLUGINMANAGER_CID);
static NS_DEFINE_CID(kCJVMManagerCID, NS_JVMMANAGER_CID);
static NS_DEFINE_CID(kCLiveConnectCID, NS_CLIVECONNECT_CID);
+#ifdef NS_COMPONENTMANAGER_CID
static NS_DEFINE_IID(kComponentManagerCID, NS_COMPONENTMANAGER_CID);
+#endif
static NS_DEFINE_IID(kIObserverServiceIID, NS_IOBSERVERSERVICE_IID);
static NS_DEFINE_CID(kCObserverServiceCID, NS_OBSERVERSERVICE_CID);
static NS_DEFINE_CID(kIJVMAuthToolsCID, NS_JVMAUTHTOOLS_CID);
@@ -228,8 +231,10 @@
requestCID = kCPluginManagerCID;
else if (clsid.Equals(jCJVMManagerCID))
requestCID = kCJVMManagerCID;
+#ifdef NS_COMPONENT_MANAGER_CID
else if (clsid.Equals(jCLiveconnectCID))
requestCID = kComponentManagerCID;
+#endif
else
return JD_ERROR_FAILURE;
More information about the freebsd-java
mailing list