From: Karsten V. <k....@gm...> - 2005-03-21 14:51:10
|
I just installed mysql-4.0.23a gcc version 3.3.5 (Debian 1:3.3.5-8) got pam_mysql from cvs: cvs -z3 -d:pserver:ano...@cv...:/cvsroot/pam-mysql co -r pam_mysql-0_5-fvg pam_mysql When I try to compile pam_mysql: #make mkdir -p ./dep mkdir -p ./dynamic gcc -O2 -Dlinux -DLINUX_PAM -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -fPIC -DPAM_DYNAMIC -c pam_mysql.c -o dynamic/pam_mysql.o In file included from pam_mysql.c:52: lib.h:38:34: security/pam_modules.h: No such file or directory lib.h:39:31: security/pam_misc.h: No such file or directory In file included from pam_mysql.c:57: pwlib.h:8: error: parse error before '*' token pwlib.h:8: warning: function declaration isn't a prototype In file included from pam_mysql.c:58: mysql.h:4:25: mysql/mysql.h: No such file or directory In file included from pam_mysql.c:58: mysql.h:12: error: parse error before '*' token mysql.h:12: warning: type defaults to `int' in declaration of `mysql_auth' mysql.h:12: warning: data definition has no type or storage class mysql.h:15: error: parse error before '*' token mysql.h:15: warning: function declaration isn't a prototype mysql.h:19: error: parse error before '*' token mysql.h:19: warning: function declaration isn't a prototype In file included from pam_mysql.c:62: pam_mysql.h:4:25: mysql/mysql.h: No such file or directory In file included from pam_mysql.c:62: pam_mysql.h:10: error: parse error before '*' token pam_mysql.h:10: warning: function declaration isn't a prototype pam_mysql.h:11: error: parse error before '*' token pam_mysql.h:11: warning: function declaration isn't a prototype pam_mysql.h:12: error: parse error before '*' token pam_mysql.h:12: warning: function declaration isn't a prototype pam_mysql.h:13: error: parse error before '*' token pam_mysql.h:13: warning: function declaration isn't a prototype pam_mysql.h:14: error: parse error before '*' token pam_mysql.h:14: warning: function declaration isn't a prototype pam_mysql.c:66: error: parse error before '*' token pam_mysql.c:66: warning: type defaults to `int' in declaration of `mysql_auth' pam_mysql.c:66: warning: data definition has no type or storage class pam_mysql.c:113: error: syntax error before "int" pam_mysql.c:113: error: parse error before '*' token pam_mysql.c:114: warning: function declaration isn't a prototype pam_mysql.c:115: error: syntax error before "int" pam_mysql.c:115: error: parse error before '*' token pam_mysql.c:116: warning: function declaration isn't a prototype pam_mysql.c:117: error: syntax error before "int" pam_mysql.c:117: error: parse error before '*' token pam_mysql.c:118: warning: function declaration isn't a prototype pam_mysql.c:119: error: syntax error before "int" pam_mysql.c:119: error: parse error before '*' token pam_mysql.c:120: warning: function declaration isn't a prototype pam_mysql.c:121: error: syntax error before "int" pam_mysql.c:121: error: parse error before '*' token pam_mysql.c:122: warning: function declaration isn't a prototype pam_mysql.c:123: error: syntax error before "int" pam_mysql.c:123: error: parse error before '*' token pam_mysql.c:124: warning: function declaration isn't a prototype pam_mysql.c:132: error: syntax error before "int" pam_mysql.c:132: error: parse error before '*' token pam_mysql.c:132: warning: function declaration isn't a prototype pam_mysql.c: In function `pam_sm_authenticate': pam_mysql.c:139: error: `MYSQL' undeclared (first use in this function) pam_mysql.c:139: error: (Each undeclared identifier is reported only once pam_mysql.c:139: error: for each function it appears in.) pam_mysql.c:139: error: parse error before "auth_sql_server" pam_mysql.c:141: warning: implicit declaration of function `D' pam_mysql.c:143: error: `argc' undeclared (first use in this function) pam_mysql.c:143: error: `argv' undeclared (first use in this function) pam_mysql.c:146: warning: implicit declaration of function `pam_get_user' pam_mysql.c:146: error: `pamh' undeclared (first use in this function) pam_mysql.c:147: error: `PAM_SUCCESS' undeclared (first use in this function) pam_mysql.c:150: error: `PAM_USER_UNKNOWN' undeclared (first use in this function) pam_mysql.c:153: warning: implicit declaration of function `pam_get_item' pam_mysql.c:153: error: `PAM_AUTHTOK' undeclared (first use in this function) pam_mysql.c:153: warning: dereferencing type-punned pointer will break strict-aliasing rules pam_mysql.c:158: warning: dereferencing type-punned pointer will break strict-aliasing rules pam_mysql.c:162: error: `PAM_AUTHINFO_UNAVAIL' undeclared (first use in this function) pam_mysql.c:164: error: `auth_sql_server' undeclared (first use in this function) pam_mysql.c:165: warning: left-hand operand of comma expression has no effect pam_mysql.c:171: warning: left-hand operand of comma expression has no effect pam_mysql.c:176: warning: left-hand operand of comma expression has no effect pam_mysql.c: At top level: pam_mysql.c:185: error: syntax error before "int" pam_mysql.c:185: error: parse error before '*' token pam_mysql.c:185: warning: function declaration isn't a prototype pam_mysql.c: In function `pam_sm_acct_mgmt': pam_mysql.c:186: error: `MYSQL' undeclared (first use in this function) pam_mysql.c:186: error: parse error before "auth_sql_server" pam_mysql.c:188: error: `PAM_SESSION_ERR' undeclared (first use in this function) pam_mysql.c:191: warning: function `D' was previously declared within a block pam_mysql.c:193: error: `argc' undeclared (first use in this function) pam_mysql.c:193: error: `argv' undeclared (first use in this function) pam_mysql.c:196: warning: function `pam_get_item' was previously declared within a block pam_mysql.c:196: error: `pamh' undeclared (first use in this function) pam_mysql.c:196: error: `PAM_USER' undeclared (first use in this function) pam_mysql.c:196: warning: dereferencing type-punned pointer will break strict-aliasing rules pam_mysql.c:197: error: `PAM_SUCCESS' undeclared (first use in this function) pam_mysql.c:200: error: `PAM_USER_UNKNOWN' undeclared (first use in this function) pam_mysql.c:204: error: `auth_sql_server' undeclared (first use in this function) pam_mysql.c:205: warning: left-hand operand of comma expression has no effect pam_mysql.c: At top level: pam_mysql.c:218: error: syntax error before "int" pam_mysql.c:218: error: parse error before '*' token pam_mysql.c:218: warning: function declaration isn't a prototype pam_mysql.c: In function `pam_sm_setcred': pam_mysql.c:219: warning: function `D' was previously declared within a block pam_mysql.c:220: error: `PAM_SUCCESS' undeclared (first use in this function) pam_mysql.c: At top level: pam_mysql.c:224: error: syntax error before "int" pam_mysql.c:224: error: parse error before '*' token pam_mysql.c:224: warning: function declaration isn't a prototype pam_mysql.c: In function `pam_sm_chauthtok': pam_mysql.c:232: error: `MYSQL' undeclared (first use in this function) pam_mysql.c:232: error: parse error before "auth_sql_server" pam_mysql.c:234: warning: function `D' was previously declared within a block pam_mysql.c:236: error: `argc' undeclared (first use in this function) pam_mysql.c:236: error: `argv' undeclared (first use in this function) pam_mysql.c:239: warning: function `pam_get_user' was previously declared within a block pam_mysql.c:239: error: `pamh' undeclared (first use in this function) pam_mysql.c:240: error: `PAM_SUCCESS' undeclared (first use in this function) pam_mysql.c:243: error: `PAM_USER_UNKNOWN' undeclared (first use in this function) pam_mysql.c:246: error: `auth_sql_server' undeclared (first use in this function) pam_mysql.c:247: warning: left-hand operand of comma expression has no effect pam_mysql.c:252: error: `flags' undeclared (first use in this function) pam_mysql.c:252: error: `PAM_PRELIM_CHECK' undeclared (first use in this function) pam_mysql.c:254: error: `PAM_CHANGE_EXPIRED_AUTHTOK' undeclared (first use in this function) pam_mysql.c:257: warning: function `pam_get_item' was previously declared within a block pam_mysql.c:257: error: `PAM_OLDAUTHTOK' undeclared (first use in this function) pam_mysql.c:257: warning: dereferencing type-punned pointer will break strict-aliasing rules pam_mysql.c:261: warning: dereferencing type-punned pointer will break strict-aliasing rules pam_mysql.c:263: error: `PAM_AUTHTOK_ERR' undeclared (first use in this function) pam_mysql.c:272: warning: left-hand operand of comma expression has no effect pam_mysql.c:275: error: `PAM_UPDATE_AUTHTOK' undeclared (first use in this function) pam_mysql.c:277: warning: function `pam_get_item' was previously declared within a block pam_mysql.c:277: error: `PAM_AUTHTOK' undeclared (first use in this function) pam_mysql.c:277: warning: dereferencing type-punned pointer will break strict-aliasing rules pam_mysql.c:287: warning: dereferencing type-punned pointer will break strict-aliasing rules pam_mysql.c:298: error: `PAM_BUF_ERR' undeclared (first use in this function) pam_mysql.c:308: warning: dereferencing type-punned pointer will break strict-aliasing rules pam_mysql.c:318: warning: dereferencing type-punned pointer will break strict-aliasing rules pam_mysql.c:325: warning: left-hand operand of comma expression has no effect pam_mysql.c:325: warning: left-hand operand of comma expression has no effect pam_mysql.c: At top level: pam_mysql.c:341: error: syntax error before "int" pam_mysql.c:341: error: parse error before '*' token pam_mysql.c:341: warning: function declaration isn't a prototype pam_mysql.c: In function `pam_sm_open_session': pam_mysql.c:342: error: `MYSQL' undeclared (first use in this function) pam_mysql.c:342: error: parse error before "auth_sql_server" pam_mysql.c:344: error: `PAM_SESSION_ERR' undeclared (first use in this function) pam_mysql.c:349: warning: function `D' was previously declared within a block pam_mysql.c:354: error: `argc' undeclared (first use in this function) pam_mysql.c:354: error: `argv' undeclared (first use in this function) pam_mysql.c:359: error: `PAM_SUCCESS' undeclared (first use in this function) pam_mysql.c:364: warning: function `pam_get_item' was previously declared within a block pam_mysql.c:364: error: `pamh' undeclared (first use in this function) pam_mysql.c:364: error: `PAM_USER' undeclared (first use in this function) pam_mysql.c:364: warning: dereferencing type-punned pointer will break strict-aliasing rules pam_mysql.c:368: error: `PAM_USER_UNKNOWN' undeclared (first use in this function) pam_mysql.c:372: error: `PAM_SERVICE' undeclared (first use in this function) pam_mysql.c:376: error: `PAM_RHOST' undeclared (first use in this function) pam_mysql.c:380: error: `PAM_RUSER' undeclared (first use in this function) pam_mysql.c:384: error: `PAM_TTY' undeclared (first use in this function) pam_mysql.c:389: error: `auth_sql_server' undeclared (first use in this function) pam_mysql.c:390: warning: left-hand operand of comma expression has no effect pam_mysql.c:398: warning: left-hand operand of comma expression has no effect pam_mysql.c:404: warning: left-hand operand of comma expression has no effect pam_mysql.c:405: warning: implicit declaration of function `pam_set_data' pam_mysql.c: At top level: pam_mysql.c:417: error: syntax error before "int" pam_mysql.c:417: error: parse error before '*' token pam_mysql.c:417: warning: function declaration isn't a prototype pam_mysql.c: In function `pam_sm_close_session': pam_mysql.c:418: error: `MYSQL' undeclared (first use in this function) pam_mysql.c:418: error: parse error before "auth_sql_server" pam_mysql.c:420: error: `PAM_SESSION_ERR' undeclared (first use in this function) pam_mysql.c:423: warning: function `D' was previously declared within a block pam_mysql.c:425: error: `argc' undeclared (first use in this function) pam_mysql.c:425: error: `argv' undeclared (first use in this function) pam_mysql.c:430: error: `PAM_SUCCESS' undeclared (first use in this function) pam_mysql.c:434: warning: implicit declaration of function `pam_get_data' pam_mysql.c:434: error: `pamh' undeclared (first use in this function) pam_mysql.c:434: warning: dereferencing type-punned pointer will break strict-aliasing rules pam_mysql.c:440: warning: left-hand operand of comma expression has no effect pam_mysql.c:443: error: `auth_sql_server' undeclared (first use in this function) pam_mysql.c:444: warning: left-hand operand of comma expression has no effect pam_mysql.c:451: warning: left-hand operand of comma expression has no effect make: *** [dynamic/pam_mysql.o] Error 1 Thx 4 any suggestions on this problem |