RE: jdk-1.5 update to _3 does not work under freebsd 6 stable

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

RE: jdk-1.5 update to _3 does not work under freebsd 6 stable

Melvyn Sopacua-4
Hi,

I'm currently working on jdk15, to get it working with the reworked Mozilla
1.5 plugin mess.

Since every solution so far, seems to generate an error downstream somewhere,
I thought I'd post my work so far and see if this makes any sense or that I
should stop right here, since it'll cause major problems even if build
succeeds. My C++ isn't that good to begin with, so I haven't got a clue if
matching the variable types and API changes is getting me anywhere or that
complete recoding of the webplugin is required.

The patches follow the path conventions from the patches used in the files/
dir under the port.

PS: any way to disable the forced rebuilding of api-docs, so that portinstall
-w finishes a bit sooner? IE:
>>> Recursively making docs docs @ Wed Dec 14 21:54:51 CET 2005 ...
gmake[2]: Entering directory `/work/usr/ports/java/jdk15/work/j2se/make/docs'
rm -f -r /work/usr/ports/java/jdk15/work/control/build/bsd-i586/doc/api

--
Melvyn Sopacua
[hidden email]

FreeBSD 6.0-STABLE
Qt: 3.3.5
KDE: 3.4.3

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: jdk-1.5 update to _3 does not work under freebsd 6 stable

Melvyn Sopacua
Patches properly attached now.

(No succesfull build yet though)
--
Melvyn Sopacua
[hidden email]

FreeBSD 6.0-STABLE
Qt: 3.3.5
KDE: 3.4.3

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"

patch-deploy::make::plugin::adapter::ns7-adapter::Makefile.txt (887 bytes) Download Attachment
patch-deploy::src::plugin::share::adapter::common::CNSAdapter_JVMManager.txt (1K) Download Attachment
patch-deploy::make::plugin::nscore::unix::Makefile.txt (1K) Download Attachment
patch-deploy::src::plugin::share::jpiapi::IThreadManager.h.txt (833 bytes) Download Attachment
patch-deploy::src::plugin::share::adapter::ns7::CNS7Adapter_PluginServiceProvider.cpp.txt (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [fixed] jdk-1.5 update to _3 does not work under freebsd 6 stable

Melvyn Sopacua-4
Hi,

attached are all patches that resulted in a succesful build for me and firefox
showing in about:plugins:
Java(TM) Plug-in 1.5.0-p2-root_14_dec_2005_21_49

    File name: libjavaplugin_oji.so
    Java(TM) Plug-in 1.5.0


They might include bits of patches already in the port as some files already
had a .orig.

In short - I took the shortest route to getting the plugin implementation to
accept PRThread * in place of JDUint32/nsPluginThread, fixed an include patch
for moved headers and disabled the obsoleted NS_COMPONENT_MANAGER_CID with an
#ifdef.
--
Melvyn Sopacua
[hidden email]

FreeBSD 6.0-STABLE
Qt: 3.3.5
KDE: 3.4.3

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"

patch-deploy::make::plugin::nscore::unix::Makefile.txt (1K) Download Attachment
patch-deploy::src::plugin::share::adapter::ns7::CNS7Adapter_PluginServiceProvider.cpp.txt (1K) Download Attachment
patch-deploy::src::plugin::share::adapter::common::CNSAdapter_JVMManager.txt (1K) Download Attachment
patch-deploy::make::plugin::adapter::ns7-adapter::Makefile.txt (887 bytes) Download Attachment
patch-deploy::src::plugin::share::jpiapi::IThreadManager.h.txt (823 bytes) Download Attachment
patch-deploy::src::plugin::solaris::nscore::QueueRunnable.cpp.txt (540 bytes) Download Attachment
patch-deploy::src::plugin::solaris::nscore::JavaVM5.cpp.txt (2K) Download Attachment
patch-deploy::src::plugin::solaris::nscore::QueueRunnable.h.txt (713 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [fixed] jdk-1.5 update to _3 does not work under freebsd 6 stable

Beecher Rintoul-2
On Wednesday 14 December 2005 03:20 pm, Melvyn Sopacua wrote:

> Hi,
>
> attached are all patches that resulted in a succesful build for me and
> firefox showing in about:plugins:
> Java(TM) Plug-in 1.5.0-p2-root_14_dec_2005_21_49
>
>     File name: libjavaplugin_oji.so
>     Java(TM) Plug-in 1.5.0
>
>
> They might include bits of patches already in the port as some files
> already had a .orig.
>
> In short - I took the shortest route to getting the plugin implementation
> to accept PRThread * in place of JDUint32/nsPluginThread, fixed an include
> patch for moved headers and disabled the obsoleted NS_COMPONENT_MANAGER_CID
> with an #ifdef.
Thanks for your speedy work fixing this port. I added your patches to the port
and got this error message on trying a make:

===>  Applying FreeBSD patches for jdk-1.5.0p2_3
2 out of 2 hunks failed--saving rejects to Makefile.rej
=> Patch patch-deploy::make::plugin::adapter::ns7-adapter::Makefile.txt failed
to apply cleanly.
=> Patch(es) patch-control::common::Defs-bsd.gmk
patch-deploy::common::Defs-bsd.gmk
patch-deploy::common::DeployRules-solaris.gmk applied cleanly.
*** Error code 1

Stop in /usr/ports/java/jdk15.

Is there anything I can do to get this working?

uname: FreeBSD stargate.akparadise.com 7.0-CURRENT FreeBSD 7.0-CURRENT #30:
Wed Dec 14 12:14:39 AKST 2005    
[hidden email]:/usr/obj/usr/src/sys/STARGATE  i386


Beech

--

---------------------------------------------------------------------------------------
Beech Rintoul - System Administrator - [hidden email]
/"\   ASCII Ribbon Campaign  | NorthWind Communications
\ / - NO HTML/RTF in e-mail  | 201 East 9th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - Please visit Alaska Paradise - http://akparadise.byethost33.com
---------------------------------------------------------------------------------------












_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: [fixed] jdk-1.5 update to _3 does not work under freebsd 6 stable

Beecher Rintoul-2
On Wednesday 14 December 2005 11:09 pm, Beecher Rintoul wrote:

> On Wednesday 14 December 2005 03:20 pm, Melvyn Sopacua wrote:
> > Hi,
> >
> > attached are all patches that resulted in a succesful build for me and
> > firefox showing in about:plugins:
> > Java(TM) Plug-in 1.5.0-p2-root_14_dec_2005_21_49
> >
> >     File name: libjavaplugin_oji.so
> >     Java(TM) Plug-in 1.5.0
> >
> >
> > They might include bits of patches already in the port as some files
> > already had a .orig.
> >
> > In short - I took the shortest route to getting the plugin implementation
> > to accept PRThread * in place of JDUint32/nsPluginThread, fixed an
> > include patch for moved headers and disabled the obsoleted
> > NS_COMPONENT_MANAGER_CID with an #ifdef.
>
> Thanks for your speedy work fixing this port. I added your patches to the
> port and got this error message on trying a make:
>
> ===>  Applying FreeBSD patches for jdk-1.5.0p2_3
> 2 out of 2 hunks failed--saving rejects to Makefile.rej
> => Patch patch-deploy::make::plugin::adapter::ns7-adapter::Makefile.txt
> failed to apply cleanly.
> => Patch(es) patch-control::common::Defs-bsd.gmk
> patch-deploy::common::Defs-bsd.gmk
> patch-deploy::common::DeployRules-solaris.gmk applied cleanly.
> *** Error code 1
>
> Stop in /usr/ports/java/jdk15.
>
> Is there anything I can do to get this working?
>
> uname: FreeBSD stargate.akparadise.com 7.0-CURRENT FreeBSD 7.0-CURRENT #30:
> Wed Dec 14 12:14:39 AKST 2005
> [hidden email]:/usr/obj/usr/src/sys/STARGATE  i386
>
>
> Beech

Sorry, I forgot the makefile.rej:

***************
*** 82,91 ****
  $(subst \,/, $(MOZILLA_HEADERS_PATH)/$(BROWSER)/nspr) \
  $(subst \,/, $(MOZILLA_HEADERS_PATH)/$(BROWSER)/oji) \
  $(subst \,/, $(MOZILLA_HEADERS_PATH)/$(BROWSER)/plugin) \
- $(subst \,/, $(MOZILLA_HEADERS_PATH)/$(BROWSER)/xpcom)
    endif
  X11HDRDIR = /usr/X11R6/include
  ICONVHDRDIR = /usr/local/include
  else
  MOZHDRDIR = $(subst \,/,$(MOZILLA_HEADERS_PATH)/mozilla_headers_ns7) \
  $(subst \,/, $(MOZILLA_HEADERS_PATH)/mozilla_headers_ns7/nspr)
--- 82,93 ----
  $(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)/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,115 ****
      $(COREDIR) \
      $(INTERFACESDIR) \
      $(MOZHDRDIR) \
      $(X11HDRDIR) \
      $(ICONVHDRDIR)
 
--- 112,118 ----
      $(COREDIR) \
      $(INTERFACESDIR) \
      $(MOZHDRDIR) \
+     $(NSPRHDRDIR) \
      $(X11HDRDIR) \
      $(ICONVHDRDIR)
 

--

---------------------------------------------------------------------------------------
Beech Rintoul - System Administrator - [hidden email]
/"\   ASCII Ribbon Campaign  | NorthWind Communications
\ / - NO HTML/RTF in e-mail  | 201 East 9th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - Please visit Alaska Paradise - http://akparadise.byethost33.com
---------------------------------------------------------------------------------------











_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: [fixed] jdk-1.5 update to _3 does not work under freebsd 6 stable

Dominic Fandrey
In reply to this post by Melvyn Sopacua-4
You people are amazing! I can't wait to have it in the ports.

signature.asc (194 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [fixed] jdk-1.5 update to _3 does not work under freebsd 6 stable

Melvyn Sopacua-4
In reply to this post by Beecher Rintoul-2
On Thursday 15 December 2005 09:33, Beecher Rintoul wrote:

> On Wednesday 14 December 2005 11:09 pm, Beecher Rintoul wrote:
> > On Wednesday 14 December 2005 03:20 pm, Melvyn Sopacua wrote:
> > > Hi,
> > >
> > > attached are all patches that resulted in a succesful build for me and
> > > firefox showing in about:plugins:
> > > Java(TM) Plug-in 1.5.0-p2-root_14_dec_2005_21_49
> > >
> > >     File name: libjavaplugin_oji.so
> > >     Java(TM) Plug-in 1.5.0
> > >
> > >
> > > They might include bits of patches already in the port as some files
> > > already had a .orig.
> > >
> > > In short - I took the shortest route to getting the plugin
> > > implementation to accept PRThread * in place of
> > > JDUint32/nsPluginThread, fixed an include patch for moved headers and
> > > disabled the obsoleted
> > > NS_COMPONENT_MANAGER_CID with an #ifdef.
> >
> > Thanks for your speedy work fixing this port. I added your patches to the
> > port and got this error message on trying a make:
> >
> > ===>  Applying FreeBSD patches for jdk-1.5.0p2_3
> > 2 out of 2 hunks failed--saving rejects to Makefile.rej
> > => Patch patch-deploy::make::plugin::adapter::ns7-adapter::Makefile.txt
> > failed to apply cleanly.
> > => Patch(es) patch-control::common::Defs-bsd.gmk
> > patch-deploy::common::Defs-bsd.gmk
> > patch-deploy::common::DeployRules-solaris.gmk applied cleanly.
> > *** Error code 1

Ah. That is because there is already a patch-deploy...ns7-adapter::Makefile in
files/. The mailinglist only accepts text/plain for attachments, so I renamed
the files to .txt to reflect that.

Rename my .txt one or remove the one already in files/ should fix the problem.

It's a bit trickier for the port though, since pre-1.5 mozilla's will fail
with these in, so there should be a MOZILLA_VER check and these patches
applied seperately via EXTRA_PATCHES. I'll leave that to Greg -:)
--
Melvyn Sopacua
[hidden email]

FreeBSD 6.0-STABLE
Qt: 3.3.5
KDE: 3.4.3
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: [fixed] jdk-1.5 update to _3 does not work under freebsd 6 stable

Melvyn Sopacua
In reply to this post by Melvyn Sopacua-4
On Thursday 15 December 2005 01:20, Melvyn Sopacua wrote:

> Hi,
>
> attached are all patches that resulted in a succesful build for me and
> firefox showing in about:plugins:
> Java(TM) Plug-in 1.5.0-p2-root_14_dec_2005_21_49
>
>     File name: libjavaplugin_oji.so
>     Java(TM) Plug-in 1.5.0
>
>

Hmm, did anyone ever get runescape (http://www.runescape.com/) working
correctly, cause I just tried signing up and it doesn't look good:
(gdb) where
#0  0x28a811ef in pthread_testcancel () from /usr/lib/libpthread.so.2
#1  0x28a70646 in sigaction () from /usr/lib/libpthread.so.2
#2  0x28a6a6c5 in pthread_kill () from /usr/lib/libpthread.so.2
#3  0x28a6a0d2 in raise () from /usr/lib/libpthread.so.2
#4  0x08057ffb in nsProfileLock::FatalSignalHandler ()
#5  0x28a6e7f6 in sigaction () from /usr/lib/libpthread.so.2
#6  0x28a6fc91 in sigaction () from /usr/lib/libpthread.so.2
#7  0x28a70585 in sigaction () from /usr/lib/libpthread.so.2
#8  0x28a7958a in pthread_mutexattr_init () from /usr/lib/libpthread.so.2
#9  0x28a81880 in pthread_testcancel () from /usr/lib/libpthread.so.2
#10 0x28a6a6d6 in pthread_kill () from /usr/lib/libpthread.so.2
#11 0x28a6a0d2 in raise () from /usr/lib/libpthread.so.2
#12 0x28b33d44 in abort () from /lib/libc.so.6
#13 0x289f60bf in __gnu_cxx::__verbose_terminate_handler ()
from /usr/lib/libstdc++.so.5
#14 0x289fa24c in __cxxabiv1::__terminate () from /usr/lib/libstdc++.so.5
#15 0x289fa284 in std::terminate () from /usr/lib/libstdc++.so.5
#16 0x28a32d4f in __cxa_pure_virtual () from /usr/lib/libstdc++.so.5
#17 0x2a1e97fc in QueueRunnable::waitOnPipe ()
   from /usr/local/jdk1.5.0/jre/lib/i386/libjavaplugin_nscp.so
#18 0x2a1e989d in QueueRunnable::threadEntry ()
   from /usr/local/jdk1.5.0/jre/lib/i386/libjavaplugin_nscp.so
#19 0x281eaf91 in _pt_root () from /usr/local/lib/libplds4.so.1
#20 0x28a72149 in pthread_create () from /usr/lib/libpthread.so.2
#21 0x28b1f367 in _ctx_start () from /lib/libc.so.6

--
Melvyn Sopacua
[hidden email]

FreeBSD 6.0-STABLE
Qt: 3.3.5
KDE: 3.4.3
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: [fixed] jdk-1.5 update to _3 does not work under freebsd 6 stable

Greg Lewis-2
In reply to this post by Melvyn Sopacua-4
Hi Melvyn,

On Thu, Dec 15, 2005 at 01:20:01AM +0100, Melvyn Sopacua wrote:

> attached are all patches that resulted in a succesful build for me and firefox
> showing in about:plugins:
> Java(TM) Plug-in 1.5.0-p2-root_14_dec_2005_21_49
>
>     File name: libjavaplugin_oji.so
>     Java(TM) Plug-in 1.5.0
>
> They might include bits of patches already in the port as some files already
> had a .orig.
>
> In short - I took the shortest route to getting the plugin implementation to
> accept PRThread * in place of JDUint32/nsPluginThread, fixed an include patch
> for moved headers and disabled the obsoleted NS_COMPONENT_MANAGER_CID with an
> #ifdef.

Thanks!  Have you successfully tested the plugin with some of the example
applets that come with the JDK?  Also, I wasn't sure that disabling
NS_COMPONENT_MANAGER_CID was the right thing to do.  It looked like that
may mean the plugin doesn't do the right thing with LiveConnect.  Comments?

--
Greg Lewis                          Email   : [hidden email]
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : [hidden email]
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: [fixed] jdk-1.5 update to _3 does not work under freebsd 6 stable

Melvyn Sopacua-4
On Thursday 15 December 2005 19:15, Greg Lewis wrote:

> Hi Melvyn,
>
> On Thu, Dec 15, 2005 at 01:20:01AM +0100, Melvyn Sopacua wrote:
> > attached are all patches that resulted in a succesful build for me and
> > firefox showing in about:plugins:
> > Java(TM) Plug-in 1.5.0-p2-root_14_dec_2005_21_49
> >
> >     File name: libjavaplugin_oji.so
> >     Java(TM) Plug-in 1.5.0
> >
> > They might include bits of patches already in the port as some files
> > already had a .orig.
> >
> > In short - I took the shortest route to getting the plugin implementation
> > to accept PRThread * in place of JDUint32/nsPluginThread, fixed an
> > include patch for moved headers and disabled the obsoleted
> > NS_COMPONENT_MANAGER_CID with an #ifdef.
>
> Thanks!  Have you successfully tested the plugin with some of the example
> applets that come with the JDK?

Nope, will do later today. I don't have much faith in it though. It's very
unstable at the moment (see some later comments - runescape crash for one in
QueueRunnable, which is the place where you'd expect any problems since that
puts the thread id finally to java).

> Also, I wasn't sure that disabling
> NS_COMPONENT_MANAGER_CID was the right thing to do.  It looked like that
> may mean the plugin doesn't do the right thing with LiveConnect.  Comments?

Yeah, was thinking to copy NS_COMPONENTMANAGER_CID from some old archives I
found, but I think LiveConnect through the component manager has gone.
This is the old CID as shown here:
http://rpms.alerque.com/BUILD/mozilla/xpcom/components/nsComponentManagerUtils.h

91775d60-d5dc-11d2-92fb-00e09805570f

Now let's try this:
$ find /usr/X11R6/include/firefox -type f -print |xargs grep '91775d6' |wc -l
        0

So, I don't think it'll ever get that CID in the first place and if it does,
it'll return JD_ERROR, as that is the only place I found a hook for it.
--
Melvyn Sopacua
[hidden email]

FreeBSD 6.0-STABLE
Qt: 3.3.5

Wiki: the next gen programmer's excuse for crappy docs
KDE: 3.4.3
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: [fixed] jdk-1.5 update to _3 does not work under freebsd 6 stable

Melvyn Sopacua
On Thursday 15 December 2005 19:54, Melvyn Sopacua wrote:

> > Thanks!  Have you successfully tested the plugin with some of the example
> > applets that come with the JDK?
>
> Nope, will do later today. I don't have much faith in it though. It's very
> unstable at the moment (see some later comments - runescape crash for one
> in QueueRunnable, which is the place where you'd expect any problems since
> that puts the thread id finally to java).

Sorry for the late response.
I've tested the plugin demos and they all have the same problem:
#17 0x2a1247fc in QueueRunnable::waitOnPipe ()
   from /usr/local/jdk1.5.0/jre/lib/i386/libjavaplugin_nscp.so
#18 0x2a12489d in QueueRunnable::threadEntry ()
   from /usr/local/jdk1.5.0/jre/lib/i386/libjavaplugin_nscp.so

Right now, I think the best solution is to mark the port broken with
MOZILLA_VER=15 until this is properly resolved.

1.4.2p8_2 (experimental patchset) works correctly.
--
Melvyn Sopacua
[hidden email]

FreeBSD 6.0-STABLE
Qt: 3.3.5
KDE: 3.4.3
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"