Building PHP with MySQL–bug!

What kind of bug is this? When trying to build PHP on Linux using the option --with-mysql=/usr, I kept getting an error during make. Specifically, this was:

ext/mysql/php_mysql.c:1158: undefined reference to 'mysql_create_db' ext/mysql/php_mysql.c:1200: undefined reference to 'mysql_drop_db'

It appears that if you touch ext/mysql/php_mysql.c, updating the file’s modification time, the problems magically disappear. Crazy, huh? It must be forcing make to recompile this file. Silly? Very. But it works.

Read.

3 thoughts on “Building PHP with MySQL–bug!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>