Operating System - HP-UX
1836903 Members
1947 Online
110111 Solutions
New Discussion

Re: fail to compile getaddrinfo().

 
York Lo
New Member

fail to compile getaddrinfo().

I got the following compiler error:
Error 628: .. addrinfo Hints can't be defined to have an incomplete type.
struct addrinfo Hints;
^^^^^
As the man page suggested, and are included.

Use uname -a, the OS version is: HP-UX B.11.11 U 9000/785. Also, TOUR A.02.05 is installed.

addrinfo struct is not defined in netdb.h file. My question is that:
Is there any OS upgrade to compile IPv6 codes? or anything that I have to do to configure the system properly?

Thank you for helps.

York
6 REPLIES 6
Sandman!
Honored Contributor

Re: fail to compile getaddrinfo().

Looking it up on an identical workstation and the same OS level as yours. The /usr/include/netdb.h header file is present and has struct addrinfo defined there.

hope it helps!
York Lo
New Member

Re: fail to compile getaddrinfo().

Sandman,

Thank you very much for quick reply.

Did you install any additional sw packages in the IPv6 area that may change the /usr/include/netdb.h file? I looked at mine again, it didn't define the getaddrinfo(), getnameinfo() functions neither.

York
Sandman!
Honored Contributor

Re: fail to compile getaddrinfo().

Nothing unusual. See if you have BIND on your box, because it overwrites the file.
York Lo
New Member

Re: fail to compile getaddrinfo().

Sandman,

Thank you again.

I did "swlist | grep -i bind" and got nothing. There is no BIND install on the box. BTW, do you know what lib that may contains the getaddrinfo()?

I am going to install the BIND9.2 now.

York
York Lo
New Member

Re: fail to compile getaddrinfo().

Hi Sandman,

I just realized that the TOUR wasn't installed properly. Will try to install again. Hope it is the only reason.

York
Sandman!
Honored Contributor

Re: fail to compile getaddrinfo().

York,

You could always get a copy of from a similar workstation. I don't know what TOUR is and whether installing it has any effect on the network header files?