error building on Syllable

Denis Koroskin 2korden at gmail.com
Tue Apr 21 04:59:25 PDT 2009


On Tue, 21 Apr 2009 15:06:02 +0400, Frits van Bommel <fvbommel at remwovexcapss.nl> wrote:

> Rohan wrote:
>> Hi! I try to build DMD under Syllable, but I get next error. I tried  
>> 1&2 versions and BSD port, and it didn't help.
>>  http://img95.imageshack.us/img95/5505/capturey.png
>>  Could anybody help?
>
> Looks like simple missing #includes.
> Figure out which header should declare each of those symbols and  
> #include it at the top of any source file that can't find them.
>
> (The most likely cause is a header that on Linux and OS X is #included  
> by some other header, but not on Syllable...)
>
> After doing that, it'd be nice to put a patch in bugzilla:  
> http://d.puremagic.com/issues/

Indeed, it looks like errno.h is not included ('errno' was not declared) as well as unistd.h ('getcwd' was not declared).

It seems that the following block was ignored (top of dwarf.c):

#if linux || APPLE || FreeBSD
#include	<signal.h>
#include	<unistd.h>
#include	<errno.h>
#endif

I bet neither of the three are defined for some reason.



More information about the Digitalmars-d mailing list