Date: Thu, 27 Jun 2002 22:10:56 +0800 From: KT Sin <ktsin@acm.org> To: Beech Rintoul <akbeech@sinbad.net> Cc: freebsd-current@FreeBSD.ORG Subject: Re: mysql-server broken Message-ID: <20020627141051.GA4104@nutty.Singapore.Sun.COM> In-Reply-To: <20020627075554.8550E2C4@nebula.anchoragerescue.org> References: <20020627075554.8550E2C4@nebula.anchoragerescue.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Sigh... I was building mysql on Solaris using Forte compiler and got the same error. IMHO, the tcpd.h header is not very c++ friendly. One dirty workaround is to temporarily define the arguments for hosts_access, eval_client and sock_host. Or there could be a flag that could disable strict prototype checking. kt On Wed, Jun 26, 2002 at 11:55:54PM -0800, Beech Rintoul wrote: > I'm getting the following: > > cc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local\"" > -DDATADIR="\"/var/db/mysql\"" > -DSHAREDIR="\"/usr/local/share/mysql\"" > -DHAVE_CONFIG_H -I../bdb/build_unix -I../innobase/include > -I./../include -I./../regex -I. > -I../include -I.. -I. -DDBUG_OFF -O -pipe -felide-constructors -fno-rtti > -fno-exceptions -fno-implicit-templates -fno-exceptions -fno-rtti > -DMYSQLD_NET_RETRY_COUNT=1000000 -c mysqld.cc > /usr/include/tcpd.h: In function `void* handle_connections_sockets(void*)': > /usr/include/tcpd.h:137: too many arguments to function `void sock_host()' > mysqld.cc:2428: at this point in file > /usr/include/tcpd.h:75: too many arguments to function `int hosts_access()' > mysqld.cc:2429: at this point in file > /usr/include/tcpd.h:130: too many arguments to function `char* eval_client()' > mysqld.cc:2437: at this point in file > *** Error code 1 > > Stop in /usr/ports/databases/mysql323-server/work/mysql-3.23.51/sql. > *** Error code 1 > > I added cc=gcc31 cxx=g++31 to my make. Ports tree is up to date. Just > finished world & kernel. Anyone have a suggestion? > > Beech > -- > ------------------------------------------------------------------- > Beech Rintoul - SysAdmin - akbeech@sinbad.net > /"\ ASCII Ribbon Campaign | Sinbad Network Communications > \ / - NO HTML/RTF in e-mail | 3101 Penland Parkway #K-38 > X - NO Word docs in e-mail | Anchorage, AK 99508-1957 > / \ ----------------------------------------------------------------- > > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020627141051.GA4104>