From owner-freebsd-stable Thu Mar 30 8:35:50 2000 Delivered-To: freebsd-stable@freebsd.org Received: from shell.tsoft.com (shell.tsoft.com [198.144.192.5]) by hub.freebsd.org (Postfix) with ESMTP id 5825737BCAC for ; Thu, 30 Mar 2000 08:35:47 -0800 (PST) (envelope-from siewsim@prismedia.com) Received: from prismedia.com (m205-186.dsl.tsoft.com [198.144.205.186]) by shell.tsoft.com (8.8.7/8.8.7) with ESMTP id IAA14113 for ; Thu, 30 Mar 2000 08:35:46 -0800 (PST) Message-ID: <38E3833D.A57695F0@prismedia.com> Date: Thu, 30 Mar 2000 08:39:26 -0800 From: Siew Sim Reply-To: siewsim@prismedia.com Organization: PRISMedia X-Mailer: Mozilla 4.6 [en] (X11; I; FreeBSD 3.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-stable@FreeBSD.ORG Subject: please help - thread-safe mysql client link problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I'm using FreeBSD 3.2, and mysql 3.22.30. I'm trying to build a thread-safe mysql client with pthread. Following the mysql spec, I defined THREAD_SAFE_CLIENT before running configure, and still get these warnings while building mysql: g++ -pthread -DUNDEF_THREADS_HACK -I./../include -I../include -I./.. -I.. -I.. -DTHREAD_SAFE_CLIENT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -DDBUG_OFF -fno-implicit-templates -DMYSQLD_NET_RETRY_COUNT=1000000 -c completion_hash.cc /bin/sh ../libtool --mode=link g++ -pthread -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -DDBUG_OFF -fno-implicit-templates -DMYSQLD_NET_RETRY_COUNT=1000000 -o mysql mysql.o readline.o sql_string.o completion_hash.o ../readline/libreadline.a -lncurses libmysqlclient.la -lm -lz -lcrypt g++ -pthread -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -DDBUG_OFF -fno-implicit-templates -DMYSQLD_NET_RETRY_COUNT=1000000 -o .libs/mysql mysql.o readline.o sql_string.o completion_hash.o ../readline/libreadline.a -lncurses .libs/libmysqlclient.so -lm -lz -lcrypt -lm -lz -lcrypt -Wl,--rpath -Wl,/usr/local/lib/mysql /usr/lib/libc.so.3: warning: this program uses gets(), which is unsafe. /usr/lib/libc.so.3: WARNING! setkey(3) not present in the system! /usr/lib/libc.so.3: WARNING! des_setkey(3) not present in the system! /usr/lib/libc.so.3: WARNING! encrypt(3) not present in the system! /usr/lib/libc.so.3: WARNING! des_cipher(3) not present in the system! /usr/lib/libc.so.3: warning: this program uses f_prealloc(), which is stupid. creating mysql According to the gcc man page, gcc uses libc_r instead of libc if -pthread option is used. This build seems to use libc, can someone tell me what I'm missing? Thanks! Siew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message