From owner-freebsd-threads@FreeBSD.ORG Wed Nov 19 07:04:18 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A7D816A4CE; Wed, 19 Nov 2003 07:04:18 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FB7743FA3; Wed, 19 Nov 2003 07:04:16 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id hAJF4F1G023627; Wed, 19 Nov 2003 10:04:15 -0500 (EST) Date: Wed, 19 Nov 2003 10:04:15 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: "Jacques A. Vidrine" In-Reply-To: <20031119143357.GG28412@madman.celabo.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE cc: freebsd-threads@freebsd.org Subject: Re: threads and openssl X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2003 15:04:18 -0000 On Wed, 19 Nov 2003, Jacques A. Vidrine wrote: > On Sat, Oct 11, 2003 at 12:48:31AM +0300, Petri Helenius wrote: > > Jacques A. Vidrine wrote: > >=20 > > >On Fri, Oct 10, 2003 at 11:52:13PM +0300, Petri Helenius wrote: > > >=20 > > > > > >>Jacques A. Vidrine wrote: > > >> =20 > > >> > > >>> =20 > > >>> > > >>I ended up putting CFLAGS+=3D-DOPENSSL_THREADS > > >>in make.conf and recompiling world. Works for me. > > >> > > >>However it would make sense to fix it more cleanly. > > > > > >You then linked against a threading library? Blew up here. > > > > > I=B4m sorry but I=B4m unable to follow your train of thought, please ex= plain. >=20 > Can't recall if I replied to this message already. >=20 > When I built OpenSSL with -DOPENSSL_THREADS, and then linked an > OpenSSL-using application with one of our threaded libraries, the > application crashed. $ ldd /usr/lib/libssl.so.3 # or wherever your libssl lies $ ldd ssl_application Are they using different thread libraries? I've never tried this, but just want to be sure you're not blowing up because different libraries are in use. --=20 Dan Eischen