Compile xmerl for ejabberd_xmlrpc won't compile

Trying to compile ejabberd_xmlrpc, but xmerl can't find "yecc:compile/3" during compile.

Cent OS 5.3, ejabberd-2.1.0

yonas@yonas-laptop [/usr/chroot-ejabberd/usr/local/ejabberd-modules/ejabberd_xmlrpc/trunk/xmerl/src]# make
/usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/bin/erlc -W  -I ../inc -I /usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/includes -o ../ebin xmerl_scan.erl
./xmerl_scan.erl:594: Warning: variable 'S' is unused
./xmerl_scan.erl:601: Warning: variable 'S' is unused
./xmerl_scan.erl:738: Warning: call to httpd_util:to_lower/1 will fail, since it was removed in R12B; use string:to_lower/1
./xmerl_scan.erl:816: Warning: call to httpd_util:to_lower/1 will fail, since it was removed in R12B; use string:to_lower/1
./xmerl_scan.erl:1462: Warning: variable 'S2' is unused
./xmerl_scan.erl:1462: Warning: variable 'T2' is unused
./xmerl_scan.erl:1466: Warning: variable 'S2' is unused
./xmerl_scan.erl:1466: Warning: variable 'T2' is unused
./xmerl_scan.erl:1507: Warning: variable 'S3' is unused
./xmerl_scan.erl:1507: Warning: variable 'T3' is unused
./xmerl_scan.erl:1513: Warning: variable 'S3' is unused
./xmerl_scan.erl:1513: Warning: variable 'T3' is unused
./xmerl_scan.erl:1540: Warning: variable 'S6' is unused
./xmerl_scan.erl:1540: Warning: variable 'T6' is unused
./xmerl_scan.erl:1582: Warning: variable 'S' is unused
./xmerl_scan.erl:1597: Warning: variable 'S' is unused
./xmerl_scan.erl:1665: Warning: variable 'S' is unused
/usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/bin/erlc -W  -I ../inc -I /usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/includes -o ../ebin xmerl.erl
/usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/bin/erlc -W  -I ../inc -I /usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/includes -o ../ebin xmerl_xs.erl
/usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/bin/erlc -W  -I ../inc -I /usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/includes -o ../ebin xmerl_eventp.erl
/usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/bin/erlc -W  -I ../inc -I /usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/includes -o ../ebin xmerl_xpath.erl
./xmerl_xpath.erl:104: Warning: record node is unused
./xmerl_xpath.erl:667: Warning: erlang:fault/1 is deprecated and will be removed in R13B; use erlang:error/1
/usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/bin/erlc -W  -I ../inc -I /usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/includes -o ../ebin xmerl_lib.erl
/usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/bin/erlc -W  -I ../inc -I /usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/includes -o ../ebin xmerl_xlate.erl
/usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/bin/erlc -W  -I ../inc -I /usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/includes -o ../ebin xmerl_xml.erl
/usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/bin/erlc -W  -I ../inc -I /usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/includes -o ../ebin xmerl_sgml.erl
/usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/bin/erlc -W  -I ../inc -I /usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/includes -o ../ebin xmerl_html.erl
/usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/bin/erlc -W  -I ../inc -I /usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/includes -o ../ebin xmerl_text.erl
/usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/bin/erlc -W  -I ../inc -I /usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/includes -o ../ebin xmerl_otpsgml.erl
/usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/bin/erlc -W  -I ../inc -I /usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/includes -o ../ebin xmerl_simple.erl
/usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/bin/erlc -W  -I ../inc -I /usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/includes -o ../ebin xmerl_validate.erl
/usr/chroot-ejabberd/usr/local/ejabberd-2.1.0/bin/erlc -W -o  ./ xmerl_xpath_parse.yrl
Compiler function yecc:compile/3 failed:
{undef,[{yecc,compile,
              ["/usr/chroot-ejabberd/usr/local/ejabberd-modules/ejabberd_xmlrpc/trunk/xmerl/src/xmerl_xpath_parse",
               "/usr/chroot-ejabberd/usr/local/ejabberd-modules/ejabberd_xmlrpc/trunk/xmerl/src/xmerl_xpath_parse",
               {options,[],
                        "/usr/chroot-ejabberd/usr/local/ejabberd-modules/ejabberd_xmlrpc/trunk/xmerl/src",
                        undefined,[],1,false,999,[],[],
                        "/usr/chroot-ejabberd/usr/local/ejabberd-modules/ejabberd_xmlrpc/trunk/xmerl/src"}]},
        {erl_compile,compile_file,4},
        {erl_compile,compile3,3},
        {erl_compile,compiler_runner,1}]}
make: *** [xmerl_xpath_parse.erl] Error 1

I think xmerl is included in

I think xmerl is included in Erlang/OTP, so you don't need to compile or install it.

The library that ejabberd_xmlrpc will need, and you surely have to compile and install is the Erlang xmlrpc library.

Syndicate content