embed_api2 build issue: stdin, stdout, stderr

James E Keenan jkeen at verizon.net
Tue Dec 7 00:10:14 UTC 2010


James E Keenan wrote:

>
> I was testing the embed_api2 branch on Darwin this weekend and came to
> the same conclusion. Last night I sent the attached file to whiteknight;
> I guess now it will be good for everyone to see it. It compares the
> content of /usr/include/stdin.h on my Linux (Debian) and Darwin (OS X
> 10.4) machines.
>

Some patches were applied today, but while they reduce the volume of 
warnings I'm getting, they don't eliminate the build errors on Darwin. 
Here's the tail of the build log.

/usr/bin/gcc -I./include -I./include/pmc -pipe ... [long list of 
switches] ... -Isrc/embed -o src/embed/api.o -c src/embed/api.c
In file included from src/embed/api.c:19:
./include/parrot/api.h:241: error: parse error before '&' token
./include/parrot/api.h:241: warning: function declaration isn't a prototype
./include/parrot/api.h:242: error: parse error before '&' token
./include/parrot/api.h:242: warning: function declaration isn't a prototype
./include/parrot/api.h:243: error: parse error before '&' token
./include/parrot/api.h:243: warning: function declaration isn't a prototype
src/embed/api.c:400: error: conflicting types for 
'Parrot_api_set_stdhandles'
./include/parrot/api.h:243: error: previous declaration of 
'Parrot_api_set_stdhandles' was here
src/embed/api.c: In function 'Parrot_api_load_language':
src/embed/api.c:481: warning: passing argument 2 of 'Parrot_str_new' 
from incompatible pointer type
src/embed/api.c: In function 'Parrot_api_get_compiler':
src/embed/api.c:503: warning: passing argument 1 of 'strlen' from 
incompatible pointer type
src/embed/api.c:503: warning: passing argument 2 of 'Parrot_str_new' 
from incompatible pointer type
src/embed/api.c: In function 'Parrot_api_set_compiler':
src/embed/api.c:525: warning: passing argument 2 of 'Parrot_str_new' 
from incompatible pointer type
make: *** [src/embed/api.o] Error 1



More information about the parrot-dev mailing list