From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,820d7a1cd71013db X-Google-Attributes: gid1164f8,public From: iglesias@draco.acs.uci.edu (Mike Iglesias) Subject: Re: Binary compatibility between OS revisions Date: 1996/10/11 Message-ID: <53lp1u$giu@news.service.uci.edu>#1/1 X-Deja-AN: 188803376 references: <52auc8$n8s@lyra.csx.cam.ac.uk> <3253BE0D.167E@zk3.dec.com> organization: University of California, Irvine newsgroups: comp.sys.dec In article , Mark C Favas - SysAd wrote: >One case of NON-upwards compatability I've come across involves Netscape >Navigator Gold, Version 3.0 (Version 3.0-96241, to be specific, but the >problem occurs with all Version 3's I've tried, including the betas). Netscape >runs fine on a Digital Unix V4.0 (Rev 386) system except when it comes to run >Java applets, where it silently fails (no core dump either). Bringing up the >Java console window brings up the basic window, but without horizontal or >vertical scrollbars, or any text or buttons. The same binary runs properly on >a DU 3.2 system, either displaying there or displaying on the 4.0 system. This happens because Netscape is trying to do something behind the back of the X code, and that code changed when DU 4.0 went to X11R6. The note below details what the "problem" is and how to get around it. -- Mike Iglesias Internet: iglesias@draco.acs.uci.edu University of California, Irvine phone: (714) 824-6926 Office of Academic Computing FAX: (714) 824-2069 ================================================================================ We've discovered that the Java problem is the result of Navigator's reliance on some internal implementation details of the X Toolkit library (libXt) that changed between X11R5 and X11R6. X11R5, which is included with Digital Unix v3.2C, provided a libXt that utilizes the C-RTL routine select() for handling IO between the client and the X server. Navigator depends upon being able to intercept this call so that it can switch between the various threads it maintains. With X11R6, which is included with Digital Unix v4.0, vendors can optionally compile libXt to use the C-RTL call poll() instead of select() for client/server IO. The default for Digital Unix and all other operating systems that support the poll() call is to build libXt with this option turned on, since using poll() instead of select() can enhance performance significantly. Unfortunately, Netscape has not yet modified Navigator to work properly with a libXt that uses poll() instead of select(), with the result that secondary threads (like those used to run Java applets and the Java console) never execute. We are currently working with Netscape to get them to fix this bug, which will affect most other Unix vendors as well when they move to X11R6 and ship a libXt built in the recommended way. Meanwhile, the workaround mentioned can be used. ==============================================================================i Solution -------- 1) As root, create directories /usr/3.2D and then /usr/3.2D/shlib 2) Copy Digital 3.2D UNIX files /usr/shlib/libX11.so /usr/shlib/libXext.so /usr/shlib/libXm.so /usr/shlib/libXmu.so /usr/shlib/libXt.so into /usr/3,2D/shlib DO NOT replace the 4.0 libraries with these! Change group and ownership to bin ie. chown bin:bin *.* 3) Exit as root and set the environmental variable LD_LIBRARY_PATH to point to these new shared libraries ie. LD_LIBRARY_PATH=/usr/3.2d/shlib Netscape can now load secondary threads to run java applets etc.