Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 573394 - net-misc/rabbitmq-server-3.6.0 should depend on >=dev-lang/erlang-18.3 - src/rabbit_net.erl:27: can't find include lib "ssl/src/ssl_api.hrl"
Summary: net-misc/rabbitmq-server-3.6.0 should depend on >=dev-lang/erlang-18.3 - src/...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ultrabug
URL: https://github.com/rabbitmq/rabbitmq-...
Whiteboard:
Keywords:
: 589052 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-01-30 13:05 UTC by Thomas Capricelli
Modified: 2017-05-30 13:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,3.98 KB, text/plain)
2016-01-30 13:06 UTC, Thomas Capricelli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Capricelli 2016-01-30 13:05:59 UTC
Versions up until 3.5.3 emerged fine on this sytem.
See attachaged log, the interesting part seems to be :

src/rabbit_net.erl:27: can't find include lib "ssl/src/ssl_api.hrl"




Reproducible: Always
Comment 1 Thomas Capricelli 2016-01-30 13:06:26 UTC
Created attachment 424246 [details]
build.log
Comment 2 Thomas Capricelli 2016-04-10 00:31:48 UTC
still valid as of net-misc/rabbitmq-server-3.6.1
Comment 3 Ultrabug gentoo-dev 2016-08-19 07:28:08 UTC
Thomas, sorry for the delay here.

Is your erlang package compiled with the ssl USE flag ?

Please check by running :
$ equery u erlang

I think the ebuild may be missing this dependency
Comment 4 Ultrabug gentoo-dev 2016-08-19 07:29:39 UTC
*** Bug 589052 has been marked as a duplicate of this bug. ***
Comment 5 Ultrabug gentoo-dev 2016-08-19 07:37:43 UTC
FYI I've added the ssl dependency to erlang in 3.6.5 ebuild and dropped the other 3.6 ebuilds as some other bugs got reported about them too.
Comment 6 Thomas Capricelli 2016-08-19 10:57:36 UTC
Yes, it seems my erlang was built with ssl:

verdi ~ # equery u erlang
...
 + + ssl            : Add support for Secure Socket Layer connections


and also:
verdi ~ # genlop -i erlang
...
   USE="smp ssl -compat-ethread -doc -emacs -halfword -hipe -java -kpoll -odbc -sctp -tk -wxwidgets"
Comment 7 Thomas Capricelli 2016-08-19 11:07:25 UTC
I tried the last ebuild, it still fails:

>>>  '/usr/unsecure/tmp/portage/net-misc/rabbitmq-server-3.6.5/temp/build.log'


...

 GEN    src/rabbit_framing_amqp_0_9_1.erl
 DEPEND rabbit_common.d
 ERLC   app_utils.erl code_version.erl credit_flow.erl gen_server2.erl mirrored_supervisor.erl mochijson2.erl pmon.erl priority_queue.erl rabbit_amqqueue.erl rabbit_auth_backend_dummy.erl rabbit_auth_backend_internal.erl rabbit_auth_mechanism.erl rabbit_authn_backend.erl rabbit_authz_backend.erl rabbit_backing_queue.erl rabbit_basic.erl rabbit_binary_generator.erl rabbit_binary_parser.erl rabbit_channel.erl rabbit_channel_interceptor.erl rabbit_command_assembler.erl rabbit_control_misc.erl rabbit_ct_broker_helpers.erl rabbit_ct_helpers.erl rabbit_data_coercion.erl rabbit_error_logger_handler.erl rabbit_event.erl rabbit_exchange_decorator.erl rabbit_exchange_type.erl rabbit_framing_amqp_0_8.erl rabbit_framing_amqp_0_9_1.erl rabbit_health_check.erl rabbit_heartbeat.erl rabbit_misc.erl rabbit_msg_store_index.erl rabbit_net.erl rabbit_networking.erl rabbit_nodes.erl rabbit_password_hashing.erl rabbit_policy_validator.erl rabbit_queue_collector.erl rabbit_queue_decorator.erl rabbit_queue_master_locator.erl rabbit_reader.erl rabbit_runtime_parameter.erl rabbit_types.erl rabbit_writer.erl rand_compat.erl ssl_compat.erl supervisor2.erl time_compat.erl
src/rabbit_net.erl:27: can't find include lib "ssl/src/ssl_api.hrl"
src/rabbit_net.erl:94: record sslsocket undefined
src/rabbit_net.erl:104: record sslsocket undefined
src/rabbit_net.erl:109: record sslsocket undefined
src/rabbit_net.erl:114: record sslsocket undefined
Comment 8 Ultrabug gentoo-dev 2016-08-19 12:09:54 UTC
hmmm so I still can't reproduce this bug and I have still no clue what's wrong :(
Comment 9 Thomas Capricelli 2016-08-19 12:27:31 UTC
My erlang version was stuck at 15.2.3.1 because of another package (ejabberd). Upgrading to the last stable (18.3 as of today) brings the much needed file:

verdi portage # equery  files erlang |grep ssl_api
/usr/lib64/erlang/lib/ssl-7.3/src/ssl_api.hrl

So i guess the real problem is just that rabbitmq-server requires a recent enough version or erlang, and that this dependancy is not well set in the ebuild.

To be clear:
dev-lang/erlang-15.2.3.1 was not enough
dev-lang/erlang-18.3 is ok
Comment 10 Ultrabug gentoo-dev 2017-05-30 13:07:22 UTC
Thanks, since 18 is the minimal version in tree now, closing.