Re: [tkined] Dynamic Loading TNM fails on HP-UX 10

Cameron Laird (claird@Starbase.NeoSoft.COM)
Mon, 1 Sep 1997 07:22:52 -0500 (CDT)

From owner-tkined@ra.ibr.cs.tu-bs.de Mon Sep 1 03:10:48 1997
Date: Mon, 01 Sep 1997 08:43:59 +0200
From: Stefan Finzel <finzel@osn.de>
.
.
.
there is a problem in dynamic loading libtnm2.1.6.so on HP-UX 10.
It is NOT mentionend in the porting notes of scotty.

A similar problem and its solution is documented in the porting notes.
That problem is not meant! Due to a unresolved symbol libtnm2.1.6 could
not be loaded while the command shell scotty works fine. The problem
is specific to HP-UX 10, the same code works fine with Linux and SunOS.

I think James R. Schrock
(http://www.ibr.cs.tu-bs.de/projects/nm/tkined/marchive-1997/0837.html)
and other had the same problem.
.
.
.
#----------------------------------------------------------------------
couldn't load file "/opt/tcl-7.6/lib/tnm2.1.6.s1": unresolved symbol
name
#----------------------------------------------------------------------

It seems there are symbols bound to scotty the library tnm lacks.
Has anyone figured out the missing symbol(s)? How can I get
the unresolved symbol(s) name. I am using binutils and gcc2.7.2.2
and I am not familiar with HP-UX 10.10 nor gcc!
.
.
.
I can give a few hints. I no longer have access
to HP-UX, so, unless someone wants to offer me a
guest account, I can't now solve this completely.
I'll tell you everything I know, though.

When I worked with HP-UX, I always linked Scotty
dynamically, as an alternative to solving exact-
ly the symptom you report here. This problem
reflects on the HP-UX loader, which I rate brain-
damaged for complaining "unresolved symbol"
without specifying what the symbol is.

What do we do about it, though? First, if you
already have a working statically-linked config-
uration, compare it to the dynamically-linked
one with which you're working, to ensure that
the latter includes all the libraries that are,
in fact, necessary; I suspect that the missing
symbol is something obvious, like dlopen().

My next step would be to work through HP-UX
manuals to find utilities which report on the
link map of executables and shared-objects.
Start with chatr(1).

I hope this will be enough to settle the problem.
Again, I'd be happy to work with an HP-UX customer,
but I have no access to the OS myself now.

Cameron Laird http://starbase.neosoft.com/~bodi/nesi.html
Network Engineered Solutions +1 713 763 8366 pager
claird@NeoSoft.com +1 281 996 8546 FAX
+1 281 648 9864 voice

--
!! 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.