From:             [EMAIL PROTECTED]
Operating system: Solaris 8
PHP version:      4CVS-2003-01-02 (dev)
PHP Bug Type:     *Compile Issues
Bug description:  Changes in configure.in do not allow the creation of a sane configure

There have been at least 2 changes since I last built from CVS on Solaris 8
(October 13, 2002)

The first one is the addition to grep of Gnu grep only parameters w/o
checking for the existence of said option in the target OS (changed to gnu
grep manually in configure.in)

The second one is that it seems like the file is using macros from a newer
autoconf (only msg I saw in the logs for configure.in is from rev 1.394:
"Don't use autoconf 2.52 macros.")

If a newer autoconf is required, it should be documented, or a warning
should be generated. Instead of a broken configure that later on fails.

% autoconf --version
Autoconf version 2.13

Tried doing a "buildconf" on today's CVS (2003/01/02) and got:

% ./buildconf
using default Zend directory
rebuilding configure
configure.in:831: /opt/sfw/bin/gm4: Undefined macro `AC_PROG_LIBTOOL'
autoconf: Undefined macros:
***BUG in Autoconf--please report*** AC_TRY_DLOPEN_SELF
configure.in:1064:AC_PROG_LIBTOOL
configure.in:1142:AC_DEFINE([HAVE_BUILD_DEFS_H], 1, [ ])
configure.in:146:    AC_MSG_RESULT(${1}.${2} (ok))
configure.in:166:AC_MSG_RESULT(${1}.${2}.${3} (ok))
configure.in:238:AC_MSG_RESULT([$PHP_SAPI])
configure.in:295:  AC_DEFINE(HAVE_LIBDL, 1, [ ])
configure.in:422:  AC_DEFINE(HAVE_SOCKADDR_STORAGE,1,[Whether you have
struct sockaddr_storage])
configure.in:431:[AC_DEFINE(HAVE_SOCKADDR_LEN,1,[Whether sockaddr struct
has sa_len])],
configure.in:518:  AC_DEFINE(HAVE_GETADDRINFO,1,[Define if you have the
getaddrinfo function])
configure.in:545:dnl AC_MSG_RESULT([$ac_cv_type_in_addr_t])
configure.in:547:  AC_DEFINE(in_addr_t, u_int, [ ])
configure.in:635:  AC_DEFINE(PHP_SAFE_MODE,1,[ ])
configure.in:637:  AC_DEFINE(PHP_SAFE_MODE,0,[ ])
configure.in:647:     
AC_DEFINE(PHP_SAFE_MODE_EXEC_DIR,"/usr/local/php/bin", [ ])
configure.in:648:      AC_MSG_RESULT([/usr/local/php/bin])
configure.in:650:     
AC_DEFINE_UNQUOTED(PHP_SAFE_MODE_EXEC_DIR,"$withval", [ ])
configure.in:651:      AC_MSG_RESULT([$withval])
configure.in:654:   
AC_DEFINE(PHP_SAFE_MODE_EXEC_DIR,"/usr/local/php/bin", [ ])
configure.in:655:    AC_MSG_RESULT([/usr/local/php/bin])
configure.in:658:  AC_DEFINE(PHP_SAFE_MODE_EXEC_DIR,"/usr/local/php/bin",
[ ])
configure.in:659:  AC_MSG_RESULT([/usr/local/php/bin])
configure.in:666:  AC_DEFINE(PHP_SIGCHILD, 1, [ ])
configure.in:668:  AC_DEFINE(PHP_SIGCHILD, 0, [ ])
configure.in:675:  AC_DEFINE(MAGIC_QUOTES, 1, [ ])
configure.in:677:  AC_DEFINE(MAGIC_QUOTES, 0, [ ])
configure.in:700:  AC_DEFINE(DEFAULT_SHORT_OPEN_TAG,"1",[ ])
configure.in:702:  AC_DEFINE(DEFAULT_SHORT_OPEN_TAG,"0",[ ])
configure.in:712:    AC_DEFINE(HAVE_DMALLOC,1,[Whether you have dmalloc])
configure.in:723:  AC_DEFINE(HAVE_IPV6,1,[Whether to enable IPv6
support])
configure.in:742:  AC_DEFINE(HAVE_CRYPT,1,[ ]) 
configure.in:795:AC_MSG_RESULT([$PHP_VERSIONING])
configure.in:840:  AC_DEFINE(ZTS,1,[ ])
configure.in:961:AC_DEFINE_UNQUOTED(PHP_BUILD_DATE,"$PHP_BUILD_DATE",[PHP
build date])
configure.in:963:AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[uname -a
output])
configure.in:965:AC_DEFINE_UNQUOTED(PHP_OS,"$PHP_OS",[uname output])
rebuilding main/php_config.h.in
configure.in:831: /opt/sfw/bin/gm4: Undefined macro `AC_PROG_LIBTOOL'

which produced a 'configure' file, which when run as:

% ./configure --prefix=/export/dredox1/devel_server/php \
--with-config-file-path=/export/dredox1/devel_server/php \
--enable-track-vars --enable-magic-quotes \
--enable-inline-optimization \
--enable-xml \
--enable-pcntl \
--enable-cli \
--with-gmp \
--enable-aggregate \
--enable-overload \
--enable-wddx \
--enable-ftp --enable-calendar --enable-bcmath --enable-trans-id\
--with-zlib \
--with-gd \
--enable-freetype-4bit-antialias-hack \
--with-jpeg-dir=/opt/sfw \
--with-png-dir=/opt/sfw \
--with-xpm-dir=/opt/sfw \
--with-ttf=/opt/sfw \
--with-t1lib=/asd/metallo1/server/libs/t1 \
--with-xmlrpc \
--with-mysql=/export/dredox1/devel_server/mysql

Gave the error:
...
checking for isnan... yes
checking whether fp_except is defined... no
checking whether dlsym() requires a leading underscore in symbol names...
./configure: syntax error at line 81725: `_LT_AC_TRY_DLOPEN_SELF'
unexpected
...


-- 
Edit bug report at http://bugs.php.net/?id=21375&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21375&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21375&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21375&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21375&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21375&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21375&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21375&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21375&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21375&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21375&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21375&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21375&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21375&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21375&r=gnused

Reply via email to