#16 make problem

closed
nobody
None
5
2005-06-12
2004-08-17
widsy
No

I'm trying to compile pam-mysql. This results in make:
*** [dynamic/pam_mysql.o] Error 1. Both PAM and
MYSQL are up and running. What is wrong?

For reference:

[root@VM-Linux-RH90-1 pam_mysql-0.5.0]# make install
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 -pedantic -fPIC -DPAM_DYNAMIC -c
pam_mysql.c -o dynamic/pam_mysql.o
pam_mysql.c:35:25: mysql/mysql.h: No such file or
directory
pam_mysql.c:81: parse error before '*' token
pam_mysql.c:81: warning: type defaults to `int' in
declaration of `mysql_auth'
pam_mysql.c:81: ISO C forbids data definition with no
type or storage class
pam_mysql.c:141: parse error before '*' token
pam_mysql.c:141: warning: function declaration isn't a
prototype
pam_mysql.c:143: parse error before '*' token
pam_mysql.c:144: warning: function declaration isn't a
prototype
pam_mysql.c:151: parse error before '*' token
pam_mysql.c:151: warning: function declaration isn't a
prototype
pam_mysql.c:391: parse error before '*' token
pam_mysql.c:391: warning: function declaration isn't a
prototype
pam_mysql.c: In function `db_connect':
pam_mysql.c:401: warning: implicit declaration of
function `mysql_init'
pam_mysql.c:401: `auth_sql_server' undeclared (first
use in this function)
pam_mysql.c:401: (Each undeclared identifier is reported
only once
pam_mysql.c:401: for each function it appears in.)
pam_mysql.c:402: warning: implicit declaration of
function `mysql_real_connect'
pam_mysql.c:404: warning: assignment makes pointer
from integer without a cast
pam_mysql.c:407: warning: implicit declaration of
function `mysql_select_db'
pam_mysql.c:411: warning: implicit declaration of
function `mysql_error'
pam_mysql.c:411: warning: format argument is not a
pointer (arg 3)
pam_mysql.c: In function `db_close':
pam_mysql.c:424: warning: implicit declaration of
function `mysql_close'
pam_mysql.c: At top level:
pam_mysql.c:428: parse error before '*' token
pam_mysql.c:429: warning: function declaration isn't a
prototype
pam_mysql.c: In function `db_checkpasswd':
pam_mysql.c:438: `MYSQL_RES' undeclared (first use in
this function)
pam_mysql.c:438: `result' undeclared (first use in this
function)
pam_mysql.c:439: `MYSQL_ROW' undeclared (first use in
this function)
pam_mysql.c:439: parse error before "row"
pam_mysql.c:452: `user' undeclared (first use in this
function)
pam_mysql.c:462: warning: implicit declaration of
function `mysql_escape_string'
pam_mysql.c:509: warning: implicit declaration of
function `mysql_query'
pam_mysql.c:509: `auth_sql_server' undeclared (first
use in this function)
pam_mysql.c:513: warning: implicit declaration of
function `mysql_store_result'
pam_mysql.c:516: warning: function `mysql_error' was
previously declared within a block
pam_mysql.c:516: warning: format argument is not a
pointer (arg 3)
pam_mysql.c:517: warning: implicit declaration of
function `mysql_free_result'
pam_mysql.c:521: warning: implicit declaration of
function `mysql_num_rows'
pam_mysql.c:523: warning: function `mysql_free_result'
was previously declared within a block
pam_mysql.c:528: `row' undeclared (first use in this
function)
pam_mysql.c:528: warning: implicit declaration of
function `mysql_fetch_row'
pam_mysql.c:531: warning: function `mysql_error' was
previously declared within a block
pam_mysql.c:531: warning: format argument is not a
pointer (arg 3)
pam_mysql.c:536: `passwd' undeclared (first use in this
function)
pam_mysql.c:576: warning: implicit declaration of
function `make_scrambled_password'
pam_mysql.c:603: warning: function `mysql_free_result'
was previously declared within a block
pam_mysql.c: At top level:
pam_mysql.c:673: parse error before '*' token
pam_mysql.c:675: warning: function declaration isn't a
prototype
pam_mysql.c: In function `updatePasswd':
pam_mysql.c:690: `user' undeclared (first use in this
function)
pam_mysql.c:690: `newpass' undeclared (first use in
this function)
pam_mysql.c:692: `oldpass' undeclared (first use in this
function)
pam_mysql.c:692: `isRoot' undeclared (first use in this
function)
pam_mysql.c:732: warning: function
`make_scrambled_password' was previously declared
within a block
pam_mysql.c:768: warning: function
`mysql_escape_string' was previously declared within a
block
pam_mysql.c:786: warning: function `mysql_query' was
previously declared within a block
pam_mysql.c:786: `my' undeclared (first use in this
function)
pam_mysql.c:789: warning: function `mysql_error' was
previously declared within a block
pam_mysql.c:789: warning: format argument is not a
pointer (arg 3)
pam_mysql.c: At top level:
pam_mysql.c:839: parse error before '*' token
pam_mysql.c:839: warning: function declaration isn't a
prototype
pam_mysql.c: In function `sqlLog':
pam_mysql.c:886: `user' undeclared (first use in this
function)
pam_mysql.c:893: `msg' undeclared (first use in this
function)
pam_mysql.c:906: warning: function
`mysql_escape_string' was previously declared within a
block
pam_mysql.c:952: warning: implicit declaration of
function `mysql_real_query'
pam_mysql.c:952: `auth_sql_server' undeclared (first
use in this function)
pam_mysql.c:963: warning: function `mysql_error' was
previously declared within a block
pam_mysql.c:963: warning: format argument is not a
pointer (arg 3)
pam_mysql.c: In function `pam_sm_authenticate':
pam_mysql.c:989: `MYSQL' undeclared (first use in this
function)
pam_mysql.c:989: parse error before "auth_sql_server"
pam_mysql.c:1019: `auth_sql_server' undeclared (first
use in this function)
pam_mysql.c: In function `pam_sm_chauthtok':
pam_mysql.c:1077: `MYSQL' undeclared (first use in this
function)
pam_mysql.c:1077: parse error before "auth_sql_server"
pam_mysql.c:1100: `auth_sql_server' undeclared (first
use in this function)
make: *** [dynamic/pam_mysql.o] Error 1

Discussion

  • alan chen

    alan chen - 2005-01-27

    Logged In: YES
    user_id=1205708

    Please do below two steps:

    1. copy /usr/local/mysql/include/mysql/* /usr/include/mysql/
    2. cp /usr/local/mysql/lib/mysql/libmysqlclient.so /usr/lib/

     
  • Moriyoshi Koizumi

    Logged In: YES
    user_id=995831

    Possibly an user fault.

     
  • Moriyoshi Koizumi

    • status: open --> closed
     

Log in to post a comment.