From owner-cvs-all Sat May 11 11:34:16 2002 Delivered-To: cvs-all@freebsd.org Received: from kayak.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by hub.freebsd.org (Postfix) with ESMTP id E909037B400; Sat, 11 May 2002 11:34:11 -0700 (PDT) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by kayak.xcllnt.net (8.11.6/8.11.4) with ESMTP id g4BIYBJ95779; Sat, 11 May 2002 11:34:11 -0700 (PDT) (envelope-from marcel@kayak.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp01.pn.xcllnt.net (8.12.3/8.12.3) with ESMTP id g4BIYJO8000346; Sat, 11 May 2002 11:34:19 -0700 (PDT) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.3/8.12.3/Submit) id g4BIYJpk000345; Sat, 11 May 2002 11:34:19 -0700 (PDT) Date: Sat, 11 May 2002 11:34:19 -0700 From: Marcel Moolenaar To: Alfred Perlstein Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc_r/uthread Makefile.inc uthread_autoinit.c uthread_autoinit.cc Message-ID: <20020511183419.GA306@dhcp01.pn.xcllnt.net> References: <200205110813.g4B8Dgo23554@freefall.freebsd.org> <20020511081613.GG90188@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020511081613.GG90188@elvis.mu.org> User-Agent: Mutt/1.3.99i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, May 11, 2002 at 01:16:13AM -0700, Alfred Perlstein wrote: > * Alfred Perlstein [020511 01:13] wrote: > > alfred 2002/05/11 01:13:42 PDT > > > > Modified files: > > lib/libc_r/uthread Makefile.inc > > Added files: > > lib/libc_r/uthread uthread_autoinit.c > > Removed files: > > lib/libc_r/uthread uthread_autoinit.cc > > Log: > > Use GCC's __attribute__ ((constructor)) mechanism to invoke the pthread > > startup code rather than a static C++ object since c++ seems to be broken. > > > > This doesn't seem to work for staticically linked program just yet, I'll > > give that some more work when I get a chance. > > > > Revision Changes Path > > 1.31 +1 -1 src/lib/libc_r/uthread/Makefile.inc > > 1.1 +61 -0 src/lib/libc_r/uthread/uthread_autoinit.c (new) > > 1.4 +0 -89 src/lib/libc_r/uthread/uthread_autoinit.cc (dead) > > Something is bizarro wrt __weak_reference and static linking, anyone > have any ideas? Can you be more specific? It also helps to post a simple program that demonstrates the the "bizarro" behaviour. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message