Trying to compile pam-0.75 on Irix-6.5 using gcc-3.0 I got some errors in some modules, i got rid of them with rm -rf but now i get a fatal error in pam_unix, and i don't want to rm -rf this module (of course). This is the error: ########################################################### gcc -c -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Dirix -ansi -D_POSIX_SOURCE -pedantic -I/usr/freeware/include -I./include -I/root/compile/Linux-PAM-0.75/libpam/include -I/root/compile/Linux-PAM-0.75 -I/root/compile/Linux-PAM-0.75/libpamc/include -D"USE_LCKPWDF" -DCHKPWD_HELPER=\"/opt/pam-0.75/sbin/unix_chkpwd\" yppasswd_xdr.c In file included from yppasswd_xdr.c:18: yppasswd.h:44: field `newpw' has incomplete type yppasswd_xdr.c: In function `xdr_xpasswd': yppasswd_xdr.c:23: dereferencing pointer to incomplete type yppasswd_xdr.c:24: dereferencing pointer to incomplete type yppasswd_xdr.c:25: dereferencing pointer to incomplete type yppasswd_xdr.c:26: dereferencing pointer to incomplete type yppasswd_xdr.c:27: dereferencing pointer to incomplete type yppasswd_xdr.c:28: dereferencing pointer to incomplete type yppasswd_xdr.c:29: dereferencing pointer to incomplete type gmake[2]: *** [yppasswd_xdr.o] Error 1 gmake[2]: Leaving directory `/root/compile/Linux-PAM-0.75/modules/pam_unix' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/root/compile/Linux-PAM-0.75/modules' gmake: *** [modules] Error 2 ######################################################### Now, if i go and vi modules/pam_unix/yppasswd.h and replace #ifndef __sgi with #ifdef __sgi (because the xpasswd struct appears to be the right one for my Irix systems), i don't get an error at this file, but i still get an error later: ######################################################### gcc -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Dirix -ansi -D_POSIX_SOURCE -pedantic -I/usr/freeware/include -I./include -I/root/compile/Linux-PAM-0.75/libpam/include -I/root/compile/Linux-PAM-0.75 -I/root/compile/Linux-PAM-0.75/libpamc/include -D"USE_LCKPWDF" -DCHKPWD_HELPER=\"/opt/pam-0.75/sbin/unix_chkpwd\" -DPAM_DYNAMIC -c pam_unix_passwd.c -o dynamic/pam_unix_passwd.o In file included from /usr/include/rpc/rpc.h:59, from pam_unix_passwd.c:56: /usr/include/rpc/auth_des.h:74: field `adv_ctime' has incomplete type pam_unix_passwd.c: In function `crypt_md5_wrapper': pam_unix_passwd.c:150: storage size of `tv' isn't known pam_unix_passwd.c:159: warning: implicit declaration of function `gettimeofday' pam_unix_passwd.c:175: warning: implicit declaration of function `strdup' pam_unix_passwd.c:175: warning: assignment makes pointer from integer without a cast pam_unix_passwd.c:150: warning: unused variable `tv' pam_unix_passwd.c: In function `save_old_password': pam_unix_passwd.c:310: warning: int format, uid_t arg (arg 4) pam_unix_passwd.c: In function `_update_passwd': pam_unix_passwd.c:347: warning: implicit declaration of function `fgetpwent' pam_unix_passwd.c:347: warning: assignment makes pointer from integer without a cast pam_unix_passwd.c:350: warning: assignment discards qualifiers from pointer target type pam_unix_passwd.c:352: warning: implicit declaration of function `putpwent' pam_unix_passwd.c:359: warning: assignment makes pointer from integer without a cast pam_unix_passwd.c: In function `_do_setpass': pam_unix_passwd.c:437: warning: implicit declaration of function `setpwent' pam_unix_passwd.c:439: warning: implicit declaration of function `endpwent' pam_unix_passwd.c:445: storage size of `timeout' isn't known pam_unix_passwd.c:479: type of formal parameter 7 is incomplete pam_unix_passwd.c:445: warning: unused variable `timeout' pam_unix_passwd.c: In function `_unix_verify_shadow': pam_unix_passwd.c:547: warning: implicit declaration of function `seteuid' pam_unix_passwd.c: In function `pam_sm_chauthtok': pam_unix_passwd.c:668: warning: implicit declaration of function `usleep' pam_unix_passwd.c:687: warning: subscript has type `char' pam_unix_passwd.c:952: warning: assignment makes pointer from integer without a cast pam_unix_passwd.c:961: warning: assignment makes pointer from integer without a cast gmake[2]: *** [dynamic/pam_unix_passwd.o] Error 1 gmake[2]: Leaving directory `/root/compile/Linux-PAM-0.75/modules/pam_unix' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/root/compile/Linux-PAM-0.75/modules' gmake: *** [modules] Error 2 ######################################################### Unfortunately, i don't know how to get rid of this one... :-( Any idea? -- Florin Andrei "In theory, under the new computer security law, anyone whose computer was infected by Nimda/CodeRed could be imprisoned for life -- the new law says nothing about intent. So, basically we would have a few million Microsoft Windows users serving life sentences..." - Dan Hollis