Ejabberd mod_archive_odbc编译错误

时间:2014-01-02 15:37:15

标签: compiler-errors erlang xmpp ejabberd mod-archive-odbc

我正在尝试为我的ejabberd服务器添加在服务器端保存聊天消息的支持。但我无法编译mod_archive_odbc模块,因此没有创建梁文件。 我从git下载了源文件,并尝试使用为编译提供的批处理文件来构建它。服务器在Windows上运行。在编译命令行输出之后:

***./mod_archive_odbc.erl:366: undefined macro 'ERROR_MSG/2'
./mod_archive_odbc.erl:489: undefined macro 'ERROR_MSG/2'
./mod_archive_odbc.erl:867: undefined macro 'ERROR_MSG/2'
./mod_archive_odbc.erl:2408: undefined macro 'ERROR_MSG/2'
./mod_archive_odbc.erl:2428: undefined macro 'ERROR_MSG/2'
./mod_archive_odbc.erl:73: function process_local_iq/3 undefined
./mod_archive_odbc.erl:249: function should_store_jid/2 undefined
./mod_archive_odbc.erl:255: function do_log/12 undefined
./mod_archive_odbc.erl:328: function process_local_iq/3 undefined
./mod_archive_odbc.erl:330: function process_local_iq/3 undefined
./mod_archive_odbc.erl:332: function process_local_iq/3 undefined
./mod_archive_odbc.erl:383: function run_sql_query/1 undefined
./mod_archive_odbc.erl:386: function run_sql_query/1 undefined
./mod_archive_odbc.erl:389: function run_sql_query/1 undefined
./mod_archive_odbc.erl:393: function run_sql_transaction/2 undefined
./mod_archive_odbc.erl:647: function run_sql_transaction/2 undefined
./mod_archive_odbc.erl:728: function run_sql_transaction/2 undefined
./mod_archive_odbc.erl:838: function run_sql_transaction/2 undefined
./mod_archive_odbc.erl:928: function run_sql_transaction/2 undefined
./mod_archive_odbc.erl:1018: function run_sql_transaction/2 undefined
./mod_archive_odbc.erl:1035: function run_sql_transaction/2 undefined
./mod_archive_odbc.erl:1122: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1129: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1138: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1154: function run_sql_transaction/2 undefined
./mod_archive_odbc.erl:1190: function run_sql_transaction/2 undefined
./mod_archive_odbc.erl:1238: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1248: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1314: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1332: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1341: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1371: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1378: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1413: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1416: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1420: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1460: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1466: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1473: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1571: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1573: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1575: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1699: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1705: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1713: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1750: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1763: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1810: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1877: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1883: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1957: function run_sql_query/1 undefined
./mod_archive_odbc.erl:1965: function run_sql_query/1 undefined
./mod_archive_odbc.erl:2035: function run_sql_query/1 undefined
./mod_archive_odbc.erl:2068: function run_sql_query/1 undefined
./mod_archive_odbc.erl:2079: function run_sql_query/1 undefined
./mod_archive_odbc.erl:2152: function run_sql_query/1 undefined
./mod_archive_odbc.erl:2178: function run_sql_query/1 undefined
./mod_archive_odbc.erl:2183: function run_sql_transaction/2 undefined

还有一些警告。 请帮忙

1 个答案:

答案 0 :(得分:3)

我遇到了同样的问题。似乎mod_archive_odbc依赖于一个名为ejabberd.hrl的文件。我用Google搜索并在线找到该文件。将此文件复制到src目录。

https://github.com/ajaxorg/mod_rdb/blob/master/ejabberd.hrl

尝试再次构建,这应该可行。