From owner-freebsd-hackers Fri Jan 8 14:34:47 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA05328 for freebsd-hackers-outgoing; Fri, 8 Jan 1999 14:34:47 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from abyssinian.sleepycat.com (sleepycat.com [199.103.241.218]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA05321 for ; Fri, 8 Jan 1999 14:34:44 -0800 (PST) (envelope-from db@abyssinian.sleepycat.com) Received: (from db@localhost) by abyssinian.sleepycat.com (8.8.8/8.8.8) id RAA29270; Fri, 8 Jan 1999 17:34:09 -0500 (EST) Date: Fri, 8 Jan 1999 17:34:09 -0500 (EST) From: Sleepycat Software Message-Id: <199901082234.RAA29270@abyssinian.sleepycat.com> To: jb@cimlogic.com.au Subject: Re: Strange warnings when compiling Berkeley DB on FreeBSD 3.0 Cc: freebsd-hackers@FreeBSD.ORG, openldap-devel@openldap.org, yusufg@huge.net Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Sleepycat Software wrote: >> We were told that, for thread-safe programs under FreeBSD, >> we should add -D_THREAD_SAFE to the C pre-processor flags, >> and load against -lc_r. Is that not correct? > > Linking against both libc and libc_r will cause strange results. > Using gcc -pthread is the correct way. Thank you! This will be fixed in our next release. Regards, Amy Adams =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Amy Adams Berkeley DB Product Manager Sleepycat Software Inc. db@sleepycat.com 394 E. Riding Dr. +1-617-633-2429 Carlisle, MA 01741 http://www.sleepycat.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message