in reply to Re: AIX compile error pp_sys.c
in thread AIX compile error pp_sys.c

There is a netdb.h file, but it's in the win32/include subdirectory, and this is aix.

Replies are listed 'Best First'.
Re^3: AIX compile error pp_sys.c
by zwon (Abbot) on Jun 08, 2009 at 22:28 UTC

    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.
        This sounds like you've found both a bug and a potential fix in the AIX build process.

        If you're interested, you might want to try to see if you can integrate that into the hints file for the AIX build; the Perl5 Porters are currently in need of someone who has AIX to help solve some of the outstanding bugs there.

Re^3: AIX compile error pp_sys.c
by ikegami (Patriarch) on Jun 08, 2009 at 21:26 UTC
    I think he meant in your system's include directory, not in the Perl distro.