Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Mar 2000 08:39:26 -0800
From:      Siew Sim <siewsim@prismedia.com>
To:        freebsd-stable@FreeBSD.ORG
Subject:   please help - thread-safe mysql client link problem
Message-ID:  <38E3833D.A57695F0@prismedia.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38E3833D.A57695F0>