Hi,

it seems that you have no PAM installed on your system - just rerun the 
configure script like this:

./configure --without-pam
make


Regards,
Martin


On Feb 23, 2012, at 9:11 AM, Stephen Butler wrote:

> HI all,
> 
> I'm trying to build monit on my tinycore linux system, and received some 
> errors after running the make command.
> 
> Thanks for your comments.
> 
> Heres my progress.
> ./configure works fine
> make produces the following
> 
> make  all-recursive
> make[1]: Entering directory `/mnt/sda1/monit/monit-5.3.2'
> Making all in libmonit
> make[2]: Entering directory `/mnt/sda1/monit/monit-5.3.2/libmonit'
> Making all in .
> make[3]: Entering directory `/mnt/sda1/monit/monit-5.3.2/libmonit'
> make[3]: Nothing to be done for `all-am'.
> make[3]: Leaving directory `/mnt/sda1/monit/monit-5.3.2/libmonit'
> Making all in test
> make[3]: Entering directory `/mnt/sda1/monit/monit-5.3.2/libmonit/test'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory `/mnt/sda1/monit/monit-5.3.2/libmonit/test'
> make[2]: Leaving directory `/mnt/sda1/monit/monit-5.3.2/libmonit'
> make[2]: Entering directory `/mnt/sda1/monit/monit-5.3.2'
> gcc -DHAVE_CONFIG_H -I. -I./src -I./src -I./src/device -I./src/http 
> -I./src/process -I./src/protocols -I./libmonit/src   -DLINUX 
> -DSYSCONFDIR="\"/usr/local/etc\""   -Wno-address -Wno-pointer-sign -g -O2 
> -Wall -Wunused -Wno-unused-label -funsigned-char -D_GNU_SOURCE -std=c99 -D 
> _REENTRANT -I/usr/local/include -c -o src/util.o src/util.c
> src/util.c:291:73: warning: 'struct pam_response' declared inside parameter 
> list [enabled by default]
> src/util.c:291:73: warning: its scope is only this definition or declaration, 
> which is probably not what you want [enabled by default]
> src/util.c:291:73: warning: 'struct pam_message' declared inside parameter 
> list [enabled by default]
> src/util.c: In function 'PAMquery':
> src/util.c:299:24: error: 'PAM_CONV_ERR' undeclared (first use in this 
> function)
> src/util.c:299:24: note: each undeclared identifier is reported only once for 
> each function it appears in
> src/util.c:301:20: error: invalid application of 'sizeof' to incomplete type 
> 'struct pam_response'
> src/util.c:304:17: error: invalid use of undefined type 'struct pam_response'
> src/util.c:304:25: error: dereferencing pointer to incomplete type
> src/util.c:305:17: error: invalid use of undefined type 'struct pam_response'
> src/util.c:305:25: error: dereferencing pointer to incomplete type
> src/util.c:307:26: error: dereferencing pointer to incomplete type
> src/util.c:308:30: error: 'PAM_PROMPT_ECHO_ON' undeclared (first use in this 
> function)
> src/util.c:310:33: error: invalid use of undefined type 'struct pam_response'
> src/util.c:310:41: error: dereferencing pointer to incomplete type
> src/util.c:313:30: error: 'PAM_PROMPT_ECHO_OFF' undeclared (first use in this 
> function)
> src/util.c:315:33: error: invalid use of undefined type 'struct pam_response'
> src/util.c:315:41: error: dereferencing pointer to incomplete type
> src/util.c:318:30: error: 'PAM_TEXT_INFO' undeclared (first use in this 
> function)
> src/util.c:319:30: error: 'PAM_ERROR_MSG' undeclared (first use in this 
> function)
> src/util.c:332:16: error: 'PAM_SUCCESS' undeclared (first use in this 
> function)
> src/util.c: In function 'PAMcheckPasswd':
> src/util.c:341:9: error: unknown type name 'pam_handle_t'
> src/util.c:346:16: error: variable 'conv' has initializer but incomplete type
> src/util.c:347:17: warning: excess elements in struct initializer [enabled by 
> default]
> src/util.c:347:17: warning: (near initialization for 'conv') [enabled by 
> default]
> src/util.c:349:9: warning: excess elements in struct initializer [enabled by 
> default]
> src/util.c:349:9: warning: (near initialization for 'conv') [enabled by 
> default]
> src/util.c:346:25: error: storage size of 'conv' isn't known
> src/util.c:351:9: warning: implicit declaration of function 'pam_start' 
> [-Wimplicit-function-declaration]
> src/util.c:351:62: error: 'PAM_SUCCESS' undeclared (first use in this 
> function)
> src/util.c:356:9: warning: implicit declaration of function 
> 'pam_authenticate' [-Wimplicit-function-declaration]
> src/util.c:356:37: error: 'PAM_SILENT' undeclared (first use in this function)
> src/util.c:358:9: warning: implicit declaration of function 'pam_end' 
> [-Wimplicit-function-declaration]
> src/util.c:346:25: warning: unused variable 'conv' [-Wunused-variable]
> src/util.c:362:1: warning: control reaches end of non-void function 
> [-Wreturn-type]
> make[2]: *** [src/util.o] Error 1
> make[2]: Leaving directory `/mnt/sda1/monit/monit-5.3.2'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/mnt/sda1/monit/monit-5.3.2'
> make: *** [all] Error 2
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to