From owner-freebsd-current Thu Jun 27 7:11: 4 2002 Delivered-To: freebsd-current@freebsd.org Received: from patan.sun.com (patan.Sun.COM [192.18.98.43]) by hub.freebsd.org (Postfix) with ESMTP id B64EC37B401 for ; Thu, 27 Jun 2002 07:10:58 -0700 (PDT) Received: from nutty.singapore.sun.com ([129.158.72.188]) by patan.sun.com (8.9.3+Sun/8.9.3) with SMTP id IAA20334 for ; Thu, 27 Jun 2002 08:10:57 -0600 (MDT) Received: (qmail 4277 invoked by uid 99407); Thu, 27 Jun 2002 22:10:56 +0800 (SGT) Date: Thu, 27 Jun 2002 22:10:56 +0800 From: KT Sin To: Beech Rintoul Cc: freebsd-current@FreeBSD.ORG Subject: Re: mysql-server broken Message-ID: <20020627141051.GA4104@nutty.Singapore.Sun.COM> References: <20020627075554.8550E2C4@nebula.anchoragerescue.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020627075554.8550E2C4@nebula.anchoragerescue.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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