Operating System - HP-UX
1849239 Members
2319 Online
104042 Solutions
New Discussion

what is the latest ld version?.

 
Mani Vasagan
Occasional Contributor

what is the latest ld version?.

I am trying to compile apache (1.3.26/27) with php 4 (php 4.2.1/4.2.2/4.2.3) on a hpux 11i server. But it fails when compile (make) php modules. It works fine with a hpux 11.00 server but not with 11i. The error i get is:

/usr/ccs/bin/ld: Unsatisfied symbols:
freeaddrinfo (code)
getaddrinfo (code)
*** Error exit code 1

I noted that, ld used by hpux11.00 is newer then the 11i. So I wonder which patch would give me the newer version.

what /usr/ccs/bin/ld on hpux11i (11.11):
/usr/ccs/bin/ld:
HP aC++ B3910B A.03.25 Classic Iostream Library
HP aC++ B3910B A.03.25 Language Support Library
ld_msgs.cat: $Revision: 1.85 $
92453-07 linker command s800.sgs ld PA64 B.11.18 REL 000922

what /usr/ccs/bin/ld on hpux 11.00:
/usr/ccs/bin/ld:
HP aC++ B3910B A.03.27 Classic Iostream Library
HP aC++ B3910B A.03.27 Language Support Library
ld_msgs.cat: $Revision: 1.85 $
92453-07 linker command s800.sgs ld PA64 B.11.25 REL 001129

Thanks in advance,

Mani
4 REPLIES 4
Alex Glennie
Honored Contributor

Re: what is the latest ld version?.

This is more an educated guess but from PHCO_27434 s700_800 11.11 libc cumulative patch :

IPv6 functionality should be provided in libc.

Resolution:
The source code for networking APIs in libc
have been modified to effect IPv6 changes.
New APIs included :
getaddrinfo(),
getnameinfo(),
freeaddrinfo(),
gai_strerror(),
getipnodebyname(),
getipnodebyaddr(),

rcmd_af(),
rresvport_af(),
rexec_af()
The last three APIs are provided to enable IPv6 in
rcommands.
rlogin and remsh Applications call rcmd_af() and
rresvport_af() APIs and rexec calls rexec_af() API.

IP address to hostname resolution APIs:
The getaddrinfo(), getipnodebyname() APIs are provided
for name to address resolution. The getnameinfo() and
getipnodebyaddr() APIs are provided for address to name
resolution.
They work for both IPv4 and IPv6 hostnames and addresses.
freeaddrinfo() is used to free the linked list created
by getaddrinfo().
gai_strerror() is used to print error messages
corresponding to error values from getaddrinfo().

maybe worth installing & fyi latest ld patch = PHSS_26560
Mani Vasagan
Occasional Contributor

Re: what is the latest ld version?.

Hi Alex,

Thanks for the quick answer. I am trying to install the patch PHSS_26560 now. Will update the status after that.

Regards,

Mani
Mani Vasagan
Occasional Contributor

Re: what is the latest ld version?.

Ok, I just installed the patch. I still get the error, but with more info. The error is:
/usr/ccs/bin/ld: Unsatisfied symbols:
freeaddrinfo (first referenced in ./.libs/libphp4.a(network.o)) (code)
getaddrinfo (first referenced in ./.libs/libphp4.a(network.o)) (code)

I am stranded now !.

Thanks,

Mani
Mani Vasagan
Occasional Contributor

Re: what is the latest ld version?.

I installed PHCO_27434. It works after that.

Thanks,

Mani