Operating System - HP-UX
1833757 Members
2722 Online
110063 Solutions
New Discussion

Unresolved symbol: vsnprintf

 
J Young_2
New Member

Unresolved symbol: vsnprintf

I am trying to start a program and got the following msg -
/usr/lib/dld.sl Unresolved symbol: vsnprintf (code) from

OS - HP-UX 10.2
I just installed patches for aC++ runtime (aCC A.01.3)
6 REPLIES 6
Eugeny Brychkov
Honored Contributor

Re: Unresolved symbol: vsnprintf

Usually this means that your C source code or one (or more) of object files you try to link into executable references this function as code (jump to it and execute). There's no its body (code) in all object files you give for linking, and linker can't find it in default library.
Please check if you missed any object file(s) to add to link list (or remove unneeded), check your source code for errors.
Eugeny
Adam J Markiewicz
Trusted Contributor

Re: Unresolved symbol: vsnprintf

Just as was said, but...

vsnprintf() is a part of standart library, so I don't think that any object is missing. The change was made (probarly) by this patch. Check the description of vsnprintf() in manuals if this dos not requre any special linking now.
I do everything perfectly, except from my mistakes
Jerome Baron
Respected Contributor

Re: Unresolved symbol: vsnprintf

Hi,

vsnprintf is in libc. You can check if it's present on your system with :
$ nm /usr/lib/libc.1 |grep vsnprintf
_vsnprintf | 820136|uext |stub |
_vsnprintf | 1187296|extern|entry |
_vsnprintf | 1187344|extern|code |$CODE$
vsnprintf | 1187320|extern|entry |
vsnprintf | 1187344|extern|code |$CODE$

If you don't have this output, update your libc.

Regards,
Jerome
Emiel van Grinsven
Valued Contributor

Re: Unresolved symbol: vsnprintf

Hi,

Did you check if there are any special instructions with these patches?
Can you provide me with the names of the patches?
Alex Vargas
New Member

Re: Unresolved symbol: vsnprintf

How do I update libc? I did an nm on the libc and I appear to be missing much of the baove output:

# uname -a
HP-UX ebochpux B.10.20 A 9000/778 2014848671 two-user license
# nm /usr/lib/libc.1 |grep vsnprintf
_vsnprintf | 827616|uext |stub |
_vsnprintf | 1147816|extern|entry |
_vsnprintf | 1147840|extern|code |$CODE$

Any help is appreciated.
Massimo Bianchi
Honored Contributor

Re: Unresolved symbol: vsnprintf

Hi,
just found an interesting document:

###############
vsnprintf does not have a specific header file in HP-UX 10.20.
vsnprintf support begins at HP-UX 10.30. This information is documented
in the 10.30 release notes.

Although vsnprintf exists in the 10.20 version of libc, it is not
documented, and not present in header files.
#################

So i guess your program might be custom....
which patch did you installed ?

have you a copy of your libc BEFORE patching, to check with the commands suggested by the others ?

May be you should think about a replacement for the libc... i will never suggest to remove a patch.

Massimo