I won't have time to work on it soon, but perhaps you can try to run R14 with an R13 copy of prim_file and see how for you get. Problem is that the interface to the efile driver changed AFAIK.
It may not be so difficult to do ... Anyone want to take a grab at it feel free; you should start by looking at a diff of prim_file from R13 to R14.
Kresten
Robert
https://github.com/trifork/erjang/issues/45
Especially notice @eriksoe's last comment.
<https://github.com/trifork/erjang/issues/45>Kresten
I tried some initial tests along these lines without luck so far using R14B03:
- Copied over the preloaded .beam and .erl files from R14B03 to
src/main/erl/preloaded/{ebin,src}. My hope being that using the new
preloaded files would help work out what is needed to be added to the
java files. There was no extra information which surprised me as there
is code Efile.java calling log.warning if no option matched. How do
you see the warnings?
- I tried adding code for FILE_DATASYNC in the same way and place as
for FILE_FSYNC, which is how the BEAM code does, but to no avail. I
still get the same error message from Erlang and nothing from erjang:
{"init terminating in do_boot",{'cannot get
bootfile','/usr/local/lib/erlang/bin/start.boot'}}
Jun 23, 2011 12:10:22 AM erjang.m.erlang.ErlProc halt
SEVERE: halting system: init terminating in do_boot ()
Now someone who knows what they are doing will have to take over, or
at least advise me.
Robert
> - Copied over the preloaded .beam and .erl files from R14B03 to
> src/main/erl/preloaded/{ebin,src}. My hope being that using the new
> preloaded files would help work out what is needed to be added to the
> java files.
I would try the other way around: copy R13 prim_efile to your R14 release, because that is what defines the API to the driver.
Kresten
Re issue #45, I might have been attacking the wrong functions in
trying to datasync to work, I will have a go later. I would still like
to get more info from java if there are things missing.
Robert
I got Erjang to work with R14B01. See pull request 56
(https://github.com/trifork/erjang/pull/56).
Regards,
Wolfgang
Am 23.06.11 11:48, schrieb Robert Virding: