Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5586 - MySQL 3.23.51-r2 Compile Problems
Summary: MySQL 3.23.51-r2 Compile Problems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-25 17:16 UTC by Chris Sorisio
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Sorisio 2002-07-25 17:16:07 UTC
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?
Comment 1 bar4ka 2002-07-26 13:16:44 UTC
it happen to me too with -march=athlon and MySQL 3.23.51-r3 with the exacly 
same error, Gentoo 1.3b too. 
Comment 2 Bjorn 2002-07-27 13:44:00 UTC
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.
Comment 3 Kai Duebbert 2002-07-28 14:50:42 UTC
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. 
Comment 4 Ryan Phillips (RETIRED) gentoo-dev 2002-07-29 03:09:10 UTC
 committed by jnelson