[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: pam_mysql 0.1



On Fri, 11 Jun 1999, Derrick J Brashear wrote:
> does nm'ing the mysql library find a function by that name?
> (mysql_store_result)

Yes it does.

> are you linking the module against the mysql library explicitly?

I'm not sure, this is the first project I've done on my own that was
written on unix, and this is also the first project I've done in C in a
year or two. I took the make file from the previous project and I'm using
it as is, which is probably my mistake. The relevent part of the compile
is here:

make[2]: Entering directory `/home/jo2y/src/Linux-PAM/modules/pam_mysql'
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
-I/usr/include/mysql -DPAM_DYNAMIC   -c pam_mysql.c -o dynamic/pam_mysql.o
In file included from /usr/include/mysql/mysql.h:46,
                 from pam_mysql.c:21:
/usr/include/mysql/mysql_com.h:125: warning: declaration of `pipe' shadows
global declaration
/usr/include/mysql/mysql_com.h:169: warning: declaration of `rand' shadows
global declaration
/usr/include/mysql/mysql_com.h:171: warning: declaration of `rand' shadows
global declaration
/usr/include/mysql/mysql_com.h:176: warning: declaration of `scramble'
shadows global declaration
pam_mysql.c:61: warning: function declaration isn't a prototype
gcc -shared -Xlinker -x -L/usr/lib/mysql -lmysqlclient -o pam_mysql.so
dynamic/pam_mysql.o
make[2]: Leaving directory `/home/jo2y/src/Linux-PAM/modules/pam_mysql'


I've also only been copying pam_mysql.so into place. Do I need to copy any
other updated files from my compile tree?

thanks for the quick help.
-james




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []