[erlang-questions] EEP7 FFI patch for R11B-5

Zvi exta7@REDACTED
Sun Mar 29 16:29:32 CEST 2009


Hi,

I trying to build R11B-5 with EEP 7 ffi patch from
http://muvara.org/crs4/erlang/ffi/

I applied this patch to otp_src_R11B-5 and build erlang on coLinux (UBUNTU
7.x)  using these 

commands:
 
wget http://www.erlang.org/download/otp_src_R11B-5.tar.gz 
tar -xzf otp_src_R11B-5.tar.gz 
cd otp_src_R11B-5
wget http://muvara.org/crs4/erlang/ffi/ffi.diff
patch -p1 < ffi.diff
apt-get install autoconf libffi4-dev
./otp_build autoconf
./configure 
make 
sudo make install

When testing ffi from the BEAM shell:

1> ffi:sizeof(uint).
4
2> ffi:max(uint).
4294967295
3>erl_ddll:load_library("/usr/lib/libc.so", mylib, [{preload, [{malloc,
{void, pointer}},{free, 

{void, nonnull}}]}]).
{error,{open_error,-13}}
 
 
but ffi still doesn't work. Do you know if ffi supposed to work on coLinux ?
Any ideas?

Anybody was able to build and test this?

Thanks in Advance,
Zvi

-- 
View this message in context: http://www.nabble.com/EEP7-FFI-patch-for-R11B-5-tp22768184p22768184.html
Sent from the Erlang Questions mailing list archive at Nabble.com.




More information about the erlang-questions mailing list