Please help with cvm-vchkpw

"Webmaster" <[email protected]>
Newsgroups gmane.comp.sysutils.bgware
Message-ID <[email protected]>
OS: Red Hat Linux release 7.2 (Enigma)

Steps that I have followed as instructed in README.vchkpw and in
cvm-vchkpw.c:

1) http://untroubled.org/bglibs/ is compiled and installed

2) modifed conf-cc:
gcc -W -Wall -Wshadow -O -g -I/usr/local/include
-I/usr/local/vpopmail/include

3) modified conf-ld:
gcc -g -L/usr/local/lib -L/usr/local/vpopmail/lib

4) modified Makefile.  Added:
cvm-vchkpw: load cvm-vchkpw.o module.a crypt.lib shadow.lib s.lib socket.lib
        ./load cvm-vchkpw getpwnam.o module.a `cat crypt.lib` `cat
shadow.lib` `cat s.lib` `ca
t socket.lib` -lbg-net -lvpopmail

cvm-vchkpw.o: compile cvm-vchkpw.c module.h facts.h errors.h
        ./compile cvm-vchkpw.c

Also added cvm-vchkpw to the programs rule:

programs: cvm-vmailmgr-udp sql-query-test cvm-testclient cvm-checkpassword
cvm-vmailmgr cvm-qm
ail cvm-pwfile cvm-unix cvm-vmailmgr-local cvm-benchclient cvm-vchkpw



5) make
.
.
<snip>
.
../compile cvm-vchkpw.c
In file included from cvm-vchkpw.c:35:
/usr/local/vpopmail/include/vauth.h:119: warning: declaration of `verror'
shadows global declaration
cvm-vchkpw.c: In function `cvm_lookup':
cvm-vchkpw.c:57: warning: passing arg 1 of `vauth_user' discards qualifiers
from pointer target type
cvm-vchkpw.c:57: warning: passing arg 2 of `vauth_user' discards qualifiers
from pointer target type
cvm-vchkpw.c:57: warning: passing arg 3 of `vauth_user' discards qualifiers
from pointer target type
cvm-vchkpw.c:57: warning: assignment from incompatible pointer type
cvm-vchkpw.c: In function `cvm_results':
cvm-vchkpw.c:71: warning: passing arg 1 of `strlen' makes pointer from
integer without a cast
./load cvm-vchkpw getpwnam.o module.a `cat crypt.lib` `cat shadow.lib` `cat
s.lib` `cat socket.lib` -lbg-net -lvpopmail
module.a(module_main.o): In function `usage':
/home/lu/cvm-0.32/module_main.c:26: undefined reference to `program'
/home/lu/cvm-0.32/module_main.c:27: undefined reference to `program'
collect2: ld returned 1 exit status
make: *** [cvm-vchkpw] Error 1


Can someone let me know whether I miss anything from the steps above ?

Thanks.
Lu
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.