LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-17-2004, 09:24 PM   #1
zapperabhi
LQ Newbie
 
Registered: Jan 2004
Posts: 24

Rep: Reputation: 16
Question Cannot build WU-IMAP with make lnp


Hi all,
Wanted to build wu-imap with pam support
the BUILD notes say do "make lnp" which fails.
when i try "make lrh" it compiles without errors but without pam support.
can someone enlighten me out of this problem.
i do not want ssl support and passwd encryption.
thanks,
regards
-zapp

# make lnp
make sslnopwd
make[1]: Entering directory `/tmp/imap/imap-2002e'
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Building in full compliance with IESG security requirements:
++ TLS/SSL encryption is supported
++ Unencrypted plaintext passwords are prohibited
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
make[1]: Leaving directory `/tmp/imap/imap-2002e'
Applying an process to sources...
tools/an "ln -s" src/c-client c-client
tools/an "ln -s" src/ansilib c-client
tools/an "ln -s" src/charset c-client
tools/an "ln -s" src/osdep/unix c-client
tools/an "ln -s" src/mtest mtest
tools/an "ln -s" src/ipopd ipopd
tools/an "ln -s" src/imapd imapd
tools/an "ln -s" src/mailutil mailutil
tools/an "ln -s" src/mlock mlock
tools/an "ln -s" src/dmail dmail
tools/an "ln -s" src/tmail tmail
ln -s tools/an .
make build EXTRACFLAGS='' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=nopwd EXTRASPECIALS='' BUILDTYPE=lnp
make[1]: Entering directory `/tmp/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\

make[2]: Entering directory `/tmp/imap/imap-2002e/c-client'
make build EXTRACFLAGS='' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=nopwd `cat SPECIALS` OS=lnx \
SIGTYPE=psx CHECKPW=pam CRXTYPE=nfs \
SPOOLDIR=/var/spool \
ACTIVEFILE=/var/lib/news/active \
RSHPATH=/usr/bin/rsh \
BASECFLAGS="-g -fno-omit-frame-pointer -O6" \
BASELDFLAGS="-lpam -ldl"
make[3]: Entering directory `/tmp/imap/imap-2002e/c-client'
sh -c 'rm -rf auths.c crexcl.c nfstest.c linkage.[ch] siglocal.c osdep*.[ch] *.o ARCHIVE *FLAGS *TYPE c-client.a || true'
Once-only environment setup...
echo cc > CCTYPE
echo -g -fno-omit-frame-pointer -O6 '' > CFLAGS
echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto \
-DMAILSPOOL=\"/var/spool/mail\" \
-DANONYMOUSHOME=\"/var/spool/mail/anonymous\" \
-DACTIVEFILE=\"/var/lib/news/active\" -DNEWSSPOOL=\"/var/spool/news\" \
-DRSHPATH=\"/usr/bin/rsh\" -DLOCKPGM=\"/etc/mlock\" > OSCFLAGS
echo -lpam -ldl > LDFLAGS
echo "ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o smtp.o imap4r1.o pop3.o unix.o mbox.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o;ranlib c-client.a" > ARCHIVE
echo lnx > OSTYPE
./drivers mbox imap nntp pop3 mh mx mbx tenex mtx mmdf unix news phile dummy
./mkauths md5 pla log
make[4]: Entering directory `/tmp/imap/imap-2002e/c-client'
echo -DMD5ENABLE=\"/etc/cram-md5.pwd\" >> OSCFLAGS
make[4]: Leaving directory `/tmp/imap/imap-2002e/c-client'
ln -s os_lnx.h osdep.h
ln -s os_lnx.c osdepbas.c
ln -s log_std.c osdeplog.c
ln -s sig_psx.c siglocal.c
ln -s crx_nfs.c crexcl.c
sh -c '(test -f /usr/include/sys/statvfs.h -a lnx != sc5 -a lnx != sco) && ln -s nfstnew.c nfstest.c || ln -s nfstold.c nfstest.c'
Standard password authentication
ln -s ckp_pam.c osdepckp.c
Building with SSL
ln -s ssl_unix.c osdepssl.c
echo -I/usr/local/ssl/include -I/usr/local/ssl/include/openssl -DSSL_CERT_DIRECTORY=\"/usr/local/ssl/certs\" -DSSL_KEY_DIRECTORY=\"/usr/local/ssl/certs\" >> OSCFLAGS
echo " ssl_onceonlyinit ();" >> linkage.c
echo -L/usr/local/ssl/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:217:18: x509.h: No such file or directory
osdep.c:218:17: ssl.h: No such file or directory
osdep.c:220:17: pem.h: No such file or directory
osdep.c:221:20: buffer.h: No such file or directory
osdep.c:222:17: bio.h: No such file or directory
osdep.c:223:20: crypto.h: No such file or directory
osdep.c:224:18: rand.h: No such file or directory
osdep.c:235: error: syntax error before "SSL_CTX"
osdep.c:235: warning: no semicolon at end of struct or union
osdep.c:236: warning: data definition has no type or storage class
osdep.c:240: error: syntax error before '}' token
osdep.c:240: warning: data definition has no type or storage class
In file included from osdep.c:242:
sslio.h:24: error: syntax error before "SSLSTREAM"
sslio.h:24: warning: no semicolon at end of struct or union
sslio.h:25: warning: data definition has no type or storage class
sslio.h:26: error: syntax error before '*' token
sslio.h:27: error: syntax error before '*' token
sslio.h:28: error: syntax error before '*' token
sslio.h:29: error: syntax error before '*' token
sslio.h:30: error: syntax error before '*' token
sslio.h:30: error: `close' redeclared as different kind of symbol
/usr/include/unistd.h:305: error: previous declaration of `close'
sslio.h:31: error: syntax error before '*' token
sslio.h:32: error: syntax error before '*' token
sslio.h:33: error: syntax error before '*' token
sslio.h:34: error: syntax error before '*' token
sslio.h:41: error: syntax error before "SSLSTREAM"
sslio.h:41: warning: no semicolon at end of struct or union
sslio.h:45: error: syntax error before '}' token
sslio.h:45: warning: data definition has no type or storage class
sslio.h:50: error: syntax error before '*' token
sslio.h:50: warning: data definition has no type or storage class
sslio.h:51: error: syntax error before '*' token
sslio.h:51: warning: data definition has no type or storage class
sslio.h:52: error: syntax error before '*' token
sslio.h:53: error: syntax error before '*' token
sslio.h:54: error: syntax error before '*' token
sslio.h:55: error: syntax error before '*' token
sslio.h:56: error: syntax error before '*' token
sslio.h:57: error: syntax error before '*' token
sslio.h:58: error: syntax error before '*' token
sslio.h:59: error: syntax error before '*' token
sslio.h:60: error: syntax error before '*' token
sslio.h:61: error: syntax error before '*' token
osdep.c:246: error: syntax error before '*' token
osdep.c:246: warning: data definition has no type or storage class
osdep.c:247: error: syntax error before '*' token
osdep.c:248: error: syntax error before "X509_STORE_CTX"
osdep.c:251: error: syntax error before '*' token
osdep.c:252: error: syntax error before '*' token
osdep.c:252: error: syntax error before '*' token
osdep.c:252: warning: data definition has no type or storage class
osdep.c:257: error: variable `ssldriver' has initializer but incomplete type
osdep.c:258: warning: excess elements in struct initializer
osdep.c:258: warning: (near initialization for `ssldriver')
osdep.c:259: warning: excess elements in struct initializer
osdep.c:259: warning: (near initialization for `ssldriver')
osdep.c:260: warning: excess elements in struct initializer
osdep.c:260: warning: (near initialization for `ssldriver')
osdep.c:261: warning: excess elements in struct initializer
osdep.c:261: warning: (near initialization for `ssldriver')
osdep.c:262: warning: excess elements in struct initializer
osdep.c:262: warning: (near initialization for `ssldriver')
osdep.c:263: warning: excess elements in struct initializer
osdep.c:263: warning: (near initialization for `ssldriver')
osdep.c:264: warning: excess elements in struct initializer
osdep.c:264: warning: (near initialization for `ssldriver')
osdep.c:265: warning: excess elements in struct initializer
osdep.c:265: warning: (near initialization for `ssldriver')
osdep.c:266: warning: excess elements in struct initializer
osdep.c:266: warning: (near initialization for `ssldriver')
osdep.c:267: warning: excess elements in struct initializer
osdep.c:267: warning: (near initialization for `ssldriver')
osdep.c:269: warning: excess elements in struct initializer
osdep.c:269: warning: (near initialization for `ssldriver')
osdep.c:271: error: syntax error before '*' token
osdep.c:271: warning: data definition has no type or storage class
osdep.c:316: error: syntax error before '*' token
osdep.c:330: error: syntax error before '*' token
osdep.c:342: error: syntax error before '*' token
osdep.c: In function `ssl_start':
osdep.c:348: error: `stream' undeclared (first use in this function)
osdep.c:348: error: (Each undeclared identifier is reported only once
osdep.c:348: error: for each function it appears in.)
osdep.c:348: error: syntax error before ')' token
osdep.c:368: error: syntax error before ')' token
osdep.c: At top level:
osdep.c:396: error: syntax error before '*' token
osdep.c: In function `ssl_start_work':
osdep.c:398: error: `BIO' undeclared (first use in this function)
osdep.c:398: error: `bio' undeclared (first use in this function)
osdep.c:399: error: `X509' undeclared (first use in this function)
osdep.c:399: error: `cert' undeclared (first use in this function)
osdep.c:404: warning: assignment from incompatible pointer type
osdep.c:405: error: `stream' undeclared (first use in this function)
osdep.c:405: error: `flags' undeclared (first use in this function)
osdep.c:412: error: `SSL_VERIFY_NONE' undeclared (first use in this function)
osdep.c:413: error: `SSL_VERIFY_PEER' undeclared (first use in this function)
osdep.c:417: error: `SSL' undeclared (first use in this function)
osdep.c:417: error: syntax error before ')' token
osdep.c:419: error: `BIO_NOCLOSE' undeclared (first use in this function)
osdep.c:435: warning: passing arg 1 of `ssl_compare_hostnames' from incompatible pointer type
osdep.c:439: warning: passing arg 2 of pointer to function from incompatible pointer type
osdep.c: At top level:
osdep.c:454: error: syntax error before "X509_STORE_CTX"
osdep.c: In function `ssl_open_verify':
osdep.c:459: error: `ok' undeclared (first use in this function)
osdep.c:461: error: `ctx' undeclared (first use in this function)
osdep.c: At top level:
osdep.c:515: error: syntax error before '*' token
osdep.c: In function `ssl_getline':
osdep.c:522: error: `stream' undeclared (first use in this function)
osdep.c: At top level:
osdep.c:565: error: syntax error before '*' token
osdep.c: In function `ssl_getbuffer':
osdep.c:568: error: `size' undeclared (first use in this function)
osdep.c:569: error: `stream' undeclared (first use in this function)
osdep.c:572: error: `buffer' undeclared (first use in this function)
osdep.c: At top level:
osdep.c:587: error: syntax error before '*' token
osdep.c: In function `ssl_getdata':
osdep.c:596: error: `stream' undeclared (first use in this function)
osdep.c:623: error: `SSL_ERROR_WANT_READ' undeclared (first use in this function)
osdep.c: At top level:
osdep.c:638: error: syntax error before '*' token
osdep.c: In function `ssl_soutr':
osdep.c:640: error: `stream' undeclared (first use in this function)
osdep.c:640: error: `string' undeclared (first use in this function)
osdep.c: At top level:
osdep.c:651: error: syntax error before '*' token
osdep.c: In function `ssl_sout':
osdep.c:655: error: `stream' undeclared (first use in this function)
osdep.c:658: error: `size' undeclared (first use in this function)
osdep.c:658: error: `string' undeclared (first use in this function)
osdep.c: At top level:
osdep.c:670: error: syntax error before '*' token
osdep.c: In function `ssl_close':
osdep.c:672: error: `stream' undeclared (first use in this function)
osdep.c: At top level:
osdep.c:682: error: syntax error before '*' token
osdep.c: In function `ssl_abort':
osdep.c:685: error: `stream' undeclared (first use in this function)
osdep.c: At top level:
osdep.c:707: error: syntax error before '*' token
osdep.c: In function `ssl_host':
osdep.c:709: error: `stream' undeclared (first use in this function)
osdep.c: At top level:
osdep.c:718: error: syntax error before '*' token
osdep.c: In function `ssl_remotehost':
osdep.c:720: error: `stream' undeclared (first use in this function)
osdep.c: At top level:
osdep.c:729: error: syntax error before '*' token
osdep.c: In function `ssl_port':
osdep.c:731: error: `stream' undeclared (first use in this function)
osdep.c: At top level:
osdep.c:740: error: syntax error before '*' token
osdep.c: In function `ssl_localhost':
osdep.c:742: error: `stream' undeclared (first use in this function)
osdep.c: In function `ssl_server_init':
osdep.c:776: error: `stream' undeclared (first use in this function)
osdep.c:776: error: syntax error before ')' token
osdep.c:798: error: `SSL_OP_ALL' undeclared (first use in this function)
osdep.c:809: error: `SSL_FILETYPE_PEM' undeclared (first use in this function)
osdep.c:827: error: syntax error before ')' token
osdep.c:829: error: request for member `sslstream' in something not a structure or union
osdep.c:831: error: request for member `octr' in something not a structure or union
osdep.c:833: error: request for member `optr' in something not a structure or union
osdep.c:833: error: request for member `obuf' in something not a structure or union
osdep.c: At top level:
osdep.c:856: error: syntax error before '*' token
osdep.c:856: error: syntax error before '*' token
osdep.c: In function `ssl_genkey':
osdep.c:859: error: syntax error before '*' token
osdep.c:860: error: `key' undeclared (first use in this function)
osdep.c:862: error: `export' undeclared (first use in this function)
osdep.c:862: error: `keylength' undeclared (first use in this function)
osdep.c:862: error: `RSA_F4' undeclared (first use in this function)
osdep.c: In function `ssl_server_input_wait':
osdep.c:883: error: `stream' undeclared (first use in this function)
osdep.c:886: error: request for member `sslstream' in something not a structure or union
In file included from osdep.c:904:
sslstdio.c: In function `PBIN':
sslstdio.c:28: error: request for member `sslstream' in something not a structure or union
sslstdio.c:30: error: request for member `sslstream' in something not a structure or union
sslstdio.c:31: error: request for member `sslstream' in something not a structure or union
sslstdio.c: In function `PSIN':
sslstdio.c:49: error: request for member `sslstream' in something not a structure or union
sslstdio.c:50: error: request for member `sslstream' in something not a structure or union
sslstdio.c:50: error: request for member `sslstream' in something not a structure or union
sslstdio.c:52: error: request for member `sslstream' in something not a structure or union
sslstdio.c: In function `PSINR':
sslstdio.c:72: error: request for member `sslstream' in something not a structure or union
sslstdio.c: In function `PBOUT':
sslstdio.c:98: error: request for member `octr' in something not a structure or union
sslstdio.c:99: error: request for member `octr' in something not a structure or union
sslstdio.c:100: error: request for member `optr' in something not a structure or union
sslstdio.c: In function `PSOUT':
sslstdio.c:114: error: request for member `octr' in something not a structure or union
sslstdio.c:115: error: request for member `optr' in something not a structure or union
sslstdio.c:116: error: request for member `octr' in something not a structure or union
sslstdio.c: In function `PSOUTR':
sslstdio.c:133: error: request for member `octr' in something not a structure or union
sslstdio.c:135: error: request for member `optr' in something not a structure or union
sslstdio.c:135: error: request for member `octr' in something not a structure or union
sslstdio.c:136: error: request for member `optr' in something not a structure or union
sslstdio.c:137: error: request for member `octr' in something not a structure or union
sslstdio.c: In function `PFLUSH':
sslstdio.c:155: error: request for member `sslstream' in something not a structure or union
sslstdio.c:155: error: request for member `obuf' in something not a structure or union
sslstdio.c:156: error: request for member `octr' in something not a structure or union
sslstdio.c:158: error: request for member `optr' in something not a structure or union
sslstdio.c:158: error: request for member `obuf' in something not a structure or union
sslstdio.c:159: error: request for member `octr' in something not a structure or union
osdep.c: At top level:
osdep.c:257: error: storage size of `ssldriver' isn't known
make[3]: *** [osdep.o] Error 1
make[3]: Leaving directory `/tmp/imap/imap-2002e/c-client'
make[2]: *** [lnp] Error 2
make[2]: Leaving directory `/tmp/imap/imap-2002e/c-client'
make[1]: *** [OSTYPE] Error 2
make[1]: Leaving directory `/tmp/imap/imap-2002e'
make: *** [lnp] Error 2
 
Old 03-17-2004, 09:41 PM   #2
zapperabhi
LQ Newbie
 
Registered: Jan 2004
Posts: 24

Original Poster
Rep: Reputation: 16
well, i had to disable SSL support by editing the Makefile.
But it seems that pam support is still missing.
session required pam_mkhomedir.so umask=0022
does not seem to be working.
-regards
-zapp
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mepis 2.6.7 Kernel make/build error Seribicus Linux - Software 0 02-17-2005 01:36 AM
make courier-imap use shell users Red Squirrel Linux - Software 2 12-11-2004 02:09 PM
courier-imap authlib error while running make manish_2479 Linux - Networking 0 08-23-2004 04:54 PM
'make' fails while trying to build jonnycarlos Linux - Software 0 04-29-2004 10:14 PM
how to make modifications to a custom kernel build? h/w Linux - Newbie 2 11-09-2003 04:47 PM


All times are GMT -5. The time now is 01:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration