chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] srfi-27 - producing pseudo and truly random numbers


From: Terrence Brannon
Subject: Re: [Chicken-users] srfi-27 - producing pseudo and truly random numbers over a uniform distribution
Date: Mon, 29 Oct 2007 03:01:43 -0400

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>

So I commented out the typedefs in randmtzig.c but then I ran into
this compilation issue:

address@hidden /tmp : chicken-setup random-mtzig
  /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)
random-mtzig.c:1: warning: -fPIC ignored for target (all code is
position independent)
random-mtzig.c:21: error: conflicting types for 'int32_t'
/usr/include/stdint.h:20: error: previous declaration of 'int32_t' was here
random-mtzig.c:22: error: conflicting types for 'uint32_t'
/usr/include/stdint.h:28: error: previous declaration of 'uint32_t' was here




reply via email to

[Prev in Thread] Current Thread [Next in Thread]