Subject: Errors While Building MySQL4-Server
To: None <tech-pkg@netbsd.org>
From: J. Alexander Jacocks <jjacocks@mac.com>
List: tech-pkg
Date: 04/04/2004 16:07:13
I have run into more trouble while building packages using pkgsrc  
(current) on Solaris 8 (sparc64).  MySQL4-server builds fine, until it  
seems to have trouble including tcpd.h (TCP wrappers).  Here are the  
errors:

g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/local/pkg\""  
-DDATADIR="\"/local/pkg/mysql\""  
-DSHAREDIR="\"/local/pkg/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I..  
-I../innobase/include -I./../include -I./../regex -I. -I../include -I.  
-I/usr/local/include  -Dunix -I/local/pkg/include  -O3 -DDBUG_OFF -O  
-DHAVE_CURSES_H -I/local/pkg/include -DHAVE_CURSES_H   
-fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -c -o  
mysqld.o `test -f 'mysqld.cc' || echo './'`mysqld.cc
/local/pkg/pkgsrc/databases/mysql4-server/work/.buildlink/include/ 
tcpd.h: In
    function `void* handle_connections_sockets(void*)':
/local/pkg/pkgsrc/databases/mysql4-server/work/.buildlink/include/ 
tcpd.h:210: error: too
    many arguments to function `void sock_host()'
mysqld.cc:2973: error: at this point in file
/local/pkg/pkgsrc/databases/mysql4-server/work/.buildlink/include/ 
tcpd.h:140: error: too
    many arguments to function `int hosts_access()'
mysqld.cc:2974: error: at this point in file
/local/pkg/pkgsrc/databases/mysql4-server/work/.buildlink/include/ 
tcpd.h:203: error: too
    many arguments to function `char* eval_client()'
mysqld.cc:2982: error: at this point in file
gmake[4]: *** [mysqld.o] Error 1

I'm building using the following tools:

ajacocks@olympus[~]$ pkg_info | grep gmake
gmake-3.80nb3       GNU version of 'make' utility
ajacocks@olympus[~]$ pkg_info | grep gcc
gcc3-c-3.3.3        GNU Compiler Collection, v3 - C compiler
gcc3-c++-3.3.3      GNU Compiler Collection, v3 - C++ compiler
gcc3-f77-3.3.3      GNU Compiler Collection, v3 - F77 compiler

Thanks for any help!