?
Solved

Recompile PHP-IMAP

Posted on 2011-03-22
2
Medium Priority
?
862 Views
Last Modified: 2012-05-11
We have a helpdesk system, kayako. Last version is 4. we are setting it up on a test server now. We have a problem with the mail parser function. We have exchange 2007 and kayako is set up for IMAP SSL. Suspect the issue is with PHP-IMAP and KERBEROS in relation to exchange 2007 server. was hoping to avoid recompiling PHP-IMAP but alas it looks like that is the solution.

However, when using THIS guide, i am getting a bunch of errors. attaching make output below. This is a critical and very urgent issue.
make lfd IP6=4
make build EXTRACFLAGS='-fPIC' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=nopwd IP=4 EXTRASPECIALS='' BUILDTYPE=lnp IP=4 \
        SPECIALS="SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib SSLCERTS=/etc/pki/tls/certs SSLKEYS=/etc/pki/tls/private GSSDIR=/usr/kerberos"
make[1]: Entering directory `/tmp/imap-2007e'
make[2]: Entering directory `/tmp/imap-2007e'
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Building with IPv4 support
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
make[2]: Leaving directory `/tmp/imap-2007e'
Building c-client for lnp...
echo `cat SPECIALS`  > c-client/SPECIALS
cd c-client;make lnp EXTRACFLAGS='-fPIC'\
         EXTRALDFLAGS=''\
         EXTRADRIVERS='mbox'\
         EXTRAAUTHENTICATORS=''\
         PASSWDTYPE=std SSLTYPE=nopwd IP=4\
         SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib SSLCERTS=/etc/pki/tls/certs SSLKEYS=/etc/pki/tls/private GSSDIR=/usr/kerberos
make[2]: Entering directory `/tmp/imap-2007e/c-client'
make build EXTRACFLAGS='-fPIC' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=nopwd IP=4 `cat SPECIALS` OS=slx \
         SIGTYPE=psx CHECKPW=pam CRXTYPE=nfs \
         SPOOLDIR=/var/spool \
         ACTIVEFILE=/var/lib/news/active \
         RSHPATH=/usr/bin/rsh \
         BASECFLAGS="-g -O2 -pipe -fno-omit-frame-pointer" \
         BASELDFLAGS="-lpam -ldl"
make[3]: Entering directory `/tmp/imap-2007e/c-client'
sh -c 'rm -rf auths.c crexcl.c ip_unix.c linkage.[ch] siglocal.c osdep*.[ch] *.o ARCHIVE *FLAGS *TYPE c-client.a || true'
Once-only environment setup...
echo cc > CCTYPE
echo -g -O2 -pipe -fno-omit-frame-pointer '-fPIC' -DCHUNKSIZE=65536 > CFLAGS
echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto \
         -DMD5ENABLE=\"/etc/cram-md5.pwd\" -DMAILSPOOL=\"/var/spool/mail\" \
         -DANONYMOUSHOME=\"/var/spool/mail/anonymous\" \
         -DACTIVEFILE=\"/var/lib/news/active\" -DNEWSSPOOL=\"/var/spool/news\" \
         -DRSHPATH=\"/usr/bin/rsh\" -DLOCKPGM=\"\" \
         -DLOCKPGM1=\"/usr/libexec/mlock\" -DLOCKPGM2=\"/usr/sbin/mlock\" \
         -DLOCKPGM3=\"/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 utf8aux.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 mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o mix.o;ranlib c-client.a" > ARCHIVE
echo slx > OSTYPE
./drivers mbox imap nntp pop3 mix mx mbx tenex mtx mh mmdf unix news phile dummy
./mkauths  ext md5 pla log
echo "  mail_versioncheck (CCLIENTVERSION);" >> linkage.c
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
ln -s ip4_unix.c ip_unix.c
sh -c '(test slx = sc5 -o slx = sco -o ! -f /usr/include/sys/statvfs.h) && echo -DNOFSTATVFS >> OSCFLAGS || fgrep statvfs64 /usr/include/sys/statvfs.h > /dev/null || echo -DNOFSTATVFS64 >> OSCFLAGS'
Standard password authentication
ln -s ckp_pam.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=\"/etc/pki/tls/certs\" -DSSL_KEY_DIRECTORY=\"/etc/pki/tls/private\" >> 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 slx SSLTYPE=none
`cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c
osdep.c:89:31: error: security/pam_appl.h: No such file or directory
osdep.c:106: warning: âstruct pam_responseâ declared inside parameter list
osdep.c:106: warning: âstruct pam_messageâ declared inside parameter list
osdep.c: In function âcheckpw_convâ:
osdep.c:110: error: invalid application of âsizeofâ to incomplete type âstruct pam_responseâ
osdep.c:111: error: dereferencing pointer to incomplete type
osdep.c:112: error: âPAM_PROMPT_ECHO_ONâ undeclared (first use in this function)
osdep.c:112: error: (Each undeclared identifier is reported only once
osdep.c:112: error: for each function it appears in.)
osdep.c:113: error: invalid use of undefined type âstruct pam_responseâ
osdep.c:113: error: dereferencing pointer to incomplete type
osdep.c:113: error: âPAM_SUCCESSâ undeclared (first use in this function)
osdep.c:114: error: invalid use of undefined type âstruct pam_responseâ
osdep.c:114: error: dereferencing pointer to incomplete type
osdep.c:116: error: âPAM_PROMPT_ECHO_OFFâ undeclared (first use in this function)
osdep.c:117: error: invalid use of undefined type âstruct pam_responseâ
osdep.c:117: error: dereferencing pointer to incomplete type
osdep.c:118: error: invalid use of undefined type âstruct pam_responseâ
osdep.c:118: error: dereferencing pointer to incomplete type
osdep.c:120: error: âPAM_TEXT_INFOâ undeclared (first use in this function)
osdep.c:121: error: âPAM_ERROR_MSGâ undeclared (first use in this function)
osdep.c:122: error: invalid use of undefined type âstruct pam_responseâ
osdep.c:122: error: dereferencing pointer to incomplete type
osdep.c:123: error: invalid use of undefined type âstruct pam_responseâ
osdep.c:123: error: dereferencing pointer to incomplete type
osdep.c:127: error: âPAM_CONV_ERRâ undeclared (first use in this function)
osdep.c: At top level:
osdep.c:138: error: expected â)â before â*â token
osdep.c: In function âcheckpwâ:
osdep.c:155: error: âpam_handle_tâ undeclared (first use in this function)
osdep.c:155: error: âhdlâ undeclared (first use in this function)
osdep.c:156: error: storage size of âconvâ isnât known
osdep.c:164: error: âPAM_SUCCESSâ undeclared (first use in this function)
osdep.c:165: error: âPAM_RHOSTâ undeclared (first use in this function)
osdep.c:168: error: âPAM_ESTABLISH_CREDâ undeclared (first use in this function)
osdep.c:184: error: âcheckpw_cleanupâ undeclared (first use in this function)
osdep.c:266:20: error: x509v3.h: No such file or directory
osdep.c:267:17: error: ssl.h: No such file or directory
osdep.c:269:17: error: pem.h: No such file or directory
osdep.c:270:20: error: buffer.h: No such file or directory
osdep.c:271:17: error: bio.h: No such file or directory
osdep.c:272:20: error: crypto.h: No such file or directory
osdep.c:273:18: error: rand.h: No such file or directory
osdep.c: At top level:
osdep.c:284: error: expected specifier-qualifier-list before âSSL_CTXâ
osdep.c:297: error: expected declaration specifiers or â...â before âX509_STORE_CTXâ
osdep.c:298: error: expected â)â before â*â token
osdep.c:303: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
osdep.c: In function âssl_start_workâ:
osdep.c:446: error: âBIOâ undeclared (first use in this function)
osdep.c:446: error: âbioâ undeclared (first use in this function)
osdep.c:447: error: âX509â undeclared (first use in this function)
osdep.c:447: error: âcertâ undeclared (first use in this function)
osdep.c:458: error: âSSLSTREAMâ has no member named âcontextâ
osdep.c:462: error: âSSLSTREAMâ has no member named âcontextâ
osdep.c:465: error: âSSLSTREAMâ has no member named âcontextâ
osdep.c:465: error: âSSL_VERIFY_NONEâ undeclared (first use in this function)
osdep.c:466: error: âSSLSTREAMâ has no member named âcontextâ
osdep.c:466: error: âSSL_VERIFY_PEERâ undeclared (first use in this function)
osdep.c:468: error: âSSLSTREAMâ has no member named âcontextâ
osdep.c:471: error: âSSLSTREAMâ has no member named âcontextâ
osdep.c:475: error: âSSLSTREAMâ has no member named âcontextâ
osdep.c:482: error: âEVP_PKEYâ undeclared (first use in this function)
osdep.c:482: error: âkeyâ undeclared (first use in this function)
osdep.c:485: error: âSSLSTREAMâ has no member named âcontextâ
osdep.c:495: error: âSSLSTREAMâ has no member named âconâ
osdep.c:495: error: âSSLâ undeclared (first use in this function)
osdep.c:495: error: expected expression before â)â token
osdep.c:497: error: âBIO_NOCLOSEâ undeclared (first use in this function)
osdep.c:498: error: âSSLSTREAMâ has no member named âconâ
osdep.c:499: error: âSSLSTREAMâ has no member named âconâ
osdep.c:500: error: âSSLSTREAMâ has no member named âconâ
osdep.c:500: error: âSSLSTREAMâ has no member named âconâ
osdep.c:502: error: âSSLSTREAMâ has no member named âconâ
osdep.c:506: error: âSSLSTREAMâ has no member named âconâ
osdep.c: At top level:
osdep.c:523: error: expected declaration specifiers or â...â before âX509_STORE_CTXâ
osdep.c: In function âssl_open_verifyâ:
osdep.c:530: error: âctxâ undeclared (first use in this function)
osdep.c: At top level:
osdep.c:552: error: expected â)â before â*â token
osdep.c: In function âssl_getline_workâ:
osdep.c:657: error: âSSLSTREAMâ has no member named âiptrâ
osdep.c:657: error: âSSLSTREAMâ has no member named âictrâ
osdep.c:658: error: âSSLSTREAMâ has no member named âiptrâ
osdep.c:671: error: âSSLSTREAMâ has no member named âiptrâ
osdep.c:672: error: âSSLSTREAMâ has no member named âiptrâ
osdep.c:673: error: âSSLSTREAMâ has no member named âictrâ
osdep.c: In function âssl_getbufferâ:
osdep.c:692: error: âSSLSTREAMâ has no member named âictrâ
osdep.c:694: error: âSSLSTREAMâ has no member named âiptrâ
osdep.c:696: error: âSSLSTREAMâ has no member named âiptrâ
osdep.c:698: error: âSSLSTREAMâ has no member named âictrâ
osdep.c: In function âssl_getdataâ:
osdep.c:718: error: âSSLSTREAMâ has no member named âconâ
osdep.c:718: error: âSSLSTREAMâ has no member named âconâ
osdep.c:722: error: âSSLSTREAMâ has no member named âictrâ
osdep.c:726: error: âSSLSTREAMâ has no member named âconâ
osdep.c:745: error: âSSLSTREAMâ has no member named âconâ
osdep.c:745: error: âSSLSTREAMâ has no member named âibufâ
osdep.c:747: error: âSSLSTREAMâ has no member named âconâ
osdep.c:747: error: âSSL_ERROR_WANT_READâ undeclared (first use in this function)
osdep.c:752: error: âSSLSTREAMâ has no member named âconâ
osdep.c:758: error: âSSLSTREAMâ has no member named âiptrâ
osdep.c:758: error: âSSLSTREAMâ has no member named âibufâ
osdep.c:759: error: âSSLSTREAMâ has no member named âictrâ
osdep.c: In function âssl_soutâ:
osdep.c:795: error: âSSLSTREAMâ has no member named âconâ
osdep.c:801: error: âSSLSTREAMâ has no member named âconâ
osdep.c:805: error: âSSLSTREAMâ has no member named âconâ
osdep.c: In function âssl_abortâ:
osdep.c:834: error: âSSLSTREAMâ has no member named âconâ
osdep.c:835: error: âSSLSTREAMâ has no member named âconâ
osdep.c:836: error: âSSLSTREAMâ has no member named âconâ
osdep.c:837: error: âSSLSTREAMâ has no member named âconâ
osdep.c:839: error: âSSLSTREAMâ has no member named âcontextâ
osdep.c:840: error: âSSLSTREAMâ has no member named âcontextâ
osdep.c:841: error: âSSLSTREAMâ has no member named âcontextâ
osdep.c: In function âssl_server_initâ:
osdep.c:941: error: âSSLSTREAMâ has no member named âcontextâ
osdep.c:947: error: âSSLSTREAMâ has no member named âcontextâ
osdep.c:947: error: âSSL_OP_ALLâ undeclared (first use in this function)
osdep.c:949: error: âSSLSTREAMâ has no member named âcontextâ
osdep.c:953: error: âSSLSTREAMâ has no member named âcontextâ
osdep.c:957: error: âSSLSTREAMâ has no member named âcontextâ
osdep.c:958: error: âSSL_FILETYPE_PEMâ undeclared (first use in this function)
osdep.c:963: error: âSSLSTREAMâ has no member named âcontextâ
osdep.c:964: error: âSSLSTREAMâ has no member named âcontextâ
osdep.c:964: error: âssl_genkeyâ undeclared (first use in this function)
osdep.c:966: error: âSSLSTREAMâ has no member named âconâ
osdep.c:966: error: âSSLSTREAMâ has no member named âcontextâ
osdep.c:970: error: âSSLSTREAMâ has no member named âconâ
osdep.c:972: error: âSSLSTREAMâ has no member named âconâ
osdep.c: At top level:
osdep.c:1007: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
osdep.c: In function âssl_server_input_waitâ:
osdep.c:1037: error: âSSLSTREAMâ has no member named âictrâ
osdep.c:1038: error: âSSLSTREAMâ has no member named âconâ
osdep.c:1038: error: âSSLSTREAMâ has no member named âconâ
osdep.c:1042: error: âSSLSTREAMâ has no member named âconâ
osdep.c:1043: error: âSSLSTREAMâ has no member named âconâ
osdep.c:1043: error: âSSLSTREAMâ has no member named âibufâ
osdep.c:1044: error: âSSLSTREAMâ has no member named âiptrâ
osdep.c:1044: error: âSSLSTREAMâ has no member named âibufâ
osdep.c:1045: error: âSSLSTREAMâ has no member named âictrâ
In file included from osdep.c:1057:
sslstdio.c: In function âPBINâ:
sslstdio.c:38: error: âSSLSTREAMâ has no member named âictrâ
sslstdio.c:39: error: âSSLSTREAMâ has no member named âiptrâ
sslstdio.c: In function âPSINâ:
sslstdio.c:57: error: âSSLSTREAMâ has no member named âictrâ
sslstdio.c:58: error: âSSLSTREAMâ has no member named âictrâ
sslstdio.c:60: error: âSSLSTREAMâ has no member named âiptrâ
make[3]: *** [osdep.o] Error 1
make[3]: Leaving directory `/tmp/imap-2007e/c-client'
make[2]: *** [lnp] Error 2
make[2]: Leaving directory `/tmp/imap-2007e/c-client'
make[1]: *** [OSTYPE] Error 2
make[1]: Leaving directory `/tmp/imap-2007e'
make: *** [lfd] Error 2

Open in new window

0
Comment
Question by:eltel-it-nor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 

Accepted Solution

by:
eltel-it-nor earned 0 total points
ID: 35189933
install php-devel pear-devel + anything else the output complains about
0
 

Author Closing Comment

by:eltel-it-nor
ID: 35189942
nobody was able to answer so i fixed it myself...
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question