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 [GAH] Date: Tue, 13 Nov 2007 17:29:51 -0800 Organization: Providence Health and Services Message-ID: <1195003791.14558.46.camel@vanguard.or.providence.org> References: <1194888764.4167.13.camel@vanguard.or.providence.org> <87fxzbql1e.fsf@chbouib.org> <1194903472.7717.23.camel@vanguard.or.providence.org> <87hcjrgiov.fsf@chbouib.org> <1194910754.8243.17.camel@vanguard.or.providence.org> <876407dnux.fsf@chbouib.org> <1194912480.9922.4.camel@vanguard.or.providence.org> <1194980443.17472.35.camel@vanguard.or.providence.org> <87d4ud7pp9.fsf@chbouib.org> <1194995156.14558.18.camel@vanguard.or.providence.org> <87ve85irtj.fsf@ossau.uklinux.net> Reply-To: kevin.brott@providence.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1195003825 10282 80.91.229.12 (14 Nov 2007 01:30:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Nov 2007 01:30:25 +0000 (UTC) To: "Guile-User" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Nov 14 02:30:27 2007 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Is75F-0000jl-Li for guile-user@m.gmane.org; Wed, 14 Nov 2007 02:30:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Is753-0000lp-08 for guile-user@m.gmane.org; Tue, 13 Nov 2007 20:30:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Is74x-0000iP-B1 for guile-user@gnu.org; Tue, 13 Nov 2007 20:30:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Is74m-0000IC-Ib for guile-user@gnu.org; Tue, 13 Nov 2007 20:30:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Is74m-0000Hw-DT for guile-user@gnu.org; Tue, 13 Nov 2007 20:29:56 -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 1Is74l-0005qf-Va for guile-user@gnu.org; Tue, 13 Nov 2007 20:29:56 -0500 Original-Received: from mail pickup service by phsor-nat2.providence.org with Microsoft SMTPSVC; Tue, 13 Nov 2007 17:29:52 -0800 X-KryptiqSpooler: Handled Original-Received: from WNP0620K.or.providence.org ([170.220.65.132]) by phsor-nat2.providence.org with Microsoft SMTPSVC(6.0.3790.1830); Tue, 13 Nov 2007 17:29:52 -0800 thread-index: AcgmXdoX/LkpxA9HTAumbx3HKZj0qA== Original-Received: from wn1218.or.providence.org ([170.220.66.246]) by WNP0620K.or.providence.org with Microsoft SMTPSVC(6.0.3790.1830); Tue, 13 Nov 2007 17:29:51 -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 ; Wed, 14 Nov 2007 01:29:51 +0000 Original-Received: from vanguard by email.providence.org; 13 Nov 2007 17:29:51 -0800 In-Reply-To: <87ve85irtj.fsf@ossau.uklinux.net> Content-Class: urn:content-classes:message Importance: normal Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2992 X-Mailer: Evolution 2.12.1 X-OriginalArrivalTime: 14 Nov 2007 01:29:51.0241 (UTC) FILETIME=[DA10D790:01C8265D] X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ 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:6279 Archived-At: On Wed, 2007-11-14 at 00:39 +0000, Neil Jerram wrote: > "Kevin Brott" writes: >=20 > > Still baffled - but haven't given up yet. >=20 > Going back to your original report... all of the compile errors were > triggered on lines containing "func_data". Is it possible that you're > somehow pulling in a header which #defines func_data to be something > else (including a .) ? What happens if you change all occurrences of > "func_data" to "xxx_func_data" and then build again? >=20 > Also, looking through the thread, I became confused about which gcc > version / OS combinations exhibit this problem, and which don't. > Could you give a summary all in one place? >=20 > Regards, > Neil >=20 okay - fairly simple (I hope): AIX 5.2 + gcc 4.2.2 =3D guile 1.8.3 w/not compile Ubuntu 7.10 + gcc 4.1.2 =3D guile 1.8.3 compiles BUT - when you try to compile the code snips out of hooks.h that the error refers to - both the Linux and AIX gcc's spew identical errors. I'm working through the gcc compile line that explodes - and I've found one thing rather interesting --- the last compile line in guile-1.8.3/libguile that explodes is: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I/opt/phs/include -D_THREAD_SAFE = -O2 -mcpu=3Dpower2 -pthread -Wall -Wmissing-prototypes -Werror=20 -MT libguile_la-discouraged.lo -MD -MP -MF = deps/libguile_la-discouraged.Tpo=20 -c discouraged.c -DPIC -o .libs/libguile_la-discouraged.o Which gives 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 Now if I cd into libguile and hand-execute that line - without the -I.. elements it compiles without errors. Which argues that something else I'm not seeing is being included that is causing the problem. Code-monkey friend of mine suggested that the problem is with the cpp output, but when I do this: cpp discouraged.c -o foo.c && gcc -c foo.c I get foo.o and no errors. Now bear in mind that I'm a C/C++ newb and that last bit probably means nada. You sir have hit a nail on the head - at least the compile got past discouraged.c anyway ... perl -pi -e 's/func_data/xxx_func_data/g' libguile/hooks.h gmake clean && gmake ... gets down to: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I/opt/phs/include = -I/opt/freeware/include=20 -D_THREAD_SAFE -g -O2 -Wall -Wmissing-prototypes -Werror -MT = libguile_la-gc.lo=20 -MD -MP -MF .deps/libguile_la-gc.Tpo -c gc.c -DPIC -o = libs/libguile_la-gc.o gc.c:974: error: expected ';', ',' or ')' before '.' token gc.c: In function 'scm_init_gc': gc.c:1023: error: 'mark_gc_async' undeclared (first use in this = function) gc.c:1023: error: (Each undeclared identifier is reported only once gc.c:1023: error: for each function it appears in.) gmake[3]: *** [libguile_la-gc.lo] Error 1 Oh look !=20 gc.c:974: void *func_data SCM_UNUSED, more perlfoo on gc.c gmake clean && gmake ... gets down to: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I/opt/phs/include = -I/opt/freeware/include=20 -D_THREAD_SAFE -g -O2 -Wall -Wmissing-prototypes -Werror -MT = libguile_la-hooks.lo=20 -MD -MP -MF .deps/libguile_la-hooks.Tpo -c hooks.c -DPIC -o = libs/libguile_la-hooks.o hooks.c:53: error: expected ';', ',' or ')' before '.' token hooks.c:70: error: expected ';', ',' or ')' before '.' token gmake[3]: *** [libguile_la-hooks.lo] Error 1 more perlfoo on hooks.c gmake clean && gmake ... gets down to: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I/opt/phs/include = -I/opt/freeware/include=20 -D_THREAD_SAFE -g -O2 -Wall -Wmissing-prototypes -Werror -MT = libguile_la-numbers.lo=20 -MD -MP -MF .deps/libguile_la-numbers.Tpo -c numbers.c -DPIC -o = libs/libguile_la-numbers.o cc1: warnings being treated as errors numbers.c: In function 'guile_ieee_init': numbers.c:617: warning: dereferencing type-punned pointer will break = strict-aliasing rules numbers.c:640: warning: dereferencing type-punned pointer will break = strict-aliasing rules numbers.c: In function 'scm_exp': numbers.c:6081: error: '__I' undeclared (first use in this function) numbers.c:6081: error: (Each undeclared identifier is reported only once numbers.c:6081: error: for each function it appears in.) gmake[3]: *** [libguile_la-numbers.lo] Error 1 Which is : 6078 if (SCM_COMPLEXP (z)) 6079 { 6080 #if HAVE_COMPLEX_DOUBLE && HAVE_CEXP 6081 return scm_from_complex_double (cexp (SCM_COMPLEX_VALUE = (z))); 6082 #else 6083 return scm_c_make_polar (exp (SCM_COMPLEX_REAL (z)), 6084 SCM_COMPLEX_IMAG (z)); 6085 #endif 6086 } And I'm stuck again :p running a 'find' now to see if func_data is showing up somewhere else = being sneaky. --=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