royneary / mod_push

Other
68 stars 19 forks source link

Re:Warning While Compiling #22

Open prem-narain opened 7 years ago

prem-narain commented 7 years ago

` erl +sbtu +A0 -noinput -mode minimal -boot start_clean -s erl_compile compile_cmdline -extra mod_push.erl

mod_push.erl:31: Warning: behaviour gen_mod undefined mod_push.erl:145: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. mod_push.erl:160: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. mod_push.erl:246: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. mod_push.erl:657: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. mod_push.erl:1221: Warning: variable 'PubsubHost' is unused ` Giving error while i am compiling mod_push.erl on Ubuntu 16.04

nirbhaykumar007 commented 7 years ago

Getting the same errror while running the command: ejabberdctl module_install mod_push

Error:

/root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push.erl:2384: syntax error before: '/' /root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push.erl:2394: syntax error before: '/' /root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push.erl:2414: syntax error before: '/' /root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push.erl:31: Warning: undefined callback function depends/2 (behaviour 'gen_mod') /root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push.erl:145: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. /root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push.erl:160: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. /root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push.erl:163: Warning: type auth_data() is unused /root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push.erl:171: Warning: type push_backend() is unused /root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push.erl:172: Warning: type push_registration() is unused /root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push.erl:246: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. /root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push.erl:657: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. /root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push.erl:811: Warning: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead /root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push.erl:1221: Warning: variable 'PubsubHost' is unused /root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push_apns.erl:251: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. /root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push_apns.erl:368: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. /root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push_mozilla.erl:74: Warning: variable 'DisableArgs' is unused /root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push_ubuntu.erl:74: Warning: variable 'DisableArgs' is unused /root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push_ubuntu.erl:139: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. /root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push_wns.erl:84: Warning: variable 'DisableArgs' is unused /root/.ejabberd-modules/sources/ejabberd-contrib/mod_push/src/mod_push_wns.erl:160: Warning: variable 'ReplyHead' is unused