php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9362 When sendmail not available, get compile errors
Submitted: 2001-02-20 17:28 UTC Modified: 2001-02-22 13:26 UTC
From: amra at us dot ibm dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.4pl1 OS: OS400
Private report: No CVE-ID: None
 [2001-02-20 17:28 UTC] amra at us dot ibm dot com
When sendmail is not available on a system, get compiler errors:

"basic_functions.c", line 486.9: 1506-045 (S) Undeclared identifier php_if_mail.
"basic_functions.c", line 487.9: 1506-045 (S) Undeclared identifier php_if_ezmlm_hash.

I got around the error by doing the following in the above file:

#ifdef HAVE_SENDMAIL
	/* functions from mail.c */
	PHP_FE(mail,					NULL)
	PHP_FE(ezmlm_hash,				NULL)
#else
	PHP_FALIAS(mail  , warn_not_available,      NULL)                             
	PHP_FALIAS(ezmlm_hash, warn_not_available,      NULL)                             
#endif


I think that HAVE_SENDMAIL needs to be checked.....

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-21 02:41 UTC] sas@php.net
Thanks, I've changed the sendmail check not to assume that sendmail lives in /usr/lib.
 [2001-02-22 13:26 UTC] amra at us dot ibm dot com
You still need to put the ifdefs in basic_functions.c, no?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 11:01:30 2024 UTC