Compilation error / mod_archive_odbc

First of all, I have a copy of ejabberd installed and running from the binary package, however, I'd like to get mod_archive_odbc running. Can anyone say whether or not this should work with the ejabberd 2.1.3?

I don't think the compilation error is related to mod_archive_odbc though what I did was:
* Copy mod_archive_odbc.erl from ejabberd-modules/mod_archive/trunk/src into ejabberd-2.1.3/src
* Run ./configure --enable-odbc and make

Then I get this error:

$ make
/usr/bin/erlc -bber_bin +der +compact_bit_string +optimize +noobj XmppAddr.asn1
Compiler function asn1ct:compile_asn1/3 failed:
{undef,[{asn1ct,compile_asn1,
["/usr/local/src/jabber/ejabberd-2.1.3/src/XmppAddr",
"/usr/local/src/jabber/ejabberd-2.1.3/src/XmppAddr",
{options,[],"/usr/local/src/jabber/ejabberd-2.1.3/src",
ber_bin,[],1,false,999,
[noobj,optimize,compact_bit_string,der],
[],"/usr/local/src/jabber/ejabberd-2.1.3/src"}]},
{erl_compile,compile_file,4},
{erl_compile,compile3,3},
{erl_compile,compiler_runner,1}]}
make: *** [XmppAddr.hrl] Error 1

Any ideas how I can fix this?

Thanks!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

That error message says that

That error message says that you need to install erlang asn1 library to compile the *.asn1 file.

But you really only want to compile mod_archive_odbc.erl, not all ejabberd source code, right?. Instead of running 'make', try simply running:

$ erlc mod_archive_odbc.erl
./mod_archive_odbc.erl:71: Warning: behaviour gen_mod undefined

Don't worry about this warning. Then copy the beam file with all your other ejabberd beam files.

Syndicate content