Error in override_deps_versions2 while compile dependencies

  1. i tried to compile the deps in ejabberd 24.06 by this:

./rebar compile

==> cowlib (compile)
==> gun (compile)
==> jsx (compile)
==> p1_utils (compile)
==> cache_tab (compile)
==> eimp (compile)
==> ezlib (compile)
==> fast_tls (compile)
==> fast_xml (compile)
==> fast_yaml (compile)
WARN:  /home/ipple/ejabberd-src/deps/unicode_util_compat/src/unicode_util_compat.app.src has version "0.7.0"; requested regex was ~>0.7.0
Uncaught error in rebar_core: {'EXIT',
{function_clause,
[{override_deps_versions2,
'-update_deps/1-fun-0-',
[{unicode_util_compat,"~>0.7.0"}],
[{file,
"/home/ipple/ejabberd-src/plugins/override_deps_versions2.erl"},
{line,14}]},
{lists,map,2,
[{file,"lists.erl"},{line,1243}]},
{override_deps_versions2,update_deps,1,
[{file,
"/home/ipple/ejabberd-src/plugins/override_deps_versions2.erl"},
{line,14}]},
{rebar_core,acc_modules,5,
[{file,"src/rebar_core.erl"},{line,540}]},
{rebar_core,process_dir1,7,
[{file,"src/rebar_core.erl"},{line,247}]},
{rebar_core,process_each,5,
[{file,"src/rebar_core.erl"},{line,351}]},
{rebar_core,process_dir1,7,
[{file,"src/rebar_core.erl"},{line,253}]},
{rebar_core,process_commands,2,
[{file,"src/rebar_core.erl"},{line,93}]}]}}
  1. And another question why does make command does not output the compiled file name ?

make

/usr/bin/mix  compile  
Compiling 1 file (.erl)  
Compiling 17 files (.ex)

and ejabberd 21 i have this output when compile, after make some changes in ejabberd_c2s.erl

make

/usr/lib/erlang/bin/escript rebar skip_deps=true compile
==> rel (pre_compile)
==> rel (compile)
==> ejabberd-src (pre_compile)
==> ejabberd-src (compile)
Compiled src/ejabberd_c2s.erl

Please help!

I’m seeking for the answers from ejabberd forum.

  1. ./rebar compile

That means you are using rebar2, an obsolete program. Better user Rebar3, or Elixir’s Mix. When you run ./configure in ejabberd it will try to use mix, or rebar3 if possible; as both tools are far better than rebar.

It seems you added some additional dependencies to ejabberd, or maybe you have added ejabberd as a dependency to another application, right? And, as few people do this, maybe there’s some problem/bug in ejabberd that nobody else than you can investigate, because you didn’t explain what non-documented and non-standard things are you doing to compile ejabberd…

If you deviate from the documented method to compile ejabberd from source code you should mention what changes you made, right?

  1. And another question why does make command does not output the compiled file name ?

It seems you have Erlang/OTP and Elixir installed. Since ejabberd 24.02 configure will setup to compile ejabberd using mix, which is a tool more updated and powerful than the old rebar. And as you noticed, the mix tool does not show file per file, only the number of compiled files. That is normal, and expected:

$ ./configure
...
build tool to use (change using --with-rebar): /home/badlop/.asdf/shims/mix
...

$ make
/home/badlop/.asdf/shims/mix deps.get && :> _build/dev/lib/.got
Resolving Hex dependencies...
...
/home/badlop/.asdf/shims/mix compile && :> _build/dev/lib/.built
...
==> ejabberd
Compiling 287 files (.erl)
Compiling 17 files (.ex)
Generated ejabberd app

$ make relive
...
10:59:39.981 [info] ejabberd 24.7.2 is started in the node :ejabberd@localhost in 1.00s
iex(ejabberd@localhost)1>

0

@Badlop : Thanks for your answer.

  1. Yes i mixed my previous ejabberd source code with the new version 24.06, after i fresh clone from the repo. i can compiled ejabberd successfully.

  2. I wish there is an option for Rebar3 or Mix to output the compiled files, so that i know what have changed so i can copy the new compiled file to its destination without to make install every time i modified the code.

  3. Now i am facing another issue which i have never encountered in my previous compilation and it said :

    Invalid value of option modules->mod_http_upload->thumbnail: ejabberd is built without image converter support

Please help me on the issue No. 3
Thanks.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật