ID: 9634 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Compile Failure Description: imap_*_quota not found 1) Yes, it's defined in main/php_config.h. 2) Yes, they both exist and are in /usr/include/imap. 3) Yes, the functions are defined in imap4r1.h. It appears that this is a link failure and not just a simple compile failure. Here is the previous command: /bin/sh /usr/src/redhat/BUILD/php-4.0.5dev_20010308/libtool --silent --mode=link gcc -I. -I/usr/src/redhat/BUILD/php-4.0.5dev_20010308/ -I/usr/src/redhat/BUILD/php-4.0.5dev_20010308/main -I/usr/src/redhat/BUILD/php-4.0.5dev_20010308 -I/usr/src/redhat/BUILD/php-4.0.5dev_20010308/Zend -I/usr/include/freetype -I/usr/include/imap -I/usr/local/include -I/opt/sybase-11.9.2/include -I/usr/src/redhat/BUILD/php-4.0.5dev_20010308/ext/xml/expat/xmltok -I/usr/src/redhat/BUILD/php-4.0.5dev_20010308/ext/xml/expat/xmlparse -I/usr/src/redhat/BUILD/php-4.0.5dev_20010308/TSRM -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -O2 -m486 -fno-strength-reduce -fPIC -o libphp4.la -rpath /usr/src/redhat/BUILD/php-4.0.5dev_20010308/libs -L/usr/kerberos/lib -L/usr/local/lib -L/opt/sybase-11.9.2/lib -R /usr/kerberos/lib -R /usr/local/lib -R /opt/sybase-11.9.2/lib stub.lo Zend/libZend.la sapi/cgi/libsapi.la main/libmain.la regex/libregex.la ext/dba/libdba.la ext/domxml/libdomxml.la ext/ftp/libftp.la ext/gd/libgd.la ext/gettext/libgettext.la ext/imap/libimap.la ext/openssl/libopenssl.la ext/pcre/libpcre.la ext/pdf/libpdf.la ext/posix/libposix.la ext/sablot/libsablot.la ext/session/libsession.la ext/standard/libstandard.la ext/sybase_ct/libsybase_ct.la ext/sysvsem/libsysvsem.la ext/sysvshm/libsysvshm.la ext/xml/libxml.la ext/yp/libyp.la TSRM/libtsrm.la -lpam -limap -ldl -linsck -lsybtcl -lintl -lcomn -lct -lcs -lxmltok -lxmlparse -lsablot -lz -ljpeg -lpng -ltiff -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lttf -lz -lpng -lgd -ljpeg -lz -lxml -lgdbm -lssl -lcrypto -lresolv -lm -ldl -lcrypt -lnsl -lttf -lpng -ljpeg -lz -lpam -lxmlparse -lxmltok -lresolv -lz -L/usr/lib -ljpeg -lpdf Note the absence of '-lc-client' and the presence of '-limap' in that command. What would be causing this? Previous Comments: --------------------------------------------------------------------------- [2001-03-08 14:57:26] [EMAIL PROTECTED] i'm sorry, #2 should have also check to make sure you have a c-client.h file in your include directory (this is what ensures a define of HAVE_IMAP2000). --------------------------------------------------------------------------- [2001-03-08 14:56:37] [EMAIL PROTECTED] 1) make sure HAVE_IMAP2000 is being defined 2) Check to make sure imap4r1.h is included in the php_imap.c file (this should be done as long as HAVE_IMAP2000) is defined and exists in the imap directory (looks like it's /usr/include/imap on your machine) 3) check that your imap4r1.h has both functions defined. it should, but double checking never hurts. --------------------------------------------------------------------------- [2001-03-08 14:55:38] [EMAIL PROTECTED] 1) make sure HAVE_IMAP2000 is being defined 2) Check to make sure imap4r1.h is included in the php_imap.c file (this should be done as long as HAVE_IMAP2000) is defined and exists in the imap directory (looks like it's /usr/include/imap on your machine) 3) check that your imap4r1.h has both functions defined. it should, but double checking never hurts. --------------------------------------------------------------------------- [2001-03-08 14:11:00] [EMAIL PROTECTED] Last few lines of build: /bin/sh /usr/src/redhat/BUILD/php-4.0.5dev_20010308/libtool --silent --mode=link gcc -I. -I/usr/src/redhat/BUILD/php-4.0.5dev_20010308/ -I/usr/src/redhat/BUILD/php-4.0.5dev_20010308/main -I/usr/src/redhat/BUILD/php-4.0.5dev_20010308 -I/usr/src/redhat/BUILD/php-4.0.5dev_20010308/Zend -I/usr/include/freetype -I/usr/include/imap -I/usr/local/include -I/opt/sybase-11.9.2/include -I/usr/src/redhat/BUILD/php-4.0.5dev_20010308/ext/xml/expat/xmltok -I/usr/src/redhat/BUILD/php-4.0.5dev_20010308/ext/xml/expat/xmlparse -I/usr/src/redhat/BUILD/php-4.0.5dev_20010308/TSRM -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -O2 -m486 -fno-strength-reduce -fPIC -o php -export-dynamic stub.lo libphp4.la .libs/libphp4.a(php_imap.o): In function `php_if_imap_get_quota': php_imap.o(.text+0x1aef): undefined reference to `imap_getquota' .libs/libphp4.a(php_imap.o): In function `php_if_imap_set_quota': php_imap.o(.text+0x1e19): undefined reference to `imap_setquota' collect2: ld returned 1 exit status make[1]: *** [php] Error 1 make[1]: Leaving directory `/usr/src/redhat/BUILD/php-4.0.5dev_20010308' make: *** [all-recursive] Error 1 Bad exit status from /var/tmp/rpm-tmp.49221 (%build) IMAP 2000c is installed, and another machine with a very similar configuration had no problem compiling. Any ideas? --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=9634 -- 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]