Subject: Re: mysql-server fails to build with the new toolchain
To: Bernd Ernesti <firstname.lastname@example.org>
From: Todd Vierling <email@example.com>
Date: 10/19/2001 00:17:20
On Sun, 7 Oct 2001, Bernd Ernesti wrote:
: c++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/pkg\""
: -DDATADIR="\"/var/mysql\"" -DSHAREDIR="\"/usr/pkg/share/mysql\""
: -DHAVE_CONFIG_H -I../mit-pthreads/include -I./../include -I./../regex
: -I. -I../include -I.. -I. -Dunix -Dunix -O3 -DDBUG_OFF -O2
: -fno-implicit-templates -fno-exceptions -fno-rtti -c mini_client.cc
: mini_client.cc: In function `int mc_sock_connect(int, const sockaddr *, unsigned int, unsigned int)':
: mini_client.cc:289: implicit declaration of function `int select(...)'
: *** Error code 1
: I have no idea what is going on here. I tried to add <unistd.h>, but that didn't fix
: the problem.
This looks like select() is not properly being overridden by the included
pthreads. I would presume that pthreads #define's away the normal
definition of select(), and is supposed to insert its own.
Now, the fact that -fno-implicit-templates turned on this error is kind of
odd. I'll note this oddity and see if it is intended behavior.
-- Todd Vierling <firstname.lastname@example.org> * Wasabi NetBSD: Run with it.
-- CDs, Integration, Embedding, Support -- http://www.wasabisystems.com/