On 15 Jan 2004 at 10:12, Mark Crispin wrote: > On Thu, 15 Jan 2004, Benedict White wrote: > > /bin/sh: line 1: tools/an: Permission denied > > The problem is that the imap-2002e/tools/an shell script needs to be > executable and it is not. It is executable (protection 775) in the UW > distribution, so something turned the executable bit off. >
DOH. My mistake. I re un tarred it and it worked fine up to a point. > Where did you get the package? If you got it directly from UW, did you > unpack it preserving protections? Did you do anything else to change file > protections? > I got it direct from UW, but I calim the 5th and refuse to answer any more questions as to how I messed up. <G> Now I have another compile problem. I have logged the results to a file (used telnet) and here is what I get, but snipped: linux:/home/benedict/imap/imap-2002e # make lsu make build EXTRACFLAGS='' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATOR S='' PASSWDTYPE=std SSLTYPE=nopwd EXTRASPECIALS='' BUILDTYPE=lnp \ SPECIALS="SSLDIR=/usr/ssl SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib" make[1]: Entering directory `/home/benedict/imap/imap-2002e' Building c-client for lnp... echo `cat SPECIALS` > c-client/SPECIALS cd c-client;make lnp EXTRACFLAGS=''\ EXTRALDFLAGS=''\ EXTRADRIVERS='mbox'\ EXTRAAUTHENTICATORS=''\ PASSWDTYPE=std SSLTYPE=nopwd\ SSLDIR=/usr/ssl SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib make[2]: Entering directory `/home/benedict/imap/imap-2002e/c-client' make build EXTRACFLAGS='' EXTRALDFLAGS='' EXTRADRIVERS='mbox' <Big Snip> Building with SSL ln -s ssl_unix.c osdepssl.c echo -I/usr/include/openssl -I/usr/include/openssl/openssl - DSSL_CERT_DIRECTORY= \"/usr/ssl/certs\" -DSSL_KEY_DIRECTORY=\"/usr/ssl/certs\" >> OSCFLAGS echo " ssl_onceonlyinit ();" >> linkage.c echo -L/usr/lib -lssl -lcrypto >> LDFLAGS Building with SSL and plaintext passwords disabled unless SSL/TLS echo " mail_parameters (NIL,SET_DISABLEPLAINTEXT,(void *) 2);" >> linkage.c cat osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c Building OS-dependent module If you get No such file error messages for files x509.h, ssl.h, pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL is not installed on your system. Either install OpenSSL first or build with command: make lnx SSLTYPE=none `cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c osdep.c:66:31: security/pam_appl.h: No such file or directory osdep.c:82: warning: `struct pam_response' declared inside parameter list osdep.c:82: warning: its scope is only this definition or declaration, which is probably not what you want osdep.c:82: warning: `struct pam_message' declared inside parameter list osdep.c: In function `checkpw_conv': osdep.c:86: error: invalid application of `sizeof' to an incomplete type osdep.c:87: error: dereferencing pointer to incomplete type osdep.c:88: error: `PAM_PROMPT_ECHO_ON' undeclared (first use in this function) osdep.c:88: error: (Each undeclared identifier is reported only once osdep.c:88: error: for each function it appears in.) osdep.c:89: error: invalid use of undefined type `struct pam_response' osdep.c:89: error: dereferencing pointer to incomplete type osdep.c:89: error: `PAM_SUCCESS' undeclared (first use in this function) osdep.c:90: error: invalid use of undefined type `struct pam_response' osdep.c:90: error: dereferencing pointer to incomplete type osdep.c:92: error: `PAM_PROMPT_ECHO_OFF' undeclared (first use in this function) osdep.c:93: error: invalid use of undefined type `struct pam_response' osdep.c:93: error: dereferencing pointer to incomplete type osdep.c:94: error: invalid use of undefined type `struct pam_response' osdep.c:94: error: dereferencing pointer to incomplete type osdep.c:96: error: `PAM_TEXT_INFO' undeclared (first use in this function) osdep.c:97: error: `PAM_ERROR_MSG' undeclared (first use in this function) osdep.c:98: error: invalid use of undefined type `struct pam_response' osdep.c:98: error: dereferencing pointer to incomplete type osdep.c:99: error: invalid use of undefined type `struct pam_response' osdep.c:99: error: dereferencing pointer to incomplete type osdep.c:103: error: `PAM_CONV_ERR' undeclared (first use in this function) osdep.c: In function `checkpw': osdep.c:117: error: `pam_handle_t' undeclared (first use in this function) osdep.c:117: error: `hdl' undeclared (first use in this function) osdep.c:118: error: storage size of `conv' isn't known osdep.c:125: error: `PAM_SUCCESS' undeclared (first use in this function) osdep.c:126: error: `PAM_RHOST' undeclared (first use in this function) osdep.c:129: error: `PAM_ESTABLISH_CRED' undeclared (first use in this function) osdep.c:131: error: `PAM_DELETE_CRED' undeclared (first use in this function) osdep.c:132: error: `PAM_AUTH_ERR' undeclared (first use in this function) make[3]: *** [osdep.o] Error 1 make[3]: Leaving directory `/home/benedict/imap/imap-2002e/c-client' make[2]: *** [lnp] Error 2 make[2]: Leaving directory `/home/benedict/imap/imap-2002e/c-client' make[1]: *** [OSTYPE] Error 2 make[1]: Leaving directory `/home/benedict/imap/imap-2002e' make: *** [lsu] Error 2 <end> Now I have had a look, and the /usr/include/ssl and openssl directories are there, but can't seem to find pam_appl.h. I have also installed open ssl. Any help for me (a newbie) would be appreciated. Kind regards Benedict White
