Re: Buildconf failing: undefined macro
| From: | Rajesh Kumar | Date: | Tue, 22 Mar 2005 07:18:52 +0000 |
| Subject: | Re: Buildconf failing: undefined macro | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5682@lists.php.net to get a copy of this message | ||
Jeremy Johnstone wrote:
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.Thanks Jeremy. --with-phpize is the correct option, but I'm afraid the problem is not because of using the wrong phpize. Just to confirm, I ran buildconf directly against the phpize found in the scripts/ directory of my PHP5 source directory, only to get the same result. chmod u+x /usr/src/php/php-5.0.3/scripts/phpize ./buildconf --with-phpize=/usr/src/php/php-5.0.3/scripts/phpize Also, the API versions correspond to PHP5, don't they?
PHP Api Version: 20031224 Zend Module Api No: 20041030Zend Extension Api No: 220040412 But you're right, I ran buildconf with PHP4's phpize and I got exactly the same error. The undefined macro error is occurring regardless of the phpize version. Buildconf is also using the correct php-config. My php4 installation is tucked away somewhere and I don't believe any php4 executables are being used, though I can't be absolutely sure. I've tried to ensure that all my PHP executables point to the php5 ones. Any other suggestions? -- [ Rajesh Kumar ]