Compiling PHP with curl
August 2, 2006
I should probably post a whole article here, but I don’t have time! Suffice it to say that PHP needs you to compile ‘–with-zlib’ if you’re trying to also compile curl as well. http://us2.php.net/curl doesn’t have any reference to that fact from what I saw, so I figured I’d post it here.
When running ‘make’ I was seeing things like
main/output.lo(.text+0×889): In function `php_ob_init_named’:
/root/dl/mgk/php-4.3.3/main/output.c:423: undefined reference to `php_ob_gzhandler_check’
ext/mysql/php_mysql.lo(.text+0×4943): In function `php_mysql_field_info’:
/root/dl/mgk/php-4.3.3/ext/mysql/php_mysql.c:2227: undefined reference to `mysql_num_fields’
ext/mysql/php_mysql.lo(.text+0×49fd):/root/dl/mgk/php-4.3.3/ext/mysql/php_mysql.c:2231: undefined reference to `mysql_field_seek’
ext/mysql/php_mysql.lo(.text+0×4a09):/root/dl/mgk/php-4.3.3/ext/mysql/php_mysql.c:2232: undefined reference to `mysql_fetch_field’
and similar references - completely unrelated to what I was trying to build. Anyway, hopefully that will help at least one poor soul stuck compiling PHP by hand!
Posted in 




January 17th, 2008 at 10:13 am
That’s a problem with openssl too - so I had to enable zlib manualy too when compiling with openssl.
January 19th, 2008 at 9:49 am
YOU ROCK! THANK YOU!