Joshua Butcher wrote:
> I am recompiling php and apache for IMAP connectivity. I had it working,
> then i installed RH 7.1 (to fix another problem on my machine) and I had to
> recompile Apache and PHP all over again. When I go to compile PHP with IMAP
> connectivity (c-client.a is in the /usr/local/lib) folder, it dies. During
> the configuration of PHP, its says it find the IMAP library fine... When I
> got to compile Apache with PHP it gives me the following errors:
>
> /root/Apachetoolbox-1.5.34/src/php-4.0.6/ext/imap/php_imap.c:4147: undefined
> reference to `mail_newstringlist'
> /root/Apachetoolbox-1.5.34/src/php-4.0.6/ext/imap/php_imap.c:4148: undefined
> reference to `cpystr'
> /root/Apachetoolbox-1.5.34/src/php-4.0.6/ext/imap/php_imap.c:4155: undefined
> reference to `mail_newstringlist'
> /root/Apachetoolbox-1.5.34/src/php-4.0.6/ext/imap/php_imap.c:4157: undefined
> reference to `cpystr'
> modules/php4/libphp4.a(php_imap.o): In function `mm_list':
> /root/Apachetoolbox-1.5.34/src/php-4.0.6/ext/imap/php_imap.c:4174: undefined
> reference to `cpystr'
Snip_>
>
> any thoughts you have would be great!
Well, I can confirm it's not just you. It's driving me batty. (Also on RedHat
7.1)
It happens with multiple versions of the c-client:
imap-2000c
imap-2001.BETA.SNAP-0105251616
imap-2001.BETA.SNAP-0106160125
imap-2001.BETA.SNAP-0107112053
The problem exists in both php-4.0.5 *and* php-4.0.6, with the following PHP
configure string:
./configure --prefix=/usr --sysconfdir=/etc --with-ldap=/usr --with-mysql=/usr
--with-pgsql=/usr --enable-gd-imgstrttf --with-gd=/usr
--with-jpeg-dir=/usr --with-png-dir=/usr --with-t1lib=/usr --with-tiff-dir=/usr
--with-ttf=/usr/include/freetype2/freetype/ --with-zlib-dir=/usr
--with-pdflib=/usr --enable-bcmath --enable-calendar --enable-inline-optimization
--enable-shared --enable-static --enable-sigchild --enable-sysvsem
--enable-sysvshm --enable-shmop --enable-memory-limit --enable-trans-sid
--enable-track-vars --with-config-file-path=/etc/httpd/conf/ --with-imap=/usr
--with-mcrypt=/usr --with-mhash=/usr --with-mm=/usr --with-mod_charset
--with-regex=system --with-curl=/usr --enable-ftp --with-openssl=/usr
--enable-ssl=/usr --enable-sockets --enable-magic-quotes
--with-apache=/usr/local/src/apache_1.3.20 --with-pspell=/usr/lib
--with-cybercash=/usr/local/src/cybercash-mck/
And apache configure:
CFLAGS="-O2 -I/usr/ " \
LDFLAGS="-L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 -lpam" \
EAPI_MM="SYSTEM" \
SSL_BASE="SYSTEM" \
./configure \
"--with-layout=RedHat" \
"--enable-module=ssl" \
"--activate-module=src/modules/php4/libphp4.a" \
"--activate-module=src/modules/extra/mod_ldap.c" \
"--enable-module=php4" \
"--enable-module=ldap" \
"--enable-module=all" \
"--enable-suexec" \
"--suexec-caller=nobody" \
"--suexec-uidmin=500" \
"--suexec-gidmin=500" \
"--suexec-umask=022"
PHP seems to compile it just fone (no errors):
make[2]: Entering directory `/usr/local/src/php-4.0.6/ext/imap'
make[3]: Entering directory `/usr/local/src/php-4.0.6/ext/imap'
gcc -I. -I/usr/local/src/php-4.0.6/ext/imap -I/usr/local/src/php-4.0.6/main
-I/usr/local/src/php-4.0.6 -I/usr/local/src/apache_1.3.20/src/include
-I/usr/local/src/apache_1.3.20/src/os/unix -I/usr/local/src/php-4.0.6/Zend
-I/usr/local/src/cybercash-mck//c-api -I/usr/include/freetype
-I/usr/include/mysql -I/usr/include/pspell
-I/usr/local/src/php-4.0.6/ext/xml/expat/xmltok
-I/usr/local/src/php-4.0.6/ext/xml/expat/xmlparse
-I/usr/local/src/php-4.0.6/TSRM -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -O2 -I/usr/ -c
php_imap.c && touch php_imap.lo
/bin/sh /usr/local/src/php-4.0.6/libtool --silent --mode=link gcc -I.
-I/usr/local/src/php-4.0.6/ext/imap -I/usr/local/src/php-4.0.6/main
-I/usr/local/src/php-4.0.6 -I/usr/local/src/apache_1.3.20/src/include
-I/usr/local/src/apache_1.3.20/src/os/unix -I/usr/local/src/php-4.0.6/Zend
-I/usr/local/src/cybercash-mck//c-api -I/usr/include/freetype -I/usr/include/mysql
-I/usr/include/pspell
-I/usr/local/src/php-4.0.6/ext/xml/expat/xmltok
-I/usr/local/src/php-4.0.6/ext/xml/expat/xmlparse -I/usr/local/src/php-4.0.6/TSRM
-DSUPPORT_UTF8
-DXML_BYTE_ORDER=12 -O2 -I/usr/ -L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 -lpam -o
libimap.la php_imap.lo
And:
/bin/sh /usr/local/src/php-4.0.6/libtool --silent --mode=link gcc -I.
-I/usr/local/src/php-4.0.6/ -I/usr/local/src/php-4.0.6/main
-I/usr/local/src/php-4.0.6 -I/usr/local/src/apache_1.3.20/src/include
-I/usr/local/src/apache_1.3.20/src/os/unix -I/usr/local/src/php-4.0.6/Zend
-I/usr/local/src/cybercash-mck//c-api -I/usr/include/freetype -I/usr/include/mysql
-I/usr/include/pspell
-I/usr/local/src/php-4.0.6/ext/xml/expat/xmltok
-I/usr/local/src/php-4.0.6/ext/xml/expat/xmlparse -I/usr/local/src/php-4.0.6/TSRM
-DSUPPORT_UTF8
-DXML_BYTE_ORDER=12 -O2 -I/usr/ -L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 -lpam -o
libphp4.la -rpath /usr/local/src/php-4.0.6/libs -rdynamic
-L/usr/kerberos/lib -L/usr/local/src/cybercash-mck//c-api/lib -L/usr/lib/pgsql
-L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 -lpam -R /usr/kerberos/lib -R
/usr/local/src/cybercash-mck//c-api/lib -R /usr/lib/pgsql stub.lo Zend/libZend.la
sapi/apache/libsapi.la main/libmain.la ext/zlib/libzlib.la
ext/bcmath/libbcmath.la ext/calendar/libcalendar.la ext/curl/libcurl.la
ext/cybercash/libcybercash.la ext/ftp/libftp.la ext/gd/libgd.la
ext/imap/libimap.la ext/ldap/libldap.la ext/mcrypt/libmcrypt.la ext/mhash/libmhash.la
ext/mysql/libmysql.la ext/openssl/libopenssl.la
ext/pcre/libpcre.la ext/pdf/libpdf.la ext/pgsql/libpgsql.la ext/posix/libposix.la
ext/pspell/libpspell.la ext/session/libsession.la
ext/shmop/libshmop.la ext/sockets/libsockets.la ext/standard/libstandard.la
ext/sysvsem/libsysvsem.la ext/sysvshm/libsysvshm.la ext/xml/libxml.la
TSRM/libtsrm.la -lpam -limap -ldl -lmm -lpspell -lpq -lmysqlclient -lz -lmhash
-lmcrypt -lltdl -lldap -llber -lpam -lgd -lt1 -lttf -lpng -lz -ljpeg
-lmckcrypto -lcurl -lcrypto -lssl -lpam -lgssapi_krb5 -lkrb5 -lz -lcrypt -lssl
-lcrypto -lresolv -lm -ldl -lnsl -lresolv
It's just that apache can't seem to find the right pieces.
-Ronabop
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]