[erlang-bugs] R16A : can't compile

PAILLEAU Eric eric.pailleau@REDACTED
Tue Feb 5 00:08:24 CET 2013


Hello,

looks like with some glibc version on a 32bits system, fallocate64()
function is not exported.
This a problem, since _FILE_OFFSET_BITS is set to 64 and fallocate() is
redirected to fallocate64().
 I suspect that AC_CHECK_FUNC() in configure doesn't catch such problem.

Do you see any workaround ? (except switch to a 64 bits system ;) )...
Regards


Le 31/01/2013 23:05, PAILLEAU Eric a écrit :
> 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'
> 
> gcc version 4.4.1 (GCC)
> 
> Linux Mandriva 2010 : 2.6.31.14-desktop-1mnb #1 SMP i686 Intel(R)
> Core(TM)2 Duo CPU T7250  @ 2.00GHz GNU/Linux
> 
> erts/autoconf/config.guess  returns i686-pc-linux-gnu
> 
> I tried to change/comment some values in erts/i686-pc-linux-gnu/config.h
> like :
> #define HAVE_FALLOCATE 0
> #define HAVE_POSIX_FALLOCATE
> 
> but without success.
> 
> Any tip ?
> 
> Regards
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://erlang.org/mailman/listinfo/erlang-bugs
> 




More information about the erlang-bugs mailing list