[erlang-bugs] R16A : 2 issues in WX driver compilation

Patrik Nyblom <>
Fri Feb 22 16:48:43 CET 2013


I suppose you could try to just edit erts/<your platorm>/config.h after 
you've run configure and remove #define HAVE_FALLOCATE 1, or in some 
other way disable fallocate. Configure should detect that it does not 
work, but the configure test does not do its job in this case. The 
Erlang system does not depend on fallocate, it just tries to use it if 
it exists and works.

/Patrik
On 02/20/2013 09:06 PM, PAILLEAU Eric wrote:
> Le 20/02/2013 02:05, Jani Hakala a écrit :
>> PAILLEAU Eric <> writes:
>>
>>> #) Now R16A :
>>> WX is OK but compilation fails on :
>>> obj/i686-pc-linux-gnu/opt/smp/unix_efile.o: In function `efile_fallocate':
>>> /home/eric/otp_src_R16A/erts/emulator/drivers/unix/unix_efile.c:1013:
>>> undefined reference to `fallocate64'
>>>
>> This might be caused by an old version of libc.
>>
>>    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568924
>>
>>    "fallocate64() is missing in libc 2.10"
> hello,
>
> yes Jani, I know this.
>
> But for some reasons I need to keep this one.
>
> So I used gcc flag overriding
> export CPPFLAGS=-D_FILE_OFFSET_BITS=32
>
> I'm in a situation where I have to choose between R15B03 with WX
> or R16 without WX.
> But maybe a fix will be found soon ? :) .
> I suppose there is some needs on some system to limit
> the fallocate to a 32 bit offset ...
> regards
>
> _______________________________________________
> erlang-bugs mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-bugs



More information about the erlang-bugs mailing list