From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: undefined reference to `scm_init_guile' Date: Sat, 11 Mar 2006 18:43:17 +0000 Message-ID: <87r758rfei.fsf@ossau.uklinux.net> References: <87u0a7tfex.fsf@ossau.uklinux.net> <20060310064102.GA11885@esat.kuleuven.be> <87veumvtls.fsf@ossau.uklinux.net> <20060310222332.GA23867@esat.kuleuven.be> <87k6b1x6r7.fsf@ossau.uklinux.net> <20060310230103.GA12731@esat.kuleuven.be> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1142192890 27875 80.91.229.2 (12 Mar 2006 19:48:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Mar 2006 19:48:10 +0000 (UTC) Cc: Guile Development Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Mar 12 20:48:06 2006 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FIW8Y-0008Ge-1g for guile-devel@m.gmane.org; Sun, 12 Mar 2006 20:21:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FIW8X-0001Jk-Es for guile-devel@m.gmane.org; Sun, 12 Mar 2006 14:21:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FI97V-00054g-Vz for guile-devel@gnu.org; Sat, 11 Mar 2006 13:47:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FI97R-00054U-HY for guile-devel@gnu.org; Sat, 11 Mar 2006 13:47:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FI97R-00054R-CK for guile-devel@gnu.org; Sat, 11 Mar 2006 13:47:13 -0500 Original-Received: from [80.84.72.33] (helo=mail3.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FI9B0-0003JO-RR for guile-devel@gnu.org; Sat, 11 Mar 2006 13:50:55 -0500 Original-Received: from laruns (host86-129-144-246.range86-129.btcentralplus.com [86.129.144.246]) by mail3.uklinux.net (Postfix) with ESMTP id 4704E409FCD; Sat, 11 Mar 2006 18:47:12 +0000 (UTC) Original-Received: from laruns (laruns [127.0.0.1]) by laruns (Postfix) with ESMTP id BDFD99F8A0; Sat, 11 Mar 2006 18:43:17 +0000 (GMT) Original-To: steven mestdagh In-Reply-To: <20060310230103.GA12731@esat.kuleuven.be> (steven mestdagh's message of "Sat, 11 Mar 2006 00:01:03 +0100") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:5780 Archived-At: steven mestdagh writes: > Neil Jerram [2006-03-10, 22:41:16]: >> >> OK, so it's HAVE_LIBC_STACK_END that is not defined, then? When this >> is the case, 1.8 leaves scm_init_guile undefined, whereas 1.6 would >> use the vast pile of magic in gc_os_dep.c. > > indeed this is a function we do not have. Would you mind trying the program below on your system? It may be that on OpenBSD the pthread approach works for the main thread, and so HAVE_LIBC_STACK_END isn't needed anyway. (And interestingly, this program says that __libc_stack_end isn't needed on my Debian GNU/Linux, despite the comment in threads.c suggesting that it _is_ needed on Linux.) Thanks, Neil #include int main () { pthread_attr_t attr; void *start, *end; size_t size; pthread_getattr_np (pthread_self (), &attr); pthread_attr_getstack (&attr, &start, &size); end = (char *)start + size; printf("start = %p, &attr = %p, end = %p\n", start, &attr, end); if ((void *)&attr < start || (void *)&attr >= end) printf("__libc_stack_end is needed\n"); else printf("__libc_stack_end is NOT needed\n"); exit (0); } /* compile-command: cc -o pthrt pthrt.c -lpthread */ _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel