From owner-freebsd-stable Fri Mar 31 5: 6:21 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mail.hcisp.net (Stargate.hcisp.net [208.60.89.18]) by hub.freebsd.org (Postfix) with SMTP id 5EF3C37B6FD for ; Fri, 31 Mar 2000 05:06:17 -0800 (PST) (envelope-from tim@mysql.com) Received: (qmail 17817 invoked from network); 31 Mar 2000 13:12:22 -0000 Received: from modem7.hcisp.net (HELO threads.polyesthetic.msg) (208.60.89.73) by stargate.hcisp.net with SMTP; 31 Mar 2000 13:12:22 -0000 Received: (qmail 62429 invoked by uid 1001); 31 Mar 2000 13:03:52 -0000 From: "Thimble Smith" Date: Fri, 31 Mar 2000 08:03:52 -0500 To: Kris Kennaway Cc: Siew Sim , freebsd-stable@FreeBSD.ORG Subject: Re: please help - thread-safe mysql client link problem Message-ID: <20000331080352.G76293@threads.polyesthetic.msg> References: <38E3833D.A57695F0@prismedia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from kris@FreeBSD.ORG on Thu, Mar 30, 2000 at 03:25:35PM -0800 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Mar 30, 2000 at 03:25:35PM -0800, Kris Kennaway wrote: >On Thu, 30 Mar 2000, Siew Sim wrote: >> I'm using FreeBSD 3.2, and mysql 3.22.30. I'm trying to build a >> thread-safe mysql client with pthread. > >Use the port. The port doesn't have an option for building a thread-safe client, either (unless it's hidden somewhere that I didn't see it). Siew Sim, those error messages usually happen when something was compiled with -lc_r instead of with -pthread. MySQL's configure script detects -lc_r and it won't use -pthread by default, so I am guessing that's where your problem is. Until that is fixed in MySQL, add this option when you configure: --with-mysqld-ldflags=-pthread --with-client-ldflags=-pthread $ gmake -k clean; rm config.cache $ configure --options $ gmake Let me know if that doesn't solve the problem. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message