Re: Warning: mail() is not supported in this PHP build

From: Date: Thu, 13 Dec 2001 09:30:25 +0000
Subject: Re: Warning: mail() is not supported in this PHP build
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-5297@lists.php.net to get a copy of this message
Well, have a look at the code then. In ext/standard/basic_functions.c we have: #ifdef HAVE_SENDMAIL PHP_FE(mail, NULL) #else PHP_FALIAS(mail, warn_not_available, NULL) #endif The error message you posted is created by the warn_not_available function which means that HAVE_SENDMAIL definitely was not defined when this file was compiled. Now, HAVE_SENDMAIL comes from the HAVE_SENDMAIL #define in main/php_config.h which is created by the configure script which in turn comes from this m4 macro: AC_DEFUN(PHP_PROG_SENDMAIL,[ AC_PATH_PROG(PROG_SENDMAIL, sendmail,[], $PATH:/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib) if test -n "$PROG_SENDMAIL"; then AC_DEFINE(HAVE_SENDMAIL,1,[whether you have sendmail]) fi ]) This macro is pretty clean. Now perhaps something about this mechanism didn't work for you on Solaris, so the trivial workaround is to just edit main/php_config.h and make sure HAVE_SENDMAIL is defined and then "make clean" and recompile and it should work fine. -Rasmus On Thu, 13 Dec 2001 J.L.Gilmour@exeter.ac.uk wrote: > > > > Well, somehow you are confused about that > > Oh, right. Care to explain what's confusing about... > > Running system checks > checking for missing declarations of reentrant functions... done > checking whether compiler supports -R... yes > checking for sendmail... /usr/lib/sendmail > > > ??? > > Meanwhile, I'll download version 4.1 > > Jayne. > >

« previous php.install (#5297) next »