From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Kevin Brott" Newsgroups: gmane.lisp.guile.user Subject: Re: Guile 1.8.2 Compile Error Date: Mon, 12 Nov 2007 13:37:52 -0800 Organization: Providence Health and Services Message-ID: <1194903472.7717.23.camel@vanguard.or.providence.org> References: <1194888764.4167.13.camel@vanguard.or.providence.org> <87fxzbql1e.fsf@chbouib.org> Reply-To: kevin.brott@providence.org NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1194906747 12043 80.91.229.10 (12 Nov 2007 22:32:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Nov 2007 22:32:27 +0000 (UTC) To: Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Nov 12 23:36:38 2007 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1IrhtN-0003Ee-Nn for guile-user@m.gmane.org; Mon, 12 Nov 2007 23:36:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IrhjX-0006mz-Gu for guile-user@m.gmane.org; Mon, 12 Nov 2007 17:26:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IrhjT-0006mo-EF for guile-user@gnu.org; Mon, 12 Nov 2007 17:26:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IrhjH-0006jm-06 for guile-user@gnu.org; Mon, 12 Nov 2007 17:26:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IrhjG-0006jc-Mn for guile-user@gnu.org; Mon, 12 Nov 2007 17:26:02 -0500 Original-Received: from phsor-nat2.providence.org ([170.220.2.14]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IrhjE-0002r2-QT for guile-user@gnu.org; Mon, 12 Nov 2007 17:26:02 -0500 Original-Received: from mail pickup service by phsor-nat2.providence.org with Microsoft SMTPSVC; Mon, 12 Nov 2007 13:37:53 -0800 X-KryptiqSpooler: Handled Original-Received: from WNP0621C.or.providence.org ([170.220.65.131]) by phsor-nat2.providence.org with Microsoft SMTPSVC(6.0.3790.1830); Mon, 12 Nov 2007 13:37:53 -0800 Thread-Index: AcgldEdtx2EBdgqYTo2WqtUvUYOtKA== Original-Received: from wn1218.or.providence.org ([170.220.66.246]) by WNP0621C.or.providence.org with Microsoft SMTPSVC(6.0.3790.1830); Mon, 12 Nov 2007 13:37:52 -0800 Original-Received: from 170.220.75.108 ([170.220.75.108]) by wn1218.or.providence.org ([170.220.66.246]) via Exchange Front-End Server email.providence.org ([170.220.65.142]) with Microsoft Exchange Server HTTP-DAV ; Mon, 12 Nov 2007 21:37:53 +0000 Original-Received: from vanguard by email.providence.org; 12 Nov 2007 13:37:53 -0800 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2992 Content-class: urn:content-classes:message Importance: normal Priority: normal In-Reply-To: <87fxzbql1e.fsf@chbouib.org> X-Mailer: Evolution 2.12.1 X-OriginalArrivalTime: 12 Nov 2007 21:37:52.0440 (UTC) FILETIME=[47669B80:01C82574] X-detected-kernel: by monty-python.gnu.org: Windows XP SP1+, 2000 SP3 X-Greylist: delayed 2883 seconds by postgrey-1.27 at monty-python; Mon, 12 Nov 2007 17:25:57 EST X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6266 Archived-At: Ludovic, et al; On Mon, 2007-11-12 at 21:13 +0100, Ludovic Court=C3=A8s wrote:=20 > Hi, >=20 > "Kevin Brott" writes: >=20 > > Hopefully I'm not out-of-line or violating protocol in some brutish > > fashion, but regarding this query/response on the guile-user mailing > > list archive ... >=20 > Actually nobody replied to my query so I'll ask you the same so that = we > can find out what's going on. :-) >=20 > (Please make sure to answer on-list so that we don't lose track of > this.) Caveat Emptor: While I've had quite a bit of experience compiling code and debugging basic syntax errors and os-specific mis-assumptions, I've not had the need to be a C/C++ code-jockey of any more skill (yet) than to write anything more complex than output hacks for something as simple as hello.c (*toe*). :q Recap: I'm having a problem compiling guile 1.8.3 on AIX 5.2 using gcc 4.2.2, that's pretty much identical to the problem reported on guile 1.8.2 (and using the same gcc as previously reported on 1.8.2 I get the same error as previously reported). The error for 1.8.3 looks like this: In file included from ../libguile/gc.h:27, from ../libguile.h:73, from discouraged.c:22: ./libguile/hooks.h:43: error: expected ';', ',' or ')' before '.' token ./libguile/hooks.h:48: error: expected specifier-qualifier-list before = 'scm_t_c_hook_function' ./libguile/hooks.h:62: error: expected declaration specifiers or '...' = before 'scm_t_c_hook_function' ./libguile/hooks.h:63: error: expected ';', ',' or ')' before '.' token ./libguile/hooks.h:66: error: expected declaration specifiers or '...' = before 'scm_t_c_hook_function' ./libguile/hooks.h:67: error: expected ';', ',' or ')' before '.' token gmake[3]: *** [libguile_la-discouraged.lo] Error 1 Were you asking to just put the quoted code lines in a .c file and see what happens when I apply gcc to it, or were you looking for something more specific? I'm willing to do whatever you like, but I might need a more specific set of directions (possibly an example of the code you want me to test)? In the hopes it's something simple -- if test.c is: ---cut--- typedef void *(*scm_t_c_hook_function) (void *hook_data, void *func_data, void *data); SCM_API void scm_c_hook_add (scm_t_c_hook *hook, scm_t_c_hook_function func, void *func_data, int appendp); SCM_API void scm_c_hook_remove (scm_t_c_hook *hook, scm_t_c_hook_function func, void *func_data); ---cut--- and I do gcc -o test test.c ... I get ... test.c:6: error: expected '=3D', ',', ';', 'asm' or '__attribute__' = before 'void' test.c:11: error: expected '=3D', ',', ';', 'asm' or '__attribute__' = before 'void' Which are the SCM_API declarations. Now if I include all of the subsections that report error lines from the libguile compile, test2.c looks like (line numbers from original code - not in .c): ---cut--- 41: 42: typedef void *(*scm_t_c_hook_function) (void *hook_data, 43* void *func_data, 44: void *data); 45: 46: typedef struct scm_t_c_hook_entry { 47: struct scm_t_c_hook_entry *next; 48* scm_t_c_hook_function func; 49: void *data; 50: } scm_t_c_hook_entry; 51...60 61: SCM_API void scm_c_hook_add (scm_t_c_hook *hook, 62* scm_t_c_hook_function func, 63* void *func_data, 64: int appendp); 65: SCM_API void scm_c_hook_remove (scm_t_c_hook *hook, 66* scm_t_c_hook_function func, 67* void *func_data); 68: ---cut--- I get ... test2.c:12: error: expected '=3D', ',', ';', 'asm' or '__attribute__' = before 'void' test2.c:16: error: expected '=3D', ',', ';', 'asm' or '__attribute__' = before 'void' Which are the SCM_API declarations again. Suggestions, correction for a more valid / informative test? Just to head off the inevitable, Yes, the gcc build I have does build working binaries/libs. I can build (for example) something as intensive and make-check breakable as gmp 4.2.2 with no problems. =20 Guile 1.4.1 builds cleanly and passes all of 'make check' on this platform. Guile 1.6.8 builds a (seemingly) working copy (but 'make check' gives about 20 errors on srfi-4.test - everything else passes fine). --=20 #include /* Kevin Brott =20 * Unix Systems Engineer - SA Group - Provtech * Providence Health Systems, Tigard, OR */ DISCLAIMER: This message is intended for the sole use of the addressee, and may = contain information that is privileged, confidential and exempt from = disclosure under applicable law. If you are not the addressee you are = hereby notified that you may not use, copy, disclose, or distribute to = anyone the message or any information contained in the message. If you = have received this message in error, please immediately advise the = sender by reply email and delete this message. _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user