我正在尝试为我的 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
以及更多警告。请帮忙