Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* DU v4's libXt is missing a few things
@ 1998-06-04  4:00 Mark Bartelt
  1998-06-04  4:00 ` Mark Bartelt
  1998-06-04  4:00 ` Kaleb S. KEITHLEY
  0 siblings, 2 replies; 6+ messages in thread
From: Mark Bartelt @ 1998-06-04  4:00 UTC (permalink / raw)



The version of libXt.{a,so} that's packaged with v4.0[bcd] of
Digital UNIX is missing some routines that were present in v3:

	_XtActionInitialize
	_XtInitErrorHandling
	_XtR3StringToKeysym
	_XtRegisterWindow
	_XtUnregisterWindow

This is a rather major nuisance for those of us who need to run
executables that we don't have source code for, and which won't
run if libXt.so doesn't have these things.

For now, I've (temporarily) replaced the v4 libXt stuff with the
ones from v3.  But this seems like a bad hack.

Are these routines officially deprecated now?  And if so, what's
the officially-sanctioned equivalent?  (As I'm definitely not an
X11 wizard, I'd *love* to get a canned "old X routine xyz is now
replaced by new routine zyx, as follows:" sort of guide.  If we
had that, it would be easy to cobble together an "oldXkludge.so"
that would solve our problem.)

Or, are these routines missing because of some oversight out in
DECland?

Mark Bartelt                                         416/978-5619
Canadian Institute for                      mark@cita.utoronto.ca
Theoretical Astrophysics        http://www.cita.utoronto.ca/~mark

"Nur eine Waffel taugt!"    --    Parsifal, in an Eggo commercial



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: DU v4's libXt is missing a few things
  1998-06-04  4:00 DU v4's libXt is missing a few things Mark Bartelt
  1998-06-04  4:00 ` Mark Bartelt
@ 1998-06-04  4:00 ` Kaleb S. KEITHLEY
  1 sibling, 0 replies; 6+ messages in thread
From: Kaleb S. KEITHLEY @ 1998-06-04  4:00 UTC (permalink / raw)



Mark Bartelt wrote:
> 
> The version of libXt.{a,so} that's packaged with v4.0[bcd] of
> Digital UNIX is missing some routines that were present in v3:
> 
>         _XtActionInitialize
>         _XtInitErrorHandling
>         _XtR3StringToKeysym
>         _XtRegisterWindow
>         _XtUnregisterWindow

Functions with an '_' prefix are unspecified (i.e. undocumented)
internal functions and never should have been used by an application
program.


> This is a rather major nuisance for those of us who need to run
> executables that we don't have source code for, and which won't
> run if libXt.so doesn't have these things.

Which programs are these?

> 
> For now, I've (temporarily) replaced the v4 libXt stuff with the
> ones from v3.  But this seems like a bad hack.

Yup.

> Are these routines officially deprecated now?  

They were never officially sanctioned for public use; thus they did not
need to be deprecated -- officially or otherwise.

> And if so, what's
> the officially-sanctioned equivalent?  

R6 has XtRegisterDrawable and XtUnregisterDrawable which should suffice
for _XtRegisterWindow and _XtUnregisterWindow. There are no substitutes
for the other functions.


> (As I'm definitely not an
> X11 wizard, I'd *love* to get a canned "old X routine xyz is now
> replaced by new routine zyx, as follows:" sort of guide.  

Every release of X comes with a set of documentation. The Xt
specification includes a summary of the changes from one release to the
next; however you won't find the information you're looking for for
internal functions like _XtActionInitialize for the reasons I've
outlined above.

> If we
> had that, it would be easy to cobble together an "oldXkludge.so"
> that would solve our problem.)

No comment (retch, hack, gag, cough).

> 
> Or, are these routines missing because of some oversight out in
> DECland?

They're not missing, because for all practical purposes, they never
really existed. They never should have been used in the first place.

If some programmer has gone and done a symbol dump on libc.so and used
undocumented interfaces that he/she found, who should be blamed when the
next release changes or removes those interfaces? Hint: not Digital.


--
Kaleb

Remove #athome# from my email address in order to reply to me.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: DU v4's libXt is missing a few things
  1998-06-04  4:00 DU v4's libXt is missing a few things Mark Bartelt
@ 1998-06-04  4:00 ` Mark Bartelt
  1998-06-04  4:00   ` Alexander Kogan
                     ` (2 more replies)
  1998-06-04  4:00 ` Kaleb S. KEITHLEY
  1 sibling, 3 replies; 6+ messages in thread
From: Mark Bartelt @ 1998-06-04  4:00 UTC (permalink / raw)



[ 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)" ]



^ 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: 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

* 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

* 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

end of thread, other threads:[~1998-06-05  4:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-04  4:00 DU v4's libXt is missing a few things Mark Bartelt
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
1998-06-04  4:00 ` Kaleb S. KEITHLEY

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox