[ejabberd] Installing from source issue.

Badlop badlop at gmail.com
Fri Aug 21 13:29:08 MSD 2009


2009/8/21 Tharindu Madushanka <tharindufit at gmail.com>:
> ./configure works fine.
> But then when I try to run make command, it fails in the process with
> following long error.
> /usr/bin/erlc -W -pa . ejabberd_logger_h.erl
> /usr/bin/erlc -W -pa . ejabberd_loglevel.erl
> /usr/bin/erlc -W -pa . ejabberd_node_groups.erl
> /usr/bin/erlc -W -pa . ejabberd_piefxis.erl
> ./ejabberd_piefxis.erl:50: syntax error before: '::'
> ./ejabberd_piefxis.erl:54: syntax error before: '::'
> ./ejabberd_piefxis.erl:56: syntax error before: '|'
> ./ejabberd_piefxis.erl:60: syntax error before: '::'
> ./ejabberd_piefxis.erl:62: syntax error before: '|'
> ./ejabberd_piefxis.erl:69: syntax error before: '|'
> ./ejabberd_piefxis.erl:79: syntax error before: '|'
> ./ejabberd_piefxis.erl:102: record xmlattr undefined
> ./ejabberd_piefxis.erl:156: record xmlel undefined
> .
> .
> .
> Could any one please suggest the reason for this. I use Fedora and erl
> command works.

Thaks for reporting, it was a problem in ejabberd:
ejabberd 2.1.0 is said to be compatible with Erlang/OTP R10B-9 and higher,
but the file ejabberd_piefxis.erl contained some lines that required
a more recent Erlang version.

I've modified those lines to work correctly with older Erlang versions,
so now you can compile it correctly with your ancient version.
You can get the updated file from SVN, or online at:
http://svn.process-one.net/ejabberd/trunk/src/ejabberd_piefxis.erl

This problem was not noticed before because most developers and testers
use Erlang/OTP R12B-5 or the recent R13B01.


---
Badlop
ProcessOne


More information about the ejabberd mailing list