Thanks for your advice Martin, I had Linux-PAM installed, but need to install 
Linux-PAM-dev for my distribution of tinycore linux.
Thanks again for your great help.
Stephen Butler.

> From: [email protected]
> Subject: monit-general Digest, Vol 109, Issue 16
> To: [email protected]
> Date: Thu, 23 Feb 2012 12:01:07 -0500
> 
> Send monit-general mailing list submissions to
>       [email protected]
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>       https://lists.nongnu.org/mailman/listinfo/monit-general
> or, via email, send a message with subject or body 'help' to
>       [email protected]
> 
> You can reach the person managing the list at
>       [email protected]
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of monit-general digest..."
> 
> 
> Today's Topics:
> 
>    1. Errors when trying to build monit (Stephen Butler)
>    2. Re: Errors when trying to build monit (Martin Pala)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Thu, 23 Feb 2012 08:11:14 +0000
> From: Stephen Butler <[email protected]>
> To: <[email protected]>
> Subject: Errors when trying to build monit
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> 
> 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 finemake produces the following
> make  all-recursivemake[1]: Entering directory 
> `/mnt/sda1/monit/monit-5.3.2'Making all in libmonitmake[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 testmake[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.csrc/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 insrc/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 
> typesrc/util.c:305:17: error: invalid use of undefined type 'struct 
> pam_response'src/util.c:305:25: error: dereferencing pointer to incomplete 
> typesrc/util.c:307:26: error: dereferencing pointer to incomplete 
> typesrc/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 
> typesrc/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 
> typesrc/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 typesrc/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 knownsrc/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 1make[2]: 
> Leaving directory `/mnt/sda1/monit/monit-5.3.2'make[1]: *** [all-recursive] 
> Error 1make[1]: Leaving directory `/mnt/sda1/monit/monit-5.3.2'make: *** 
> [all] Error 2
>                                         
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://lists.nongnu.org/archive/html/monit-general/attachments/20120223/1980a941/attachment.html>
> 
> ------------------------------
> 
> Message: 2
> Date: Thu, 23 Feb 2012 09:19:21 +0100
> From: Martin Pala <[email protected]>
> To: This is the general mailing list for monit
>       <[email protected]>
> Subject: Re: Errors when trying to build monit
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> 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
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://lists.nongnu.org/archive/html/monit-general/attachments/20120223/99d2e9ad/attachment.html>
> 
> ------------------------------
> 
> _______________________________________________
> monit-general mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/monit-general
> 
> 
> End of monit-general Digest, Vol 109, Issue 16
> **********************************************
                                          
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to