From owner-freebsd-ports-bugs@freebsd.org Wed Dec 13 09:57:22 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CB9F8E986E3 for ; Wed, 13 Dec 2017 09:57:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B85ED6A5BB for ; Wed, 13 Dec 2017 09:57:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vBD9vMWQ054376 for ; Wed, 13 Dec 2017 09:57:22 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 224320] net-im/ejabberd: Does not start when built against LibreSSL Date: Wed, 13 Dec 2017 09:57:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: romain@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ashish@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Dec 2017 09:57:22 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224320 Bug ID: 224320 Summary: net-im/ejabberd: Does not start when built against LibreSSL Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ashish@FreeBSD.org Reporter: romain@FreeBSD.org Assignee: ashish@FreeBSD.org Flags: maintainer-feedback?(ashish@FreeBSD.org) Hi I have a setup where ejabberd runs with TLS and authenticate users to LDAP = over TLS too. When switching from security/openssl to security/libressl, the se= rver build fine but does not start: --------------------------8<-------------------------- 2017-12-13 09:59:57.769 [info] <0.14018.0> Application ssl started on node ejabberd@localhost 2017-12-13 09:59:57.788 [info] <0.14018.0> Application p1_utils started on = node ejabberd@localhost 2017-12-13 09:59:57.820 [info] <0.14018.0> Application fast_yaml started on node ejabberd@localhost 2017-12-13 09:59:57.842 [error] <0.14129.0>@erl_ddll:format_error:239 CRASH REPORT Process <0.14129.0> with 0 neighbours exited with reason: bad argume= nt in call to erl_ddll:format_error_int({load_failed,"Failed to load NIF libra= ry: '/usr/local/lib/erlang/lib/ejabberd-17.09/lib/fast_tls..."}) in erl_ddll:format_error/1 line 239 2017-12-13 09:59:57.843 [error] <0.14128.0>@erl_ddll:format_error:239 Supervisor fast_tls_sup had child fast_tls started with fast_tls:start_link= () at undefined exit with reason bad argument in call to erl_ddll:format_error_int({load_failed,"Failed to load NIF library: '/usr/local/lib/erlang/lib/ejabberd-17.09/lib/fast_tls..."}) in erl_ddll:format_error/1 line 239 in context start_error 2017-12-13 09:59:57.843 [error] <0.14126.0> CRASH REPORT Process <0.14126.0> with 0 neighbours exited with reason: {{shutdown,{failed_to_start_child,fast_tls,{badarg,[{erl_ddll,format_error_= int,[{load_failed,"Failed to load NIF library: '/usr/local/lib/erlang/lib/ejabberd-17.09/lib/fast_tls-1.0.16/priv/lib/fast= _tls.so: Undefined symbol \"OPENSSL_cleanup\"'"}],[]},{erl_ddll,format_error,1,[{file,"erl_ddll.erl"}= ,{line,239}]},{fast_tls,load_nif,1,[{file,"src/fast_tls.erl"},{line,444}]},= {fast_tls,init,1,[{file,"src/fast_tls.erl"},{line,89}]},{gen_server,init_it= ,6,[{file,"gen_server.erl"},{line,328}]},{proc_lib,...}]}}},...} in application_master:init/4 line 134 2017-12-13 09:59:57.844 [critical] <0.14049.0>@ejabberd:exit_or_halt:131 fa= iled to start application 'fast_tls': {error, {{shutdown, {failed_to_start_child,fast_tls, {badarg, [{erl_ddll,format_error_int, [{load_failed, "Failed to load NIF librar= y: '/usr/local/lib/erlang/lib/ejabberd-17.09/lib/fast_tls-1.0.16/priv/lib/fast= _tls.so: Undefined symbol \"OPENSSL_cleanup\"'"}], []}, {erl_ddll,format_error,1, [{file,"erl_ddll.erl"}, {line,239}]}, {fast_tls,load_nif,1, [{file,"src/fast_tls.erl"}, {line,444}]}, {fast_tls,init,1, [{file,"src/fast_tls.erl"}, {line,89}]}, {gen_server,init_it,6, [{file,"gen_server.erl"}, {line,328}]}, {proc_lib,init_p_do_apply,3, [{file,"proc_lib.erl"}, {line,247}]}]}}}, {fast_tls_app,start,[normal,[]]}}} 2017-12-13 09:59:57.844 [info] <0.14018.0> Application fast_tls exited with reason: {{shutdown,{failed_to_start_child,fast_tls,{badarg,[{erl_ddll,format_error_= int,[{load_failed,"Failed to load NIF library: '/usr/local/lib/erlang/lib/ejabberd-17.09/lib/fast_tls-1.0.16/priv/lib/fast= _tls.so: Undefined symbol \"OPENSSL_cleanup\"'"}],[]},{erl_ddll,format_error,1,[{file,"erl_ddll.erl"}= ,{line,239}]},{fast_tls,load_nif,1,[{file,"src/fast_tls.erl"},{line,444}]},= {fast_tls,init,1,[{file,"src/fast_tls.erl"},{line,89}]},{gen_server,init_it= ,6,[{file,"gen_server.erl"},{line,328}]},{proc_lib,...}]}}},...} --------------------------8<-------------------------- I tried different versions of the fast_tls dependency and got the following results: 1.0.17 - Does not start (Undefined symbol "OPENSSL_cleanup") 1.0.16 - Does not start (Undefined symbol "OPENSSL_cleanup") (version curre= ntly packaged) 1.0.15 - Does not start (Undefined symbol "OPENSSL_cleanup") 1.0.14 - Does not start (Undefined symbol "OPENSSL_cleanup") 1.0.13 - Does not start (Undefined symbol "OPENSSL_cleanup") 1.0.12 - OK 1.0.11 - OK 1.0.10 - OK 1.0.9 - OK 1.0.8 - Not tested (Not supported according to CHANGELOG) Can you please consider repackaging ejabberd dependencies with an older ver= sion of fast_tls while a fix is being worked on? --=20 You are receiving this mail because: You are the assignee for the bug.=