Date: Mon, 25 Aug 2003 16:12:20 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Alex <alex@dynaweb.ru> Cc: FreeBSD questions list <freebsd-questions@FreeBSD.ORG> Subject: Re: lack of pthread_atfork() in FreeBSD 4.8 Message-ID: <20030825211220.GE26367@dan.emsphone.com> In-Reply-To: <3F4A7A34.1080008@dynaweb.ru> References: <3F4A3CE6.1020805@dynaweb.ru> <20030825165613.GA26367@dan.emsphone.com> <3F4A7A34.1080008@dynaweb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030825211220.GE26367>