What platform is this on? Instead of commenting out the typedefs,
could you please rename all the type definitions in randmtzig.c and
random-mtzig.scm as follows:

Original:

typedef signed char int8_t;
...

Modified:

typedef signed char randmtzig_int8_t;
...

This should avoid all collisions with definitions in stdint.h. Let me
know if this works for you.

     -Ivan



"Terrence Brannon" <[EMAIL PROTECTED]> writes:

> Ok, I'm getting build problems between data definitions in stdint.h
> and some of the source code in random-mtzig
>
> Here was the first error I got:
>
> downloading random-mtzig.egg from
> (www.call-with-current-continuation.org eggs 80) .
>   gunzip -c ../random-mtzig.egg | tar xf -
>   /usr/local/bin/csc -feature compiling-extension -O -d2 -X easyffi -s
> -o random-mtzig.so -check-imports -emit-exports random-mtzig.exports
> random-mtzig.scm randmtzig.c -lchicken -ldl -lm
> randmtzig.c:1: warning: -fPIC ignored for target (all code is position
> independent)
> randmtzig.c:144: error: conflicting types for 'int32_t'
> /usr/include/stdint.h:20: error: previous declaration of 'int32_t' was here
> randmtzig.c:145: error: conflicting types for 'uint32_t'
> /usr/include/stdint.h:28: error: previous declaration of 'uint32_t' was here
>
> <contents of stdint.h>
> <LINE 20>typedef long int32_t;</LINE>
> <LINE 28>typedef unsigned long uint32_t;</LINE>
> </contents>


_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to