in reply to AIX compile error pp_sys.c

It looks like netdb.h missed, though there's no warning about it. Can you check if netdb.h exists and contains definitions of all these functions?

Replies are listed 'Best First'.
Re^2: AIX compile error pp_sys.c
by tdwilson58 (Initiate) on Jun 08, 2009 at 21:23 UTC
    There is a netdb.h file, but it's in the win32/include subdirectory, and this is aix.

      Like ikegami said you should check in your system's include directory. All these gethost... functions which are you getting warnings about should be declared in netdb.h, but for some reason they are not. Also this file should contain the definitions of various structures, e.g. struct hostent, and as these definitions wasn't included compiler can't determine memory size that it should allocate for these structures etc, that's why you're getting "dereferencing pointer to incomplete type" errors. I think that's the source of the problem.

        Thanks, that was the problem. There's a netdb.h file in /usr/include. I included it in the code, and it now compiles.
      I think he meant in your system's include directory, not in the Perl distro.