From owner-freebsd-questions@FreeBSD.ORG Mon Aug 25 14:12:23 2003 Return-Path: <owner-freebsd-questions@FreeBSD.ORG> Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5D6C16A4BF for <freebsd-questions@FreeBSD.ORG>; Mon, 25 Aug 2003 14:12:23 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F18743FEA for <freebsd-questions@FreeBSD.ORG>; Mon, 25 Aug 2003 14:12:23 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h7PLCKC8003214; Mon, 25 Aug 2003 16:12:20 -0500 (CDT) (envelope-from dan) Date: Mon, 25 Aug 2003 16:12:20 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Alex <alex@dynaweb.ru> Message-ID: <20030825211220.GE26367@dan.emsphone.com> References: <3F4A3CE6.1020805@dynaweb.ru> <20030825165613.GA26367@dan.emsphone.com> <3F4A7A34.1080008@dynaweb.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F4A7A34.1080008@dynaweb.ru> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: FreeBSD questions list <freebsd-questions@FreeBSD.ORG> Subject: Re: lack of pthread_atfork() in FreeBSD 4.8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions <freebsd-questions.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions> List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=subscribe> X-List-Received-Date: Mon, 25 Aug 2003 21:12:24 -0000 In the last episode (Aug 26), Alex said: > Dan Nelson wrote: > >In the last episode (Aug 25), Alex said: > >>I've got a problem when compiling Peter Gutmann's CryptLib under > >>FreeBSD 4.8 as it needs some unimplemented function in pthreads > >>library pthread_atfork(). > > > >Use the port? /usr/ports/security/cryptlib builds just fine for me on > >4.x and 5.x > > > > I have no actual idea what Peter had changed there since beta 4 that was > compiled w/out any problem but I need beta 5 because of SSH problems in > previous betas under FreeBSD. > I looked through /usr/ports/security/cryptlib and found it just > downloading tarball from Peter's ftp with all faults I'm facing every > time when compiling it. > I mean original makefile ignores -pthread option and hence makes a mass > of linker errors to occur. The pthread_atfork() business is only required for broken pthreads implementations that return a different value for getpid() from each thread (i.e. Linux). He's got his ifdefs backwrds imho. The code in rndunix.c:1270 should test for __LINUX__, instead of testing for all other unixes :) Try adding || defined(__FreeBSD__) to the set of tests on line 1270. -- Dan Nelson dnelson@allantgroup.com