On Mar 16, 2013, at 03:06 , Peter Karman <[email protected]> wrote:

> perl tests do not pass either:
> 
> cc -Isrc -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
> -I/opt/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAS_BOOL
> -I/home/karpet/src/lucy/perl  -c src/Charmonizer/Test/TestLargeFiles.c -o
> src/Charmonizer/Test/TestLargeFiles.o
> src/Charmonizer/Test/TestLargeFiles.c: In function ‘S_run_tests’:
> src/Charmonizer/Test/TestLargeFiles.c:73: error: ‘off64_t’ undeclared (first 
> use
> in this function)

Hmm, that's strange. It might be caused by the Charmonizer LargeFiles probe 
defining off64_t etc. when using CHAZ_USE_SHORT_NAMES. This looks extremely 
fragile to me.

Can you post the contents of your generated charmony.h?

Can you try to move the line

    #include "charmony.h"

after all other #includes in charmonizer/src/Charmonizer/Test/TestLargeFiles.c?

>> This one's strange. My only guess is that it might have to do with strict
>> aliasing which isn't yet disabled in the C bindings. Can you run the tests 
>> again
>> after configuring with:
>> 
>>    ./configure -- -fno-strict-aliasing
>> 
> 
> yes, that fixed that problem.

Great.

Nick

Reply via email to