| Summary: | dev-lang/php-5.2.6_rc1-r1 does not build. It can't find mysql headers | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Santiago Gala <sgala> |
| Component: | New packages | Assignee: | Gentoo Linux MySQL bugs team <mysql-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | php-bugs |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | config.log | ||
|
Description
Santiago Gala
2008-03-16 12:56:41 UTC
We need config.log attached, these configure error messages are completely misleading with PHP. Thanks. Created attachment 146329 [details]
config.log
done
forgot t oreopen any news on this one? it is still not emerging here This is actually the expected output for mysql (maybe without pdo or the "shared" thing if USE=-sharedext): --with-mysql=shared,/usr --with-mysql-sock=/var/run/mysqld/mysqld.sock --with-mysqli=shared,/usr/bin/mysql_config --without-pdo-dblib --with-pdo-mysql=shared,/usr No clue what's going wrong here, the configure call looks correct to me. I don't know if this is intended or not, but here:
$ mysql_config
Usage: /usr/bin/mysql_config [OPTIONS]
Options:
--cflags [-I/usr/include/mysql -DHAVE_ERRNO_AS_DEFINE=1]
--include [-I/usr/include/mysql]
--libs [-Wl,--as-needed -rdynamic -L/usr/lib64/mysql/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto]
--libs_r [-Wl,--as-needed -rdynamic -L/usr/lib64/mysql/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -L/usr/lib64 -lssl -lcrypto]
--socket [/var/run/mysqld/mysqld.sock]
--port [0]
--version [5.0.54]
--libmysqld-libs [-Wl,--as-needed -rdynamic -L/usr/lib64/mysql/mysql -lmysqld -lz -lpthread -lcrypt -lnsl -lm -lpthread -lrt -L/usr/lib64 -lssl -lcrypto]
i.e., the files are not where your are telling configure they are. I have installed:
dev-db/mysql-5.0.54
dev-db/mysql-init-scripts-1.2
According to ./configure --help: --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base directory So, IMO, it's correct that we pass /usr as it's the base dir for MySQL... and as it has worked perfectly fine in the past (and still does for most people out there, apparently), I see no reason to change this. I really don't know what to fix and where, any input from MySQL guys would be appreciated... I'm not an expert, it just stopped working when emerge prompted for an upgrade
But I'd say:
> So, IMO, it's correct that we pass /usr as it's the base dir for MySQL...
It is correct to pass the base dir that the dev-db/mysql ebuild sets (in particular dev-db/mysql-5.0.54, which is the stable one here). Gentoo is a distribution, so things are supposed to work together.
I can live with an ebuild that fails to upgrade, after all it is a RC, not even released yet. But I reported when I saw it staying too much time in my "doesn't build" list.
the configure passes if the directory checks are changed to add an extra "/mysql", i.e, something along the lines of:
+ elif test -r $i/include/mysql/mysql/mysql.h; then
+ MYSQL_DIR=$i
+ MYSQL_INC_DIR=$i/include/mysql/mysql
+ break
either the mysql include directory should be there, and then it is a php bug, or it doesn't, and then it is a mysql bug. But in both cases it is a gentoo bug.
re: emerging mysql made the include files appear where php expects them, and then php builds. closing |