phpize / shtool

From: Date: Thu, 13 Apr 2006 22:04:05 +0000
Subject: phpize / shtool
Groups: php.internals 
Request: Send a blank email to internals+get-22738@lists.php.net to get a copy of this message
After running phpize and successfully compiling my extension, I call my function and get a lot of errors about a mis-match in versioning and debug/non-debug. I then realized that I had called the webhost's 'phpize' from /usr/local/bin, rather than my new one in my own home directory. Calling the CORRECT 'phpize', however, is disconcerting: -bash-2.05b$ ../../usr/local/bin/phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20050922 Zend Extension Api No: 220051025 Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script. But I already set $PHP_AUTOCONF. Honest! -bash-2.05b$ echo $PHP_AUTOCONF /usr/local/bin/autoconf213 -bash-2.05b$ $PHP_AUTOCONF -h Usage: autoconf [-h] [--help] [-m dir] [--macrodir=dir] [-l dir] [--localdir=dir] [--version] [template-file] I look at the source of my phpize, and am not finding anything to see why this is happening... test -z "$PHP_AUTOCONF" && PHP_AUTOCONF=autoconf test -z "$PHP_AUTOHEADER" && PHP_AUTOHEADER=autoheader if test ! -x "$php_shtool path $PHP_AUTOCONF"; then In a shell: test -z $PHP_AUTOCONF test -z $PHP_AUTOHEADER ./build/shtool path $PHP_AUTOCONF test ! -x "./build/shtool path $PHP_AUTOCONF" all produced no output at all I tried all the other build/shtool on my system, and none of them produced output for "path $PHP_AUTOCONF" Not quite sure what any of them are supposed to do, mind you... Seems like phpize is expecting that last test to produce output... -- Like Music? http://l-i-e.com/artists.htm

« previous php.internals (#22738) next »