* Re: DU v4's libXt is missing a few things
1998-06-04 4:00 ` Mark Bartelt
@ 1998-06-04 4:00 ` Alexander Kogan
1998-06-05 4:00 ` SUMMARY: " Mark Bartelt
1998-06-05 4:00 ` Hans Schwengeler
2 siblings, 0 replies; 6+ messages in thread
From: Alexander Kogan @ 1998-06-04 4:00 UTC (permalink / raw)
To: mark
[-- Attachment #1: Type: text/plain, Size: 1880 bytes --]
You can try to fix this problem:
1. Create a directory with old (from DU3.x) libXt.so.
2. Write a wrapper script for each your application which
reguires old libXt, like that
# appl-wrapper-sript
#!/bin/csh -f
if ($?LD_LIBRARY_PATH) then
setenv LD_LIBRARY_PATH
/some/directory/with/old/libXt:${LD_LIBRARY_PATH}
else
setenv LD_LIBRARY_PATH /some/directory/with/old/libXt
endif
exec your.application
3. Launch your application through this script.
BTW, similar problem was with Netscape 3.1 some time ago.
Mark Bartelt wrote:
>
> [ me, earlier today ]
>
> ?? For now, I've (temporarily) replaced the v4 libXt stuff with the
> ?? ones from v3. But this seems like a bad hack.
>
> And, it turns out, worse than I realized at first: It has the rather
> unfortunate side-effect of preventing one from having a useful login
> session on the console (I'd previously tried running the application
> that needs those old v3 libXt routines via an rlogin session, DISPLAY
> pointing back to my own machine), since apparently the window manager
> (and/or the various things you can select from the session manager's
> "Applications" menu) require some of the new routines that exist only
> in the v4 libXt.
>
> So I've restored the v4 libXt, but that means we're dead in the water
> in terms of being able to run any applications that require old libXt
> routines which no longer exist in the v4 libXt. So any help that any
> of you might be able to offer would be greatly appreciated.
>
> Mark Bartelt 416/978-5619
> Canadian Institute for mark@cita.utoronto.ca
> Theoretical Astrophysics http://www.cita.utoronto.ca/~mark
>
> "Clothes not busy being worn are busy drying." -- Dylan, on laundry day
> [ singing "It's all right, ma (I'm only bleaching)" ]
[-- Attachment #2: Card for Kogan, Alexander --]
[-- Type: text/x-vcard, Size: 410 bytes --]
begin: vcard
fn: Alexander Kogan
n: Kogan;Alexander
org: Parametric Technology Corporation
adr: 128 Technology Drive;;;Waltham;MA;02154;USA
email;internet: kogan@ptc.com
title: Senior Software Engineer
tel;work: (781)398-5172
tel;fax: (881)398-5454
x-mozilla-cpt: ;0
x-mozilla-html: TRUE
version: 2.1
end: vcard
^ permalink raw reply [flat|nested] 6+ messages in thread* SUMMARY: DU v4's libXt is missing a few things
1998-06-04 4:00 ` Mark Bartelt
1998-06-04 4:00 ` Alexander Kogan
@ 1998-06-05 4:00 ` Mark Bartelt
1998-06-05 4:00 ` Hans Schwengeler
2 siblings, 0 replies; 6+ messages in thread
From: Mark Bartelt @ 1998-06-05 4:00 UTC (permalink / raw)
[ I sent this summary to the alpha-osf-managers mailing list yesterday, but
just now realized that I'd forgotten to post it to comp.unix.osf.osf1 and
comp.windows.x as well. Besides the people named in the "thanks to" area
below, various others have since forwarded similar replies. Merci! ]
Sigh. Yet again, one of those things that seems so *obvious* once someone
holds it up in front of your face and shows it to you. Next time I'll try
to *think* for a few more minutes before wasting everybody's time. Anyway,
the solution is essentially ...
(1) Copy the v3 libXt.so somewhere useful (I used /local/shlib).
(2) Create a trivial wrapper script, which is nothing but
#!/bin/sh
LD_LIBRARY_PATH=/local/shlib; export LD_LIBRARY_PATH
exec /our/real/application $*
Many thanks to ...
Sean O'Connell <sean@stat.Duke.EDU>, whose reply was the first to arrive.
Mike Iglesias <iglesias@draco.acs.uci.edu>, who made essentially the same
suggestion, and added that the problem may stem from the fact that DU v4
is now X11R6-ish, whereas v3 was X11R5.
Tom Blinn <tpb@zk3.dec.com>, who suspects that these old executables may
date back to X11R3 days.
... as well as to all the rest of you, whose replies may be in transit but
haven't reached my mailbox yet.
(And many embarrassments, for not having come up with this solution myself!)
Mark Bartelt 416/978-5619
Canadian Institute for mark@cita.utoronto.ca
Theoretical Astrophysics http://www.cita.utoronto.ca/~mark
"Sheep not busy being shorn are busy frying" -- Dylan, at a NZ lamb barbecue
[ singing "It's all right, ma (I'm only bleating)" ]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: DU v4's libXt is missing a few things
1998-06-04 4:00 ` Mark Bartelt
1998-06-04 4:00 ` Alexander Kogan
1998-06-05 4:00 ` SUMMARY: " Mark Bartelt
@ 1998-06-05 4:00 ` Hans Schwengeler
2 siblings, 0 replies; 6+ messages in thread
From: Hans Schwengeler @ 1998-06-05 4:00 UTC (permalink / raw)
In article <Eu1Gs2.Jt0@campus-news-reading.utoronto.ca>,
mark@cita.toronto.edu (Mark Bartelt) writes:
> [ me, earlier today ]
>
>>> For now, I've (temporarily) replaced the v4 libXt stuff with the
>>> ones from v3. But this seems like a bad hack.
>
> And, it turns out, worse than I realized at first: It has the rather
> unfortunate side-effect of preventing one from having a useful login
> session on the console (I'd previously tried running the application
> that needs those old v3 libXt routines via an rlogin session, DISPLAY
> pointing back to my own machine), since apparently the window manager
> (and/or the various things you can select from the session manager's
> "Applications" menu) require some of the new routines that exist only
> in the v4 libXt.
>
> So I've restored the v4 libXt, but that means we're dead in the water
> in terms of being able to run any applications that require old libXt
> routines which no longer exist in the v4 libXt. So any help that any
> of you might be able to offer would be greatly appreciated.
>
> Mark Bartelt 416/978-5619
> Canadian Institute for mark@cita.utoronto.ca
> Theoretical Astrophysics http://www.cita.utoronto.ca/~mark
>
> "Clothes not busy being worn are busy drying." -- Dylan, on laundry day
> [ singing "It's all right, ma (I'm only bleaching)" ]
Dear Mark,
I'd do someting along the lines of netscape. The directory
structure of netscape-3.04 looks like:
% dir /usr/local/bin/netscape-3.04
total 7806
drwxr-xr-x 3 bin bin 512 Nov 17 1997 ./
drwxr-xr-x 10 root system 22016 Jun 2 18:14 ../
-r--r--r-- 1 bin bin 12965 Oct 10 1997 LICENSE
-r--r--r-- 1 bin bin 222837 Oct 10 1997 Netscape.ad
-r--r--r-- 1 bin bin 9832 Oct 10 1997 README
-r--r--r-- 1 bin bin 4674 Oct 18 1994 XKeysymDB
-r--r--r-- 1 bin bin 737954 Oct 10 1997 java_301
-r--r--r-- 1 bin bin 614400 Nov 17 1997 libXt.so
-r--r--r-- 1 bin bin 40960 Oct 10 1997 libnullplugin.so
-r-xr-xr-x 1 bin bin 24576 Oct 10 1997 movemail*
drwxr-xr-x 2 bin bin 512 Oct 10 1997 movemail-src/
-r-xr-xr-x 1 bin bin 1304 Nov 17 1997 netscape*
-r-xr-xr-x 1 bin bin 6250496 Oct 10 1997 real-netscape*
The shell script 'netscape' looks like:
% more /usr/local/bin/netscape-3.04/netscape
#!/bin/ksh
NAVDIR=`dirname $0`
uname -a | grep -q V4.0
if [ $? -eq 0 ]
then
if [ -f $NAVDIR/libXt.so ]
then
export LD_LIBRARY_PATH=$NAVDIR
else
echo "WARNING: This script can't find the modified X Toolkit library"
echo "that is required for Java applets to function correctly."
echo "You must either ensure that this script resides in the"
echo "same directory as the modified libXt or modify this script"
echo "to set the LD_LIBRARY_PATH environment variable to point to the"
echo "alternate directory you've installed it in. See the"
echo "README.Digital file that came with this kit for more"
echo "information."
echo
echo "Invoking Netscape, but don't expect Java to work..."
echo
fi
fi
if [ -x $NAVDIR/real-netscape ]
then
exec $NAVDIR/real-netscape -name netscape $*
else
echo "ERROR: This script can't find the real-netscape binary."
echo "You must either ensure that this script resides in the same"
echo "directory as the real-netscape binary or modify this script"
echo "to invoke the real-netscape binary from whatever alternate"
echo "directory you've installed it in. See the README.Digital"
echo "file that came with this kit for more information."
exit 0
fi
The real exectuable netscape is (re-)named 'real-netscape'.
I.e. netscape uses the "local" libXt.so library and the system library
(in /usr/lib) is not used.
Yours, hs.
--
===============================================================================
Hans Schwengeler DECNET/SPAN: 20579::48130::SCHWENGELER
Astronomical Institute INTERNET: schweng@astro.unibas.ch
University of Basel schwengeler@urz.unibas.ch
Venusstrasse 7
CH-4102 Binningen PHONE: +41 61 20 55 422
Switzerland FAX: +41 61 20 55 455
===============================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread