Boost logo

Boost-Build :

From: Rene Rivera (grafik666_at_[hidden])
Date: 2003-07-07 13:03:21

[2003-07-07] Toon Knapen wrote:

>> >"Toon Knapen" <toon.knapen_at_[hidden]> writes:
>> >
>> >> I'm trying to build bjam on Solaris but I'm having some trouble.
>> >>
>> >> In 'struct frame' and in 'stuct _rule' there's a member
>> declared as
>> >> 'module * module ;'. This results in an error with sunpro saying :
>> >> "redefining module after use in <name of struct>". So I suggest to
>> >> rename the members to 'module_' instead of 'module' or better yet
>> >> rename the type 'module' to 'module_t'. If you agree I can
>> make all
>> >> necessary changes if you want.
>> >
>> >Fine with me, thanks!
>> Seems fine to me also.
>OK I'm in the process of trying to get it compiled on Sun.
>But when compiling fileunix.c CC can't find prototypes for read, close
>and lseek. In what header file are they supposed to be and in what
>standard are they defined ? Why not use fopen, fclose etc.

Those are sometimes in <unistd.h>. It's already included in that file (and
in other places), so you can try adding defined(OS_SUNOS) to the guard.
Don't know which standard, but most likely some version of the Unix
standard. As for why not f* stdc calls, because that's the way Perforce
wrote it ;-) Perhaps they did that because not all systems they support have
a well defined stdio library?

>> And/or is sunpro installed
>> in a specific place?
>Yes : /opt/SUNWspro/bin

That alone will do very well. I'll add it pronto :-)

...OK looked up some of the standards:

read: IEEE Std1003.1-1990 - aka POSIX
close, and lseek: IEEE Std1003.1-1988 - aka POSIX

-- grafik - Don't Assume Anything
-- rrivera (at) - grafik (at)
-- 102708583 (at) icq


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at