Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

error on installing #1

Open
betNull opened this issue Jan 19, 2019 · 1 comment
Open

error on installing #1

betNull opened this issue Jan 19, 2019 · 1 comment

Comments

@betNull
Copy link

betNull commented Jan 19, 2019

I'm running ejabberd 18.09. On install I get an error:

/opt/ejabberd-18.09/bin/ejabberdctl module_install mod_read_markers /opt/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_read_markers/src/hg_read_markers.erl:6: Warning: export_all flag enabled - all functions will be exported /opt/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_read_markers/src/mod_read_markers.erl:12: can't find include file "ejabberd.hrl" /opt/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_read_markers/src/mod_read_markers.erl:177: undefined macro 'TDICT' /opt/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_read_markers/src/mod_read_markers.erl:3: Warning: undefined callback function mod_options/1 (behaviour 'gen_mod') /opt/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_read_markers/src/mod_read_markers_sql.erl:8: can't find include file "ejabberd.hrl" /opt/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_read_markers/src/mod_read_markers_sql.erl:3: Warning: behaviour mod_read_markers undefined Error: {compilation_failed,"/opt/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_read_markers/src/mod_read_markers.erl"}

@gsohn
Copy link

gsohn commented Nov 15, 2019

Comment the include:

%%-include("ejabberd.hrl").

Change the TDICT to dict :

-spec affiliations_to_jid_list(dict) -> map().
affiliations_to_jid_list(dict) ->
  lists:foldl(fun({{User, Host, Resource}, _Aff}, Map) ->
                Jid = jid:make(User, Host, Resource),
                maps:put(bare_jid(Jid), Jid, Map)
              end, #{}, dict:to_list(dict)).

I hope this will help

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants