Operating System - HP-UX
1833723 Members
3651 Online
110063 Solutions
New Discussion

/usr/lib/dld.sl: Unresolved symbol: getaddrinfo (code) from ../lib/mylibfile.so

 
Sanjay Sutar
Frequent Advisor

/usr/lib/dld.sl: Unresolved symbol: getaddrinfo (code) from ../lib/mylibfile.so

Hi Everybody,
I am getting this error when I run my application on HPUX machine

/usr/lib/dld.sl: Unresolved symbol: getaddrinfo (code) from ../lib/mylibfile.so

here is the output of uname -a
HP-UX tech40 B.11.11 U 9000/800 536706587 unlimited-user license

And here is the output of swlist;

# Initializing...
# Contacting target "tech40"...
#
# Target: tech40:/
#

# Bundle(s):
#
BUNDLE B.11.11 Patch Bundle
BUNDLE11i B.11.11.0102.2 Required Patch Bundle for HP-UX 11i, February 2001
CDE-English B.11.11 English CDE Environment
CDE-Korean B.11.11 Korean CDE Environment
FDDI-00 B.11.11.01 PCI FDDI;Supptd HW=A3739A/A3739B;SW=J3626AA
FibrChanl-00 B.11.11.06 PCI/HSC FibreChannel;Supptd HW=A6684A,A6685A,A5158A
GigEther-00 B.11.11.14 PCI/HSC GigEther;Supptd HW=A4926A/A4929A/A4924A/A4925A;SW=J1642AA
HPUX11i-OE B.11.11.0106 HP-UX 11i Operating Environment Component
HPUXBase64 B.11.11 HP-UX 64-bit Base OS
HPUXBaseAux B.11.11.0106 HP-UX Base OS Auxiliary
HWEnable11i B.11.11.0106.8 Hardware Enablement Patches for HP-UX 11i, June 2001
OnlineDiag B.11.11.03.08 HPUX 11.11 Support Tools Bundle, Jun 2001
RAID-00 B.11.11.01 PCI RAID; Supptd HW=A5856A
T1471AA A.04.40.006 HP-UX Secure Shell
#
# Product(s) not contained in a Bundle:
#
PHCO_27120 1.0 umount(1M) cumulative patch
PHCO_33205 1.0 mountall, Dev IDs enabler, iSCSI support
PHCO_33282 1.0 pthread library cumulative patch
PHCO_34214 1.0 libpam_unix cumulative patch
PHCO_35313 1.0 LVM commands cumulative patch
PHKL_25652 1.0 thread nostop for NFS, rlimit max value fix
PHKL_27686 1.0 MO 4k sector size;FIFO;Event Port;perf;shmem
PHKL_28122 1.0 signals,threads enhancement,Psets Enablement
PHKL_29243 1.0 vPar enablement, cumulative patch
PHKL_29704 1.0 Psets Enablement, SCHED_NOAGE, FSS
PHKL_30034 1.0 Psets Enablement Patch; FSS cap
PHKL_30398 1.0 KI FSS ID and KI_rfscall
PHKL_30542 1.0 eventport (/dev/poll) pseudo driver
PHKL_30607 1.0 VxVM,EMC,PM,vPar,slpq,KRS,DUMP,LVM,VM,DaS,IF
PHKL_33367 1.0 CacheFS umount device busy
PHKL_33408 1.0 RTSCHED performance enablement patch
PHKL_33436 1.0 select_enh tunable;Buffer Cache Perf
PHKL_34100 1.0 pstat data page fault,new STREAMS functions
PHKL_34161 1.0 Fibre Channel Mass Storage Patch
PHKL_34173 1.0 select(2) delay, hang
PHKL_34309 1.0 detach;NOSTOP,Abrt,pset,slpq,fss,lwp,cleanpt
PHKL_34310 1.0 Core PM,vPar,Pset,slpq,FSS,rtprio,cleanpt
PHKL_34311 1.0 thread abrt,suspend,DaS,physio,cleanpt
PHKL_34805 1.0 JFS3.3 patch; mmap
PHKL_34986 1.0 LVM Cumulative Patch; LVM OLR; SLVM 16 Node
PHKL_35091 1.0 SPP fragmentation;AIO;EVP;ufalloc;dup2 race
PHNE_28810 1.0 sendmail(1m) 8.9.3 patch
PHNE_34672 1.0 cumulative ARPA Transport patch
PHNE_34777 1.0 Cumulative STREAMS Patch
PHNE_34938 1.0 ONC/NFS General Release/Performance Patch
PHSS_33901 1.0 LIBCL patch
PHSS_33944 1.0 HP aC++ -AA runtime libraries (aCC A.03.71)
PHSS_35379 1.0 ld(1) and linker tools cumulative patch

Any help/pointers are much appreciated.

Thanks,
Sanjay


2 REPLIES 2
Peter Godron
Honored Contributor

Re: /usr/lib/dld.sl: Unresolved symbol: getaddrinfo (code) from ../lib/mylibfile.so

Hi Sanjay,
and welcome to the forums.

Can you please first ensure your mylibfile.so can be found via SHLIB_PATH.

Then please detail how you compiled/linked your code (ideally with the actual commands and output).


Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.


Sanjay Sutar
Frequent Advisor

Re: /usr/lib/dld.sl: Unresolved symbol: getaddrinfo (code) from ../lib/mylibfile.so

Thanks Peter for your quick response!!

Yes... the .so file can be located with SHLIB_PATH.

This is our application that we are distributing for long time now and works fine for most of the customer.
We had similar issue some time ago from one of our customer.

At that time, applying following patches solved the issue.

PHCO_24400, PHCO_24402, PHCO_24401, PHNE_24129

But this time, I can see the customer machine has latest patches and still they have the same problem.

And one more thing... Am I right in assuming that the API getaddrinfo is defined only in libc.2. Beacaus I am thinking of checking all the libc.2 on customer machine if they contain definiation of getaddrinfo.