IMAP + PHP Question/Problem

Senad

Verified User
Joined
Jan 14, 2005
Messages
79
I'm trying to install PHP with IMAP on FreeBSD and I'm having a little trouble.

The instructions are as follows:
Code:
cd /home

mkdir build

cd build

wget [url]http://files.directadmin.com/services/imapback.tar.gz[/url]

tar -zxvf imapback.tar.gz

cd imap-2002e

./buildit

cd c-client

make slx EXTRACFLAGS=-I/usr/kerberos/include EXTRALDFLAGS=-I/usr/kerberos/lib

mkdir /usr/local/imap-2000e/

mkdir /usr/local/imap-2000e/lib

mkdir /usr/local/imap-2000e/include

cp *.h /usr/local/imap-2000e/include

cp *.c /usr/local/imap-2000e/lib

cp c-client.a /usr/local/imap-2000e/lib

mv /usr/local/imap-2000e/lib/c-client.a /usr/local/imap-2000e/lib/libc-client.a

cd /usr/local/directadmin/customapache

nano -w configure.php  (Add --with-imap=/usr/local/imap-2000e \     to php config)

./build php n

I'm recieving the following error:
Code:
# ./buildit
make build EXTRACFLAGS='-I/usr/kerberos/include -L/usr/kerberos/lib' EXTRALDFLAGS='-I/usr/kerberos/include -L/usr/kerberos/lib -ldl -lkrb5 -lk5crypto -lcom_err' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=unix EXTRASPECIALS='' BUILDTYPE=slx
Building c-client for slx...
echo `cat SPECIALS`  > c-client/SPECIALS
cd c-client;make slx EXTRACFLAGS='-I/usr/kerberos/include -L/usr/kerberos/lib' EXTRALDFLAGS='-I/usr/kerberos/include -L/usr/kerberos/lib -ldl -lkrb5 -lk5crypto -lcom_err' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=unix  
You are building for libc6/glibc versions of Secure Linux
If you want libc5 versions you must use sl5 instead!
If you want libc4 versions you must use sl4 instead!
make build EXTRACFLAGS='-I/usr/kerberos/include -L/usr/kerberos/lib' EXTRALDFLAGS='-I/usr/kerberos/include -L/usr/kerberos/lib -ldl -lkrb5 -lk5crypto -lcom_err' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=unix `cat SPECIALS` OS=slx  SIGTYPE=psx CHECKPW=psx CRXTYPE=nfs  SPOOLDIR=/var/spool  ACTIVEFILE=/var/lib/news/active  RSHPATH=/usr/bin/rsh  BASECFLAGS="-g -fno-omit-frame-pointer -O6"  BASELDFLAGS="-lcrypt"
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 '-I/usr/kerberos/include -L/usr/kerberos/lib' > 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 -lcrypt -I/usr/kerberos/include -L/usr/kerberos/lib -ldl -lkrb5 -lk5crypto -lcom_err > 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 slx > OSTYPE
./drivers mbox imap nntp pop3 mh mx mbx tenex mtx mmdf unix news phile dummy
./mkauths  md5 pla log
echo -DMD5ENABLE=\"/etc/cram-md5.pwd\" >> OSCFLAGS
ln -s os_slx.h osdep.h
ln -s os_slx.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 slx != sc5 -a slx != sco) && ln -s nfstnew.c nfstest.c || ln -s nfstold.c nfstest.c'
Standard password authentication
ln -s ckp_psx.c osdepckp.c
Building with SSL
ln -s ssl_unix.c osdepssl.c
echo -I/usr/include/openssl -I/usr/include/openssl/openssl -DSSL_CERT_DIRECTORY=\"/usr/include/openssl/certs\" -DSSL_KEY_DIRECTORY=\"/usr/include/openssl/certs\" >> OSCFLAGS
echo "  ssl_onceonlyinit ();" >> linkage.c
echo -L/usr/lib -lssl -lcrypto  >> LDFLAGS
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 slx SSLTYPE=none
`cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c
osdep.c:35:20: shadow.h: No such file or directory
In file included from osdep.c:46:
tz_sv4.c: In function `rfc822_timezone':
tz_sv4.c:30: error: `daylight' undeclared (first use in this function)
tz_sv4.c:30: error: (Each undeclared identifier is reported only once
tz_sv4.c:30: error: for each function it appears in.)
osdep.c: In function `checkpw':
osdep.c:113: warning: assignment makes pointer from integer without a cast
osdep.c:113: error: dereferencing pointer to incomplete type
osdep.c:114: error: dereferencing pointer to incomplete type
osdep.c:114: error: dereferencing pointer to incomplete type
osdep.c:115: error: dereferencing pointer to incomplete type
osdep.c:115: error: dereferencing pointer to incomplete type
osdep.c:116: error: dereferencing pointer to incomplete type
osdep.c:116: error: dereferencing pointer to incomplete type
osdep.c:117: error: dereferencing pointer to incomplete type
osdep.c:117: error: dereferencing pointer to incomplete type
osdep.c:117: error: dereferencing pointer to incomplete type
osdep.c:118: error: dereferencing pointer to incomplete type
osdep.c:118: error: dereferencing pointer to incomplete type
osdep.c:119: error: dereferencing pointer to incomplete type
osdep.c:119: error: dereferencing pointer to incomplete type
osdep.c:120: error: dereferencing pointer to incomplete type
osdep.c:120: error: dereferencing pointer to incomplete type
osdep.c:120: error: dereferencing pointer to incomplete type
osdep.c:127: error: dereferencing pointer to incomplete type
osdep.c:127: error: dereferencing pointer to incomplete type
*** Error code 1

Stop in /home/build/imap-2002e/c-client.
*** Error code 1

Stop in /home/build/imap-2002e/c-client.
*** Error code 1

Stop in /home/build/imap-2002e.
*** Error code 1

Stop in /home/build/imap-2002e.

Any ideas why I'm getting the error?
 
When I do the buildit command I also get the following:


make sslunix
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Building in PARTIAL compliance with IESG security requirements:
+ Compliant:
++ TLS/SSL encryption is supported
+ Non-compliant:
++ Unencrypted plaintext passwords are permitted
+
+ In order to rectify this problem, you MUST build with:
++ SSLTYPE=unix.nopwd
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Do you want to continue this build anyway? Type y or n please:
 
Back
Top