cancel
Showing results for 
Search instead for 
Did you mean: 

enhgetpublickey_ptr

 
Highlighted
Respected Contributor

enhgetpublickey_ptr

I am running a program on HP-UX 11.11 and am getting the errors below. These symbols appear to be in libnsl.1 but are unresolved.
Where can I get them resolved?
/usr/lib/dld.sl: Unresolved symbol: enhgetpublickey_ptr (storage)
/usr/lib/dld.sl: Unresolved symbol: enhgetsecretkey_ptr (storage)
5 REPLIES 5
Highlighted
Honored Contributor

Re: enhgetpublickey_ptr

> [...] These symbols appear to be in
> libnsl.1 but are unresolved. [...]

Evidence? These don't sound to me like Name
Service Library functions.

http://linux.about.com/cs/linux101/g/libnsl.htm

> Where can I get them resolved?

In your own code? A Google search for these
things found this Forum thread. Only. I
know nothing, but if they were part of some
popular run-time library, then I'd expect
Google to find them in more places than this
one.
Highlighted
Respected Contributor

Re: enhgetpublickey_ptr

ssihp14:schem300:/usr/lib> nm libnsl.1 | grep enhget
enhgetpublickey_ptr |1073788036|undef |common |$BSS$
enhgetsecretkey_ptr |1073797672|undef |common |$BSS$
Highlighted
Honored Contributor

Re: enhgetpublickey_ptr

> ssihp14:schem300:/usr/lib> nm libnsl.1 | grep enhget
> enhgetpublickey_ptr |1073788036|undef |common |$BSS$
> enhgetsecretkey_ptr |1073797672|undef |common |$BSS$

Hmmm. I still know nothing, but around here
(on its ".a" friend):

dy # uname -a
HP-UX dy B.11.11 U 9000/785 2012616114 unlimited-user license

dy # nm /usr/lib/libnsl.a | grep enhget
enhgetpublickey_ptr | 4|sdef |common |$SHORTBSS$
enhgetsecretkey_ptr | 4|sdef |common |$SHORTBSS$

If I knew what "sdef" ("secondary
definition") meant, I might be dangerous.

What is this "a program", and how was it
built/linked? My dim recollection of
building programs like wget (which must be
doing name resolution) on HP-UX doesn't
include any explicit reference to any libnsl
things.
Highlighted
Acclaimed Contributor

Re: enhgetpublickey_ptr

>These symbols appear to be in libnsl.1 but are unresolved.
dld.sl: Unresolved symbol: enhgetpublickey_ptr (storage)
dld.sl: Unresolved symbol: enhgetsecretkey_ptr (storage)

These symbols are exported from libnsl.1 on my 11.11 system. They aren't on 11.23, perhaps because I have a newer patch on 11.11, PHNE_37568?
PHNE_39167 is the recommended patch.

>nm libnsl.1 | grep enhget
enhgetpublickey_ptr ||undef |common |$BSS$
enhgetsecretkey_ptr ||undef |common |$BSS$

It appears nm(1) is broken. It should show these are definitions. But nm is the wrong tool to use on shlibs. The proper tool is:
odump -slexport libnsl.1 | grep enhget

>Steven: If I knew what "secondary
definition" meant

It's like a weak symbol.
Highlighted
Acclaimed Contributor

Re: enhgetpublickey_ptr

>Steven: These don't sound to me like Name
Service Library functions.

Because they are data symbols, most likely "internal".

>A Google search for these things found this Forum thread. if they were part of some
popular run-time library

google wouldn't find these "internal" symbols unless there were problems or it walked the sources.