[ejabberd] mysql modules failed to load - 'badfile' error

Ricardo Otero dos Santos oterosantos at gmail.com
Fri Apr 23 19:07:26 MSD 2010


Hi!

I finally did it. Some more packages were needed to compile the modules.

Now I have some issues with passwords being saved on mysql as plain
text! Can I avoid this?

Thanks,

-Ricardo

On Fri, Apr 23, 2010 at 3:49 PM, Ricardo Otero dos Santos
<oterosantos at gmail.com> wrote:
> Hi and thanks for your reply.
>
> I didn't do anything more than apt-get for the first time, so I'm not
> experienced with compiling Erlang code.
>
> I've checked out the modules and INSTALL tells me to just type
> ./build.sh, but here's the result:
>
> rsantos at c3s:~/mysql_module$ ./build.sh
> {"init terminating in
> do_boot",{undef,[{make,all,[]},{init,start_it,1},{init,start_em,1}]}}
>
> Crash dump was written to: erl_crash.dump
> init terminating in do_boot ()
>
> I thought it might be the lack of erlang-dev package, but after
> instalation of erlang-dev I still have the same problem.
>
> On Fri, Apr 23, 2010 at 3:34 PM, Konstantin Khomoutov
> <flatworm at users.sourceforge.net> wrote:
>> On Fri, 23 Apr 2010 15:14:08 +0100
>> Ricardo Otero dos Santos <oterosantos at gmail.com> wrote:
>>
>>> For some reason all my mysql modules fail to load. Here's the error
>>> log:
>>>
>>> =ERROR REPORT==== 23-Apr-2010::15:00:26 ===
>>> beam/beam_load.c(1712): Error loading function mysql:asciz_binary/2:
>>> op bs_start_match f r:
>>>   please re-compile this module with an R13B01 compiler
>> [..]
>>> I'm new to Erlang, so I don't know what an R13B01 compiler is or how
>>> to do it. :S
>>
>> "Some reason" most probably was an upgrade of your Linux (or whatever)
>> distribution which upgraded Erlang and ejabberd (at the same time),
>> while your MySQL module was compiled by hand using an older Erlang
>> compiler; since compiled Erlang modules are not genreally upward- or
>> downward-compatible, you have to recompile them.
>>
>> To compile your modules just do what you did for the first time and
>> replace the old compiled modules with their new versions.
>> You seem to be after [1] and its INSTALL file in particular.
>>
>> 1. https://svn.process-one.net/ejabberd-modules/mysql/trunk/
>> _______________________________________________
>> ejabberd mailing list
>> ejabberd at jabber.ru
>> http://lists.jabber.ru/mailman/listinfo/ejabberd
>>
>


More information about the ejabberd mailing list