httpotion (ibrowse) fail to compile

248 views
Skip to first unread message

Ronen Narkis

unread,
Jul 4, 2015, 5:24:05 PM7/4/15
to elixir-l...@googlegroups.com
I use erlang 18 and Elixir 1.0.5, compiling ibrowse I keep getting:

==> ibrowse (compile)
Compiling src/ibrowse_lib.erl failed:
src/ibrowse_lib.erl:371: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
ERROR: compile failed while processing /home/ronen/code/octo/deps/ibrowse: rebar_abort
** (Mix) Could not compile dependency ibrowse, /home/ronen/.mix/rebar command failed. If you want to recompile this dependency, please run: mix deps.compile ibrowse

Is the only solution is to downgrade to erlang 17?

Thanks

Ronen Narkis

unread,
Jul 4, 2015, 5:42:35 PM7/4/15
to elixir-l...@googlegroups.com
I did follow the user guide to http://erlang.org/doc/apps/erts/time_correction.html from httpotion travis file I probably should use 17.1

Dave Cottlehuber

unread,
Jul 5, 2015, 7:04:00 AM7/5/15
to elixir-l...@googlegroups.com
> On Sunday, July 5, 2015 at 12:24:05 AM UTC+3, Ronen Narkis wrote:
> >
> > I use erlang 18 and Elixir 1.0.5, compiling ibrowse I keep getting:
> >
> > ==> ibrowse (compile)
> > Compiling src/ibrowse_lib.erl failed:
> > src/ibrowse_lib.erl:371: erlang:now/0: Deprecated BIF. See the "Time and
> > Time Correction in Erlang" chapter of the ERTS User's Guide for more
> > information.
> > ERROR: compile failed while processing /home/ronen/code/octo/deps/ibrowse:
> > rebar_abort
> > ** (Mix) Could not compile dependency ibrowse, /home/ronen/.mix/rebar
> > command failed. If you want to recompile this dependency, please run: mix
> > deps.compile ibrowse
> >
> > Is the only solution is to downgrade to erlang 17?

ibrowse compiles fine under OTP 18.0.1 here, so long as you use master
which
includes https://github.com/cmullaparthi/ibrowse/issues/129 and not
v4.1.1
which does not. I've asked for a new tag[1].

Your mix.exs should include:

defp deps do
[{:ibrowse, github: "cmullaparthi/ibrowse", ref: "5ee4a80"}
]
end

wrt travis-ci, this should be unrelated; I don't think travis' lack of
OTP 18.0 support should matter here.

A+
Dave

[1]: https://github.com/cmullaparthi/ibrowse/issues/133

Ronen Narkis

unread,
Jul 5, 2015, 9:56:13 AM7/5/15
to elixir-l...@googlegroups.com
Using master does solve the issue https://github.com/myfreeweb/httpotion/issues/62

Thanks
Reply all
Reply to author
Forward
0 new messages