Again, sorry if I am repeating a previously posted suggestion, but this
worked for us.
Best of luck,
Marc
Marc Rossi
NationsBank
312.234.2933
mailto:marcr@crt.com
> -----Original Message-----
> From: George Smith [SMTP:gbs@swdc.stratus.com]
> Sent: Thursday, January 07, 1999 4:50 PM
> To: tkined@ibr.cs.tu-bs.de
> Subject: Re: [tkined] building scotty 2.1.10 on HP-UX 10.20 (fwd)
>
>
> For those following this saga - and I wan't to thank those who have
> sent
> suggestions - here is the latest...
>
> I got WDB, HP's port of gdb, from an HP web site and installed it.
> I got DDD, a GUI front end to gdb, and installed it and used them
> to get more data. BTW, using gdb with DDD is FANTASTIC!!! What a
> wonderful set of tools!!! Both with full source and work great.
>
> Anyway, I used them to run scotty and tracked execution to the call
> to shl_load(3x) which was trying to load the tnm shared library.
> It was fun to watch the execution of the Tcl Virtual Machine -
> with DDD it was easy to see the reading of the startup script,
> the compilation and then the execution - cool!
>
> Execution gets to the call to shl_load(3x) in file tclLoadShl.c
> which resides in the tcl8.0.4 source in directory tcl8.0.4/unix.
> The arguments to shl_load(3x) have the correct full path to the tnm
> shared lib. However, shl_load returns with a NULL handle and sets
> errno
> to ENOENT(2) with is the infamous "no such file or directory"! Yet,
> the full path being passed to shl_load is the correct full path and
> the
> file is there and chatr(1) reports it as being a shared lib, etc,
> etc....
>
> I will now investigate why the shl_load() is failing. Maybe the
> format of the
> tnm2.1.10.sl file is not be what shl_load() wants since if I
> substitute another
> shared lib file in place tnm2.1.10.sl, ie cp libtk8.0.4.sl to
> tnm2.1.10.sl,
> then shl_load fails not with ENOENT but with ENOSYM. If and when I
> get this
> one solved, I'll let the list know.
>
> Again, thanks to those sending suggestions: Ari Reen, P. Davan, Mark
> Newnham
> and Mullaparthi Chandrashekhar.
>
>
> George Smith said:
> > From: George Smith <gbs@swdc.stratus.com>
> > Subject: Re: [tkined] building scotty 2.1.10 on HP-UX 10.20 (fwd)
> > To: tkined@ibr.cs.tu-bs.de
> > Date: Wed, 6 Jan 1999 14:15:24 -0800 (PST)
> >
> > I've had some time to get back to this problem now and have more
> data.
> >
> > I had already tried Mullaparthi's idea before but tried several
> > values of SHLIB_PATH and it didn't help. Then I noted that the
> > chatr on tnm2.1.10.sl specifies that SHLIB_PATH is disabled anyway,
> > just as it is on libtk80.sl:
> >
> > $ chatr tnm2.1.10.sl
> > tnm2.1.10.sl:
> > shared library
> > shared library dynamic path search:
> > SHLIB_PATH disabled second
> > embedded path disabled first Not Defined
> > shared library list:
> > dynamic /usr/lib/libl.1
> > static branch prediction disabled
> > data page size: 4K
> > instruction page size: 4K
> >
> > So setting SHLIB_PATH won't help. I used chatr +s to enable
> SHLIB_PATH
> > and tried various values of SHLIB_PATH and it still had the same
> error
> > message (see first msg below).
> >
> > I tried an idea from Roy Terry: put some other shared library in
> place
> > of tnm2.1.10.sl; I used a copy of libtk80.sl and this is what
> happens:
> >
> > $ ./scotty
> > initialization failed: couldn't load file
> "/usr/public/lib/tnm2.1.10.sl": unresolved symbol name
> >
> > So this says to me that the "no such file or directory" error
> message
> > is not referring to /usr/public/lib/tnm2.1.10.sl but to something
> that
> > that library is trying to find.
> >
> > Any ideas as to what the sequence of events are here? The binary
> "scotty"
> > is loading "tnm2.1.10.sl" which then trys to load something else.
> There
> > is /usr/public/lib/tnm2.1.10/pkgIndex.tcl which is what points at
> > /usr/public/lib/tnm2.1.10.sl and there is
> > /usr/public/lib/tnm2.1.10/library/init.tcl which does some
> manipulation
> > of the auto_path and of a variable $tnm(library). Are there any
> users
> > of scotty 2.1.10 that have it working on HP-UX 10.20? Advice or
> pointers
> > appreciated. TIA.
> >
> >
> > Mullaparthi Chandrashekhar said:
> > > From - Mon Dec 28 09:35:20 1998
> > > Message-ID: <3677473A.523D08FF@hpsgns1.sgp.hp.com>
> > > Date: Wed, 16 Dec 1998 13:38:02 +0800
> > > From: Mullaparthi Chandrashekhar <chandru@hpsgns1.sgp.hp.com>
> > > Reply-To: chandru@hpsgns1.sgp.hp.com
> > > X-Mailer: Mozilla 4.5 [en] (WinNT; I)
> > > X-Accept-Language: en
> > > MIME-Version: 1.0
> > > To: "George B. Smith" <gbs@swdc.stratus.com>
> > > CC: tkined@ibr.cs.tu-bs.de
> > > Subject: Re: [tkined] building scotty 2.1.10 on HP-UX 10.20
> > > References: <199812160107.RAA08894@brando.swdc.stratus.com>
> > > Content-Type: text/plain; charset=us-ascii
> > > Content-Transfer-Encoding: 7bit
> > > X-UIDL: 4dc3ad6953f8cf35d0664dd4f6d1f0d2
> > > X-Mozilla-Status: 8011
> > >
> > > Hi!,
> > >
> > > You have to setup the SHLIB_PATH env var to point to this
> directory.
> > > Any application which used shared libraries, needs this env var to
> be
> > > set. It is the path in which the dynamic loader will search for
> shared
> > > libraries which an application uses. Try setting this env var to:
> > > export SHLIB_PATH=/usr/public/lib if you are using K-shell.
> > >
> > > You'll also have to add the standard search paths to this.
> > >
> > > hth,
> > > Chandru
> > >
> > > PS: Check out the manpage on dld.sl for more information.
> > >
> > > George Smith wrote:
> > > >
> > > > I downloaded the 2.1.10 version of the scotty package and am
> anxious
> > > > to get to use this very nice package; however, I am tripping
> over a
> > > > small problem. I have configured the package and it built fine.
> > > > However, when I try to run the scotty executable, it outputs
> this:
> > > >
> > > > $ ./scotty
> > > > initialization failed: couldn't load file
> "/usr/public/lib/tnm2.1.10.sl": no such file or directory
> > >
> >
> >
> > --
> > George B. Smith -=| Unix is user-friendly; it's
> just a
> > Ascend San Jose -=| little particular about
> which users
> > george.smith@ascend.com -=| it is friendly to.
> >
> > --
> > !! This message is brought to you via the `tkined & scotty' mailing
> list.
> > !! Please do not reply to this message to unsubscribe. To subscribe
> or
> > !! unsubscribe, send a mail message to
> <tkined-request@ibr.cs.tu-bs.de>.
> > !! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more
> information.
> >
>
>
> --
> George B. Smith -=| Unix is user-friendly; it's
> just a
> Ascend San Jose -=| little particular about which
> users
> george.smith@ascend.com -=| it is friendly to.
>
> --
> !! This message is brought to you via the `tkined & scotty' mailing
> list.
> !! Please do not reply to this message to unsubscribe. To subscribe or
> !! unsubscribe, send a mail message to
> <tkined-request@ibr.cs.tu-bs.de>.
> !! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more
> information.
-- !! This message is brought to you via the `tkined & scotty' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>. !! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.