Bug #17641 Updated: Compile fails with undeclared identifier in mail.c

From: Date: Fri, 07 Jun 2002 17:27:56 +0000
Subject: Bug #17641 Updated: Compile fails with undeclared identifier in mail.c
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9780@lists.php.net to get a copy of this message
ID: 17641 Updated by: sniper@php.net Reported By: lynne.ransdell@sas.com Status: Bogus Bug Type: Compile Failure Operating System: Solaris 8 PHP Version: 4.2.1 New Comment: It should help..unless you're compiling with the Sun CC.. Please try the latest STABLE snapshot from http://snaps.php.net which has configure generated with autoconf 2.52 (or was it 2.53?) as that should work for you. The problem actually isn't PHP one with this..it's combined autoconf and c-client problem in your case. C-client has it's own unix.h header file which is found (incorrectly) by autoconf. If you have installed (you don't need to install the c-client actually..) them to some common include path..boom. I thought this was documented in the manual though. Anyway, try pointing --with-imap to the source directory of c-client.. --Jani Previous Comments: ------------------------------------------------------------------------ [2002-06-07 10:52:43] lynne.ransdell@sas.com Compiling 4.21. on Solaris 8, make fails in /ext/standard/mail.c in php_mail with error EX_OK undeclared. I also ran into problem with configure deciding that unix.h and sysexits.h existed on the system when they do not. I had to comment out the IFDEFs in zend.h and mail.c respectively to get make to proceed. Using CC-gcc ./configure did not make a difference. Now make fails with this EX_OK undefined. ------------------------------------------------------------------------ [2002-06-07 10:40:28] sniper@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2002-06-07 10:32:08] lynne.ransdell@sas.com I have experienced the same problem as others with the unix.h and sysexits.h files in the compile. I tried the CC=gcc trick but that still did not work so I commented out the relevant lines in the files. Now the compile fails with this error: make[3]: Entering directory `/local/src/php-4.2.1/ext/standard' /bin/sh /local/src/php-4.2.1/libtool --silent --mode=compile gcc -I. -I/local/rc/php-4.2.1/ext/standard -I/local/src/php-4.2.1/main -I/local/src/php-4.2.1 -Ilocal/apache/include -I/local/src/php-4.2.1/Zend -I/local/src/gd-1.8.4/ -I/datamysql/include -I/local/src/php-4.2.1/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS DSOLARIS2=280 -DUSE_EXPAT -I/local/src/php-4.2.1/TSRM -g -O2 -prefer-pic -c mal.c mail.c: In function `php_mail': mail.c:166: `EX_OK' undeclared (first use in this function) mail.c:166: (Each undeclared identifier is reported only once mail.c:166: for each function it appears in.) make[3]: *** [mail.lo] Error 1 make[3]: Leaving directory `/local/src/php-4.2.1/ext/standard' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/local/src/php-4.2.1/ext/standard' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/local/src/php-4.2.1/ext' make: *** [all-recursive] Error 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17641&edit=1

« previous php.bugs (#9780) next »