PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Bug #22989 mail() not discovered by configure
Submitted:31 Mar 2003 1:27pm UTC Modified: 31 Mar 2003 5:29pm UTC
From:iguy at ionsphere dot org Assigned to:
Status:Closed Category:Compile Failure
Version:4.3.1 OS:Redhat 8.0
View/Vote Developer Edit Submission

Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Do NOT use the comment system to ask questions related to bug reports, nor add "this is how I solved it" or "this might help you" comments to bugs that are not open. They will be removed without warning.
Your email address:
CAPTCHA: Type If you are unable to read this image, click the help link to the right of the input box into this box... (help)
If this image is hard to read, reload the page.

[31 Mar 2003 1:27pm UTC] iguy at ionsphere dot org
On my RedHat 8.0 system I am running exim & apache 2.0 with the default
autoconf of 2.53-8.  

When issuing the ./buildconf, ./configure <insert zillion options here>
configure does not find sendmail in the path given to it.  That is
because of a bug in the autoconf 2.53 code base where AC_PROG_PATH does
not properly search through non-expanded parameters passed to the search
string.  ie.  
$PATH:/usr/sbin -> it will search through the properly expanded $PATH
but will not search in /usr/sbin.  

As such I would like ot recommend this patch which should work with 2.13
& all versions of autoconf going forward.

diff -Naur php-4.3.1.org/aclocal.m4 php-4.3.1/aclocal.m4
--- php-4.3.1.org/aclocal.m4    2003-02-16 08:56:17.000000000 -0700
+++ php-4.3.1/aclocal.m4        2003-03-31 12:14:24.000000000 -0700
@@ -713,7 +713,8 @@
 ])
 
 AC_DEFUN([PHP_PROG_SENDMAIL],[
-AC_PATH_PROG(PROG_SENDMAIL, sendmail,[],
$PATH:/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib)
+PHP_ALT_PATH=/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib
+AC_PATH_PROG(PROG_SENDMAIL, sendmail,[], $PATH:$PHP_ALT_PATH)
 if test -n "$PROG_SENDMAIL"; then
   AC_DEFINE(HAVE_SENDMAIL,1,[whether you have sendmail])
 fi
[31 Mar 2003 5:29pm UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC