Re: Guile 1.8.2 Compile Error [GAH]

2007-11-26 Thread Neil Jerram
[EMAIL PROTECTED] (Ludovic Courtès) writes: > Hi, > > Neil Jerram <[EMAIL PROTECTED]> writes: > >> Thanks, I was lucky there. Do you think it's worth adding something >> to CVS to try to make sure that we don't accidentally use func_data >> again in future? >> >> What I have in mind is a new test

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-16 Thread Ludovic Courtès
Hi, Neil Jerram <[EMAIL PROTECTED]> writes: > Thanks, I was lucky there. Do you think it's worth adding something > to CVS to try to make sure that we don't accidentally use func_data > again in future? > > What I have in mind is a new test in test-suite/standalone, which > would grep all Guile'

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-15 Thread Neil Jerram
[EMAIL PROTECTED] (Ludovic Courtès) writes: > Great, thank you Neil! (It'd have taken time before I could think of > such a thing...) Thanks, I was lucky there. Do you think it's worth adding something to CVS to try to make sure that we don't accidentally use func_data again in future? What I

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-15 Thread Kevin Brott
On Thu, 2007-11-15 at 10:10 -0800, Kevin Brott wrote: > On Thu, 2007-11-15 at 13:59 +0100, Ludovic Courtès wrote: > > > > `Complex' in `_Complex_I' can't possibly be macro-expanded. There must > > be something else. > > Could line 52 be expanded/dereferenced by cpp to make _Complex_I resolve >

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-15 Thread Kevin Brott
On Thu, 2007-11-15 at 13:59 +0100, Ludovic Courtès wrote: > Hi, > > Mike Gran <[EMAIL PROTECTED]> writes: > > > You are correct. There is a value in that macro called "_Complex_I" that > > is, for some reason, being processed down to "__I", losing the word > > "Complex". > > `Complex' in `_Co

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-15 Thread Ludovic Courtès
Hi, Mike Gran <[EMAIL PROTECTED]> writes: > You are correct. There is a value in that macro called "_Complex_I" that is, > for some reason, being processed down to "__I", losing the word "Complex". `Complex' in `_Complex_I' can't possibly be macro-expanded. There must be something else. Thank

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-14 Thread Kevin Brott
On Wed, 2007-11-14 at 11:17 -0800, Mike Gran wrote: > You are correct. There is a value in that macro called "_Complex_I" that is, > for some reason, being processed down to "__I", losing the word "Complex". > > What if you replace "_Complex_I" with "(0.0 + 1.0i)" ? > > Good Luck, > > Mike Gr

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-14 Thread Mike Gran
t is, for some reason, being processed down to "__I", losing the word "Complex". What if you replace "_Complex_I" with "(0.0 + 1.0i)" ? Good Luck, Mike Gran - Original Message > From: Kevin Brott <[EMAIL PROTECTED]> > To: Guile-User

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-14 Thread Kevin Brott
On Wed, 2007-11-14 at 09:59 -0800, Kevin Brott wrote: > No - it bombs out now, trying to compile numbers.c with this error: > > 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 report

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-14 Thread Kevin Brott
On Wed, 2007-11-14 at 14:35 +0100, Ludovic Courtès wrote: > Hi, > > Neil Jerram <[EMAIL PROTECTED]> writes: > > > 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

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-14 Thread Ludovic Courtès
Hi, Neil Jerram <[EMAIL PROTECTED]> writes: > 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

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-13 Thread Kevin Brott
On Tue, 2007-11-13 at 17:29 -0800, Kevin Brott wrote: > running a 'find' now to see if func_data is showing up somewhere else > being sneaky. Didn't find anything more in the guile source code - I did replace all instances of "func_data" with "xxx_func_data". The make gets a lot further now befor

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-13 Thread Kevin Brott
On Wed, 2007-11-14 at 00:39 +, Neil Jerram wrote: > "Kevin Brott" <[EMAIL PROTECTED]> writes: > > > Still baffled - but haven't given up yet. > > Going back to your original report... all of the compile errors were > triggered on lines containing "func_data". Is it possible that you're > so

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-13 Thread Mike Gran
> From: Neil Jerram <[EMAIL PROTECTED]> > > "Kevin Brott" writes: > > > Still baffled - but haven't given up yet. > > 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

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-13 Thread Neil Jerram
"Kevin Brott" <[EMAIL PROTECTED]> writes: > Still baffled - but haven't given up yet. 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 el

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-13 Thread Kevin Brott
On Tue, 2007-11-13 at 23:20 +0100, Ludovic Courtès wrote: > "Kevin Brott" <[EMAIL PROTECTED]> writes: > > > However, all of the code snippets listed above fail in exactly the same > > way on Ubuntu as they did on AIX. So I'm guessing that some config > > guessing is wrong on AIX, and either it's

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-13 Thread Ludovic Courtès
Hi, "Kevin Brott" <[EMAIL PROTECTED]> writes: > However, all of the code snippets listed above fail in exactly the same > way on Ubuntu as they did on AIX. So I'm guessing that some config > guessing is wrong on AIX, and either it's trying to compile code > segments that isn't being compiled on

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-13 Thread Kevin Brott
On Mon, 2007-11-12 at 16:08 -0800, Kevin Brott wrote: > > > > Then just "gcc -c the-file.c". > > > > Those two examples compile fine. I'll retest the original test files > the same way, and report back tomorrow, as I'm sodding off work for the > day. :) > Okay - so re-running everything via

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-12 Thread Kevin Brott
On Tue, 2007-11-13 at 00:51 +0100, Ludovic Courtès wrote: > It's better to put the declaration outside (to avoid cumulating > potential problems). You could try this: > > typedef void * (* foo_t) (void *, void *); > > foo_t > doit (foo_t x) > { > return x; > } > > Or this: > >

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-12 Thread Ludovic Courtès
Hi, "Kevin Brott" <[EMAIL PROTECTED]> writes: > I'd agree - except this is the only code it's broken on, and I went > through freshly compiled versions of gcc 3.3.6, 3.4.6, 4.0.4, 4.1.2, and > 4.2.2 - and all of them have the same basic problem. FWIW - I couldn't > get 1.6.8 to compile until I ha

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-12 Thread Kevin Brott
Ludovic Courtès wrote: > > > > Did you prepend "#define SCM_API extern"? It will fail without this. > > When I do that ... and this is the code: ---cut--- main () { #define SCM_API extern typedef void *(*scm_t_c_hook_function) (void *hook_data, vo

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-12 Thread Kevin Brott
Bollux, let's try that again... On Tue, 2007-11-13 at 00:14 +0100, Ludovic Courtès wrote: .. > This is the second line of the typedef for `scm_t_c_hook_function'. Can > you try compiling *only* that typedef? And then this: > > typedef void * (* foo_t) (void *, void *); > > Then: > > type

Re: Guile 1.8.2 Compile Error

2007-11-12 Thread Kevin Brott
On Tue, 2007-11-13 at 00:14 +0100, Ludovic Courtès wrote: .. > > 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 > > This is the second li

Re: Guile 1.8.2 Compile Error

2007-11-12 Thread Ludovic Courtès
Hi, "Kevin Brott" <[EMAIL PROTECTED]> writes: > 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 This is the second line of the typedef for `scm

Re: Guile 1.8.2 Compile Error

2007-11-12 Thread Kevin Brott
Ludovic, et al; On Mon, 2007-11-12 at 21:13 +0100, Ludovic Courtès wrote: > Hi, > > "Kevin Brott" <[EMAIL PROTECTED]> writes: > > > 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 ...

Re: Guile 1.8.2 Compile Error

2007-09-15 Thread Ludovic Courtès
Hi, [EMAIL PROTECTED] writes: > When compiling on AIX 5.3 using IBM's supplied GCC 4.0.0 I get > this error. > ---snip- > gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -D_THREAD_SAFE > -I/sys/usr/local/include -Wall -Wmissing-prototypes -Werror -MT > libguile_la-discouraged.lo -MD -M