On Tuesday, 01/23/2007 at 06:11 CST, Dave Jones <[EMAIL PROTECTED]>
wrote:
> I've written a short C test program that invokes the new "getaddrinfo" C
> library function. However, the z/VM C/C++ compiler complains with the
> following error message when I attempt to compile my test program:
>
> > #define _OPEN_SYS_SOCK_IPV6
> > #include <netdb.h>
> > #include <sys/socket.h>
> > #include <stdio.h>
> > #include <errno.h>
> > #include <stdlib.h>
> > #include <string.h>
> > struct addrinfo hints, *res, *res0;
> > int main(int argc, char *argv ) {
> > int error;
> > int s;
> > char *name = "www.cacert.org";
> > char *port = "80";
> > const char *cause = NULL;
> >
> > memset(&hints, 0, sizeof(hints));
> > hints.ai_family = PF_UNSPEC;
> > hints.ai_socktype = SOCK_STREAM;
> > error = getaddrinfo(name, port, &hints, &res0);
> > ...................a..........................................
> > =====> a - CCN3023 Expecting function or pointer to function.
Take it literally: You tried to call something that hasn't been defined as
a function or as a pointer to a function. You have likely picked up the
TCP/IP .h files on the 592 instead of the LE versions on 19E. Release 592
or change your search order.
Alan Altmark
z/VM Development
IBM Endicott