[erlang-questions] R15B changes erl_driver API

Zabrane Mickael zabrane3@REDACTED
Thu Dec 15 19:32:31 CET 2011


Hi guys,

After installing R15B (OSX 10.6.8), this module no longer works for me:
https://github.com/alexeyr/erlang-sqlite3

I got the following error:
[...]
SUPERVISOR REPORT==== 15-Dec-2011::19:27:52 ===
     Supervisor: {local,reactiv_sup}
     Context:    start_error
     Reason:     {{badmatch,{error,"Error loading sqlite3_drv_darwin_64: Driver compiled with incorrect version of erl_driver.h"}},

The driver seems to include the MAJOR/MINOR markers:
https://github.com/alexeyr/erlang-sqlite3/blob/master/c_src/sqlite3_drv.c

Any Help?

Regards,
Zabrane

On Dec 15, 2011, at 6:38 PM, Kenneth Lundin wrote:

> 
> Den 15 dec 2011 16:45 skrev "Sergei Golovan" <sgolovan@REDACTED>:
> >
> > Hi!
> >
> > Appears that erl_driver API has been changed in R15B. The following
> > change in erts/emulator/beam/erl_bif_ddll.c (R15B with respect to
> > R14B04)
> >
> This should be no surprise since it is clearly mentioned in the release highlights and in the Readme file. It is also in the documentation, but as you point out there might be some remaining issues there, thanks for that.
> The change imicrotonal and will stay like this. We thought it was better to require the use of version number in drivers so that we can detect old drivers and refuse loading them, rather than just trying to run which might result in strange errors later during runtime.
> 
> > ----
> 
> ...
> /Kenneth, Erlang/OTP Ericsson
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20111215/5f0715ca/attachment.htm>


More information about the erlang-questions mailing list