Subject: Re: mysql-server fails to build with the new toolchain
To: Bernd Ernesti <>
From: Todd Vierling <>
List: tech-pkg
Date: 10/19/2001 00:17:20
On Sun, 7 Oct 2001, Bernd Ernesti wrote:

: -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
: In function `int mc_sock_connect(int, const sockaddr *, unsigned int, unsigned int)':
: 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 <>  *  Wasabi NetBSD:  Run with it.
-- CDs, Integration, Embedding, Support --