From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Han-Wen Nienhuys Newsgroups: gmane.lisp.guile.devel Subject: Re: GUILE 1.6 CVS doesn't compile Date: Mon, 11 Jul 2005 12:51:50 +0200 Message-ID: <42D24F46.4020900@xs4all.nl> References: <42A98890.2030709@xs4all.nl> <42A988BA.1080806@xs4all.nl> <87psutx5eb.fsf@zip.com.au> <42B5714F.4060503@xs4all.nl> <877jfz2zzx.fsf@zip.com.au> <42D10CF5.7070405@xs4all.nl> <8764vinqws.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1121079908 5340 80.91.229.2 (11 Jul 2005 11:05:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2005 11:05:08 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jul 11 13:04:57 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Drw5P-0005u1-HX for guile-devel@m.gmane.org; Mon, 11 Jul 2005 13:04:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Drw6y-0007G4-GK for guile-devel@m.gmane.org; Mon, 11 Jul 2005 07:06:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Drw46-00063m-V6 for guile-devel@gnu.org; Mon, 11 Jul 2005 07:03:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Drw45-00062M-8s for guile-devel@gnu.org; Mon, 11 Jul 2005 07:03:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Drw44-0005qR-Qz for guile-devel@gnu.org; Mon, 11 Jul 2005 07:03:09 -0400 Original-Received: from [194.109.24.33] (helo=smtp-vbr13.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DrvxD-0003CG-JJ for guile-devel@gnu.org; Mon, 11 Jul 2005 06:56:03 -0400 Original-Received: from [192.168.123.107] (muurbloem.xs4all.nl [213.84.26.127]) by smtp-vbr13.xs4all.nl (8.13.3/8.13.3) with ESMTP id j6BAmPGK046170; Mon, 11 Jul 2005 12:48:26 +0200 (CEST) (envelope-from hanwen@xs4all.nl) User-Agent: Mozilla Thunderbird 1.0.2-6 (X11/20050513) X-Accept-Language: en-us, en Original-To: Kevin Ryde In-Reply-To: <8764vinqws.fsf@zip.com.au> X-Virus-Scanned: by XS4ALL Virus Scanner 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:5155 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:5155 Kevin Ryde wrote: > Han-Wen Nienhuys writes: > >> make check >> >>isn't complaining. > > > I think it works only because that preload array is empty. There's a > terminating zero entry, so the fetch from there gives NULL, and > lt_dlpreload_default can tolerate NULL (it looks like NULL is what's > there if you never call lt_dlpreload_default at all). > > If the array wasn't empty the fetch would be the address of the first > symbol name string, and interpreting that as structs would bomb. I'm loosing you here, AFAIK, the C compiler treats extern struct bla foo[] ; extern struct bla *foo ; exactly the same in a function call of the form preload (foo) the only potential problem I see is with nitpicking compilers/linkers. Anyway, it seems to work. Will you commit? > I suppose the fix is to define the struct, perhaps per below. Or > perhaps the lt_dlpreload_default call isn't needed at all if there's > no -dlopen or -dlpreopen in the link. -- Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel