in reply to Perl: AIX compile error
See the man page for getspnam on your system. The struct spwd ought to be defined in <shadow.h>, but maybe it's different on AIX. Maybe you just need to pass -DI_SHADOW to gcc.