Re: Buildconf failing: undefined macro
| From: | Jeremy Johnstone | Date: | Tue, 22 Mar 2005 05:24:18 +0000 |
| Subject: | Re: Buildconf failing: undefined macro | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5681@lists.php.net to get a copy of this message | ||
I bet your error is because it is trying to use a PHP4 phpize instead
of a PHP5 one. I had this same error happen to me when I forgot to
specify the path on the command line to buildconf (because my PHP4
phpize comes before my PHP5 one on my path). I don't remember the
exact option to buildconf, but it should be something similar to
--with-phpize=/path/to/phpize. So do something like the following:
./buildconf -with-phpize=/usr/local/php5/bin/phpize
(in my case the install prefix is /usr/local/php5).
If I am wrong, check inside the buildconf file (it's small and should
be easy to see what the correct option is).
-Jeremy
On Mon, 21 Mar 2005 18:56:44 -0800, Rajesh Kumar <rajesh@meetrajesh.com> wrote:
> Hi,
>
> Buildconf has been failing for quite a few months now. I just checked out
> php-gtk HEAD from CVS and ran ./buildconf. Here's the output:
>
> Configuring for:
> PHP Api Version: 20031224
> Zend Module Api No: 20041030
> Zend Extension Api No: 220040412
> configure.in:22: error: possibly undefined macro: AC_MSG_ERROR
> If this token and others are legitimate, please use m4_pattern_allow.
> See the Autoconf documentation.
> configure:3513: error: possibly undefined macro: AM_PATH_GLIB_2_0
> configure:3627: error: possibly undefined macro: AM_PATH_GTK_2_0
> make: *** [buildmk.stamp] Error 1
>
> I'm running PHP 5.0.3 on a Debian machine running Autoconf version 2.59.
> php-config is where it should be. But I think it's an autoconf problem. Is my
> autoconf too recent?
>
> I tried looking for a solution online and came across this bug report:
> http://bugs.php.net/bug.php?id=27630. Did not yield any result.
>
> Can someone suggest how I could fix this so that I may carry on with ./configure?
>
> --
> [ Rajesh Kumar ]
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
---------------------------
Jeremy Johnstone
http://www.jeremyjohnstone.com
jsjohnst@php.net