From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: steven mestdagh Newsgroups: gmane.lisp.guile.devel Subject: Re: undefined reference to `scm_init_guile' Date: Sat, 11 Mar 2006 20:02:47 +0100 Message-ID: <20060311190247.GA21246@esat.kuleuven.be> 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> <87r758rfei.fsf@ossau.uklinux.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1142266669 16740 80.91.229.2 (13 Mar 2006 16:17:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Mar 2006 16:17:49 +0000 (UTC) Cc: Guile Development Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Mar 13 17:17:46 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 1FIpgc-0003mG-7Q for guile-devel@m.gmane.org; Mon, 13 Mar 2006 17:14:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FIpgb-0007aM-Jn for guile-devel@m.gmane.org; Mon, 13 Mar 2006 11:14:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FI9MZ-0003I6-Rj for guile-devel@gnu.org; Sat, 11 Mar 2006 14:02:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FI9MY-0003Hs-K6 for guile-devel@gnu.org; Sat, 11 Mar 2006 14:02:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FI9MY-0003Hp-Fr for guile-devel@gnu.org; Sat, 11 Mar 2006 14:02:50 -0500 Original-Received: from [134.58.240.41] (helo=nibbel.kulnet.kuleuven.ac.be) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FI9Q7-0004Lx-SV for guile-devel@gnu.org; Sat, 11 Mar 2006 14:06:32 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by nibbel.kulnet.kuleuven.ac.be (Postfix) with ESMTP id 712794CC67; Sat, 11 Mar 2006 20:02:48 +0100 (CET) Original-Received: from smtp01.kuleuven.be (octavianus.kulnet.kuleuven.ac.be [134.58.240.71]) by nibbel.kulnet.kuleuven.ac.be (Postfix) with ESMTP id D1DED4CA48; Sat, 11 Mar 2006 20:02:47 +0100 (CET) Original-Received: from smtp01.kuleuven.be (localhost.localdomain [127.0.0.1]) by smtp01.kuleuven.be (Postfix) with ESMTP id B2A1863E49; Sat, 11 Mar 2006 20:02:47 +0100 (CET) Original-Received: from nijl.esat.kuleuven.be (nijl.esat.kuleuven.be [134.58.56.153]) by smtp01.kuleuven.be (Postfix) with ESMTP id A7BFE63E39; Sat, 11 Mar 2006 20:02:47 +0100 (CET) Original-Received: from ohm.esat.kuleuven.be (ohm.esat.kuleuven.be [134.58.63.167]) by nijl.esat.kuleuven.be (8.13.5/8.13.5) with ESMTP id k2BJ2lti006521; Sat, 11 Mar 2006 20:02:47 +0100 Original-Received: from ohm.esat.kuleuven.be (smestdag@localhost.esat.kuleuven.be [127.0.0.1]) by ohm.esat.kuleuven.be (8.13.4/8.13.4) with ESMTP id k2BJ2lXm001129; Sat, 11 Mar 2006 20:02:47 +0100 (CET) Original-Received: (from smestdag@localhost) by ohm.esat.kuleuven.be (8.13.4/8.13.3/Submit) id k2BJ2le5013493; Sat, 11 Mar 2006 20:02:47 +0100 (CET) Original-To: Neil Jerram Content-Disposition: inline In-Reply-To: <87r758rfei.fsf@ossau.uklinux.net> User-Agent: Mutt/1.5.11 X-Virus-Scanned: by KULeuven Antivirus Cluster X-Mailman-Approved-At: Mon, 13 Mar 2006 11:14:16 -0500 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:5781 Archived-At: Neil Jerram [2006-03-11, 18:43:17]: > 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. $ cc -pthread -o pthrt pthrt.c -lpthread /tmp//ccd14895.o(.text+0x2c): In function `main': : undefined reference to `pthread_getattr_np' I don't really know much about threaded stuff, but you might want to check the man pages for OpenBSD's pthreads library: http://www.openbsd.org/cgi-bin/man.cgi?query=pthreads > > (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 */ Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel