tuxofil / erlang-zloca

Zloca Library for Erlang
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

erlang:now/0 deprecated #1

Open fisher opened 8 years ago

fisher commented 8 years ago

on newer versions of erlang the function erlang:now/0 is considered as deprecated and this leads to the warning message about deprecation; however, in your Makefile you explicitly specified warnings_as_errors.

As a result, it is impossible to compile using provided Makefile:

@svartalfr:pts/6(0)prj/erl/erlang-zloca% gmake compile
gmake: dpkg-parsechangelog: Команда не знайдена
mkdir -p ebin
sed "s/{{VERSION}}//" src/zloca.app.in > ebin/zloca.app
echo '["src/*"].' > Emakefile
erl -noinput -eval "up_to_date=make:all([{outdir, ebin}, {i, \"include\"}, warn_unused_function, warn_bif_clash, warn_deprecated_function, warn_obsolete_guard, verbose, warn_shadow_vars, warn_export_vars, warn_unused_records, warn_unused_import, warn_export_all, warnings_as_errors]),halt()"
Recompile: src/zloca_updator
Recompile: src/zloca_srv
Recompile: src/zloca_lib
{compile: warnings being treated as errors
src/zloca_lib.erl:30: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
"init terminating in do_boot",{{badmatch,error},[{erl_eval,expr,3,[]}]}}

Crash dump is being written to: erl_crash.dump...done
init terminating in do_boot ()
Makefile:23: спроба виконання рецепта для мети «compile» зазнала невдачі
gmake: *** [compile] Помилка 1

version info:

Erlang/OTP 18 [erts-7.0] [source] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]
tuxofil commented 8 years ago

@fisher ничто так не выдавало бендеровца, как локализованные отчёты об ошибках :)

fisher commented 8 years ago

та лень было LC_ALL=C писать =)