From owner-freebsd-hackers Fri Sep 15 9: 9:33 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 69DC637B424 for ; Fri, 15 Sep 2000 09:09:29 -0700 (PDT) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.3) with ESMTP id JAA10543; Fri, 15 Sep 2000 09:05:43 -0700 (PDT) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.3/8.9.1) id JAA04563; Fri, 15 Sep 2000 09:05:42 -0700 (PDT) (envelope-from jdp@polstra.com) Date: Fri, 15 Sep 2000 09:05:42 -0700 (PDT) Message-Id: <200009151605.JAA04563@vashon.polstra.com> To: hackers@freebsd.org Cc: fjoe@iclub.nsu.ru Subject: Re: Trouble with dynamic loading of C++ libs in PHP v4.02 on FreeBSD 4.1 In-Reply-To: References: Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article , Max Khon wrote: > On Thu, 14 Sep 2000, John Polstra wrote: > > > Actually I now think we should simply build the crt* files from > > gcc's "crtstuff.c" in the standard way, rather than having our own > > versions. The gcc versions are messy but they work fine, and they are > > specifically exempted from the GPL as long as they are used together > > with gcc. > > changes to crt* files to support DWARF2 are minimal, however. The reason I think we should use gcc's "crtstuff.c" versions is that it will make it easier for us to keep in sync with any future changes they make. > there were some problems with pthreads initialization (but David will not > like the way I did it -- some files in contrib/gcc should be changed). > this happened because we initialize pthreads from static object > constructor (which is not the right thing anyway). It seemed like a good idea at the time. :-) What is the problem -- is it that libc_r is initialized at the wrong time? What would you suggest as a better method for initializing the library? I'd hate to introduce a bunch of "if (!initted) { ... }" checks, since those add runtime overhead on every call. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message