php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17641 Compile fails with undeclared identifier in mail.c
Submitted: 2002-06-07 10:32 UTC Modified: 2002-06-07 13:27 UTC
From: lynne dot ransdell at sas dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.2.1 OS: Solaris 8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lynne dot ransdell at sas dot com
New email:
PHP Version: OS:

 

 [2002-06-07 10:32 UTC] lynne dot ransdell at sas dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-07 10:40 UTC] 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:52 UTC] lynne dot ransdell at sas dot 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 13:27 UTC] sniper@php.net
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

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 28 03:01:27 2024 UTC