On Sat, Mar 10, 2001 at 07:00:19PM +0200, Zeev Suraski wrote:
> Unless someone says something I'm going to branch away 4.0.5 and package 
> 4.0.5RC1 tomorrow evening.  It's lingering for too long...
I've spent several days exploiting bugs in PHP4 build environment.
There are many little problems there but I've found biggest one:
for self contained extensions any check for PHP_ARG_WITH resulted
in 'yes' even if such check failed due absence of additional library
needed to compile.

This code snippet from configure for IMAP module shows problem:
--------------------------------------------------------------------
echo $ac_n "checking for Kerberos support in IMAP""... $ac_c" 1>&6
echo "configure:980: checking for Kerberos support in IMAP" >&5
# Check whether --with-kerberos or --without-kerberos was given.
if test "${with_kerberos+set}" = set; then
  withval="$with_kerberos"
  PHP_KERBEROS=$withval
else
  PHP_KERBEROS=no
fi

[..... skipped .....]

if test "$php_always_shared" = "yes"; then
  ext_output="yes, shared"
  ext_shared=yes
  test "$PHP_KERBEROS" = "no" && PHP_KERBEROS=yes
fi
-----------------------------------------------------------------------

So, even if I have no kerberos libraries on the system, PHP_KERBEROS
will be defined to 'yes' resulting in errors in module creation.

There are bunch of modules which rely on such multiple PHP_ARG_WITH
in config.m4.

Even more worse situation is in the Readline extension:
(config.m4 from ext/readline)
PHP_ARG_WITH(libedit,for libedit readline replacement, 
[  --with-libedit[=DIR]    Include libedit readline replacement.])

PHP_ARG_WITH(readline,for readline support,
[  --with-readline[=DIR]   Include readline support.  DIR is the readline
                          install directory.])

So after phpize and configure calls both HAVE_LIBEDIT and HAVE_READLINE
will be defined to 1 resulting in errors in code.

-- 
Sincerely yours, Alexander Bokovoy 
  The Midgard Project   | www.midgard-project.org |    Aurora R&D team 
Minsk Linux Users Group |    www.minsk-lug.net    |  www.aurora-linux.com  
    ALT Linux Team      |    www.alt-linux.org    | Architecte Open Source
-- If you fool around with something long enough, it will eventually break.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to