Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Oct 2000 20:27:44 +0400
From:      "Artem Koutchine" <matrix@ipform.ru>
To:        <freebsd-database@FreeBSD.ORG>
Subject:   Compiling MySQL 2.23.27 with linuxthreads on FreeBSD 4.1.1-STABLE
Message-ID:  <00f701c03ea0$8812d940$0c00a8c0@ipform.ru>

next in thread | raw e-mail | index | archive | help
Hi!

I have compiled and run MySQL 3.23.25 with linuxthreads before
and now i wanted to see to it performs on a multi-CPU box.
So, i fetched 3.23.27, installed linuxthreads from ports/devel
run

./configure  --prefix=/usr/local/mysql --with-charset=win1251
--localstatedir=/usr/local/mysql/data --with-mit-thread=no
--without-debug --without-perl --without-bench
'--with-named-thread-libs=-L/usr/local/lib -llthread -llgcc_r'

run gmake (tried make too, but mySQL is better build with gmake)

and got:
/usr/lib/libc.so: WARNING!  setkey(3) not present in the system!
/usr/lib/libc.so: warning: this program uses gets(), which is unsafe.
/usr/lib/libc.so: warning: mktemp() possibly used unsafely; consider using
mkstemp()
/usr/lib/libc.so: WARNING!  des_setkey(3) not present in the system!
/usr/lib/libc.so: WARNING!  encrypt(3) not present in the system!
/usr/lib/libc.so: warning: tmpnam() possibly used unsafely; consider using
mkstemp()
/usr/lib/libc.so: warning: this program uses f_prealloc(), which is stupid.
/usr/lib/libc.so: WARNING!  des_cipher(3) not present in the system!

and this is repeated many times, but eventually it fails with:

gmake[3]: Entering directory `/usr/local/build/mysql-3.23.27-beta/sql/share'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory `/usr/local/build/mysql-3.23.27-beta/sql/share'
gmake[3]: Entering directory `/usr/local/build/mysql-3.23.27-beta/sql'
c++ -DMYSQL_SERVER                      -DDEFAULT_MYSQL_HOME="\"/usr/local/m
ysql\""                     -DDATADIR="\"/usr/local/mysql/data\""
       -DSHAREDIR="\"/usr/local/mysql/share/mysql\""                   -DHAV
E_CONFIG_H -I./../include -I./../regex                    -I. -I../include -
I.. -I.    -O3 -DDBUG_OFF   -fno-implicit-templates -DMYSQLD_NET_RETRY_COUNT
=1000000 -c mini_client.cc
mini_client.cc: In function `struct MYSQL * mc_mysql_connect(MYSQL *, const
char *, const char *, const char *, const char *, unsigned int, const char
*, unsigned int)':
mini_client.cc:579: implicit declaration of function `int
gethostbyname_r(...)'
mini_client.cc:579: assignment to `hostent *' from `int' lacks a cast
gmake[3]: *** [mini_client.o] Error 1
gmake[3]: Leaving directory `/usr/local/build/mysql-3.23.27-beta/sql'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/local/build/mysql-3.23.27-beta/sql'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/build/mysql-3.23.27-beta'
gmake: *** [all-recursive-am] Error 2


I'd rather not start patching the source, because it build perfectly with
native FBSD threads and i got
this only with linuxthreads. Any idea how to build it?

Everything is the latest cvsupped. (linuxthreads: 2.1.3 from ports,
fbsd 4.1.1-stable, mysql 3.23.27-beta original tar ball from www.mysql.com).

Artem






To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-database" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00f701c03ea0$8812d940$0c00a8c0>