From owner-freebsd-questions Wed Oct 25 8:36:25 2000 Delivered-To: freebsd-questions@freebsd.org Received: from osiris.ipform.ru (osiris.ipform.ru [212.158.165.98]) by hub.freebsd.org (Postfix) with ESMTP id AFFE237B4C5 for ; Wed, 25 Oct 2000 08:36:11 -0700 (PDT) Received: from wp2 (wp2 [192.168.0.12]) by osiris.ipform.ru (8.11.1/8.11.1) with SMTP id e9PFa3k26388 for ; Wed, 25 Oct 2000 19:36:03 +0400 (MSD) (envelope-from matrix@ipform.ru) Message-ID: <00c401c03e99$48eec5a0$0c00a8c0@ipform.ru> From: "Artem Koutchine" To: Subject: Compiling MySQL 2.23.27 with linuxthreads on FreeBSD 4.1.1-STABLE Date: Wed, 25 Oct 2000 19:35:56 +0400 Organization: IP Form MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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-questions" in the body of the message