Hola folks. Trying to install MySQL 3.23.51-r2 on a new 1.3b-based Compaq ProLiant 3000. Was able to bootstrap and build the system from stage1. When I try to emerge MySQL, it runs up until: g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" - DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I../bdb/build_unix - I../innob ase/include -I./../include -I./../regex -I. -I../include -I.. -I. - O3 -DDBUG_OFF -march=i686 -pipe -O3 -felide-constructors -fno-exceptions -fno- rtti -fno-implicit-templates -fno-exceptions - fno-rtti -c mysqld.cc /usr/include/tcpd.h: In function `void* handle_connections_sockets(void*)': /usr/include/tcpd.h:162: too few arguments to function `void sock_host (request_info*)' mysqld.cc:2428: at this point in file /usr/include/tcpd.h:78: too few arguments to function `int hosts_access (request_info*)' mysqld.cc:2429: at this point in file /usr/include/tcpd.h:146: too few arguments to function `char* eval_client (request_info*)' mysqld.cc:2437: at this point in file make[3]: *** [mysqld.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/mysql-3.23.51-r2/work/mysql- 3.23.51/sql' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/mysql-3.23.51-r2/work/mysql- 3.23.51/sql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mysql-3.23.51-r2/work/mysql- 3.23.51' make: *** [all-recursive-am] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 85, Exitcode 2 !!! compile problem !!! emerge aborting on /usr/portage/dev-db/mysql/mysql-3.23.51-r2.ebuild Help?
it happen to me too with -march=athlon and MySQL 3.23.51-r3 with the exacly same error, Gentoo 1.3b too.
there seemed to be a lot that happened to /usr/include/tcpd.h between tcp- wrappers-7.6-r3 and tcp-wrappers-7.6-r4 which causes the MySQL build to fail emerging back to tcp-wrappers-7.6-r3 worked in compiling MySQL 3.23.51-r2 and up. perhaps a resolution to this would be to check for tcp-wrappers r4 or higher and apply a patch to mysql.cc to use the new tcp-wrappers /usr/include/tcpd.h file.
mysql-3.23.51-r3.ebuild works with the following fix on line 48: # patch -p1 < ${FILESDIR}/mysql-3.23.51-tcpd.patch || die has to be changed to: patch -p1 < ${FILESDIR}/mysql-3.23.51-tcpd.patch || die Seems this problem wasn't fixed by upstream. Compiling with gcc3.1.
committed by jnelson