Apparently we do do define _XOPEN_SOURCE to 600 in fsys.cpp (36), though
perhaps not soon enough since relevant headers may already be included
before that.

On 07/13/2011 04:04 AM, Jonas Smedegaard wrote:
> tags 632346 upstream
> thanks
> 
> @David: Could could I please ask you to have a look at the below?
> 
> On 11-07-01 at 12:08pm, Aaron M. Ucko wrote:
>> Source: ucommon
>> Version: 5.0.3-1
>> Severity: serious
>> Justification: fails to build from source
>>
>> Builds of ucommon on kFreeBSD are failing in the compilation stage:
>>
>>   fsys.cpp: In member function 'void ucommon::fsys::create(const char*, 
>> ucommon::fsys::access_t, unsigned int)':
>>   fsys.cpp:635:51: error: 'POSIX_FADV_RANDOM' was not declared in this scope
>>   fsys.cpp: In member function 'void ucommon::fsys::open(const char*, 
>> ucommon::fsys::access_t)':
>>   fsys.cpp:694:51: error: 'POSIX_FADV_SEQUENTIAL' was not declared in this 
>> scope
>>   fsys.cpp:696:51: error: 'POSIX_FADV_RANDOM' was not declared in this scope
>>   fsys.cpp: In member function 'int 
>> ucommon::fsys::drop(ucommon::fsys::offset_t)':
>>   fsys.cpp:802:42: error: 'POSIX_FADV_DONTNEED' was not declared in this 
>> scope
>>
>> Could you please take a look?  Per posix_fadvise(2), you may need to 
>> arrange to predefine _XOPEN_SOURCE to at least 600 or _POSIX_C_SOURCE 
>> to at least 200112.
> 
> 
> Regards,
> 
>  - Jonas
> 

<<attachment: dyfet.vcf>>

Reply via email to