Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12155 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21626 invoked by uid 1010); 14 Aug 2004 02:47:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 21411 invoked by uid 1007); 14 Aug 2004 02:47:11 -0000 Message-ID: <20040814024711.21405.qmail@pb1.pair.com> To: internals@lists.php.net Date: Fri, 13 Aug 2004 22:47:10 -0400 User-Agent: Mozilla Thunderbird 0.6 (X11/20040519) X-Accept-Language: en MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 24.53.105.252 Subject: Configure/buildconf/autoconf errors From: lists@benramsey.com (Ben Ramsey) I've always had this problem, but I figured it was just something I had to learn to live with. However, this time I decided to submit it to see if it was worth passing along as a bug. Whenever I run ./buildconf, it tells me that I shouldn't run it in a release package, so I try to run autoconf, which generates some errors, but a configure file is still created, so I run ./configure, which always stops with errors. Finally, I run ./buildconf --force and it throws out some warnings but still creates a configure file that runs without any problems. Is this how it's supposed to work? I'm grabbing the source from CVS and compiling it on Fedora Core 2 with autoconf verision 2.59 and libtool version 1.5.6. I had similar problems with PHP-GTK 1.0.0, and Andrei had to change a few things around to get it updated for my version of autoconf. At any rate, it's not like it won't build, but these errors always appear quirky. Here's the output: [root@orome php_5_0_1]# ./buildconf You should not run buildconf in a release package. use buildconf --force to override this check. [root@orome php_5_0_1]# autoconf configure.in:147: warning: AC_PROG_LEX invoked multiple times autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from... configure.in:147: the top level configure.in:77: error: possibly undefined macro: AC_MSG_ERROR If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:138: error: possibly undefined macro: AC_MSG_CHECKING configure.in:143: error: possibly undefined macro: AC_MSG_RESULT configure.in:192: error: possibly undefined macro: AC_DEFINE configure.in:453: error: possibly undefined macro: AC_TRY_LINK configure.in:587: error: possibly undefined macro: PHP_AC_BROKEN_SPRINTF configure.in:588: error: possibly undefined macro: PHP_AC_BROKEN_SNPRINTF configure.in:692: error: possibly undefined macro: AC_DEFINE_UNQUOTED configure.in:1170: error: possibly undefined macro: AC_PROG_LIBTOOL [root@orome php_5_0_1]# ./configure [options omitted from this posting] ./configure: line 42: syntax error near unexpected token `Running' ./configure: line 42: `PHP_CONFIGURE_PART(Running system checks)' [root@orome php_5_0_1]# ./buildconf --force Forcing buildconf using default Zend directory buildconf: checking installation... buildconf: autoconf version 2.59 (ok) buildconf: Your version of autoconf likely contains buggy cache code. Running cvsclean for you. To avoid this, install autoconf-2.13 and automake-1.5. buildconf: libtool version 1.5.6 (ok) rebuilding aclocal.m4 rebuilding configure autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from... configure.in:147: the top level rebuilding acconfig.h rebuilding main/php_config.h.in autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot' autoheader: WARNING: and `config.h.top', to define templates for `config.h.in' autoheader: WARNING: is deprecated and discouraged. autoheader: autoheader: WARNING: Using the third argument of `AC_DEFINE' and autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without autoheader: WARNING: `acconfig.h': autoheader: autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1, autoheader: [Define if a function `main' is needed.]) autoheader: autoheader: WARNING: More sophisticated templates can also be produced, see the autoheader: WARNING: documentation. autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from... configure.in:147: the top level -- Regards, Ben Ramsey http://benramsey.com --------------------------------------------------- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or to join the movement. ---------------------------------------------------