dnsimple / erldns

DNS server, in Erlang.
MIT License
402 stars 98 forks source link

Compilation error on dns_erlang 1.0.0 #94

Closed Kleidukos closed 5 years ago

Kleidukos commented 5 years ago

When adding dns_erlang to an Elixir project, I get the following error at compile-time:

❯ DEBUG=1 mix deps.compile dns_erlang
===> Expanded command sequence to be run: []
===> Provider: {default,do}
===> Expanded command sequence to be run: [{default,app_discovery},
                                           {bare,compile}]
===> Provider: {default,app_discovery}
===> Not adding provider asn compile from module provider_asn1_compile because it already exists from module provider_asn1_compile
===> Not adding provider asn clean from module provider_asn1_clean because it already exists from module provider_asn1_clean
===> Not adding provider asn compile from module provider_asn1_compile because it already exists from module provider_asn1_compile
===> Not adding provider asn clean from module provider_asn1_clean because it already exists from module provider_asn1_clean
===> Provider: {bare,compile}
===> Compiling dns_erlang
===> Provider: {asn,compile}
===> run_hooks("/home/hecate/dev/splash/deps/dns_erlang", pre_hooks, compile) -> no hooks defined

===> run_hooks("/home/hecate/dev/splash/deps/dns_erlang", pre_hooks, erlc_compile) -> no hooks defined

===> erlopts [debug_info,inline,inline_list_funcs,{d,namespaced_types}]
===> files to compile ["/home/hecate/dev/splash/deps/dns_erlang/src/DNS-ASN1.erl",
                       "/home/hecate/dev/splash/deps/dns_erlang/src/dnssec.erl",
                       "/home/hecate/dev/splash/deps/dns_erlang/src/dns_record_info.erl",
                       "/home/hecate/dev/splash/deps/dns_erlang/src/dns_record.erl",
                       "/home/hecate/dev/splash/deps/dns_erlang/src/dns.erl"]
===> Compiling src/DNS-ASN1.erl failed
src/DNS-ASN1.erl:44: illegal pattern
src/DNS-ASN1.erl:45: variable 'Exception' is unbound
src/DNS-ASN1.erl:47: variable 'Stk' is unbound
src/DNS-ASN1.erl:49: variable 'Stk' is unbound
src/DNS-ASN1.erl:58: illegal pattern
src/DNS-ASN1.erl:59: variable 'Exception' is unbound
src/DNS-ASN1.erl:61: variable 'Stk' is unbound
src/DNS-ASN1.erl:63: variable 'Stk' is unbound

===> Compilation failed: {error,[["src/DNS-ASN1.erl:44: illegal pattern\n",
                                  "src/DNS-ASN1.erl:45: variable 'Exception' is unbound\n",
                                  "src/DNS-ASN1.erl:47: variable 'Stk' is unbound\n",
                                  "src/DNS-ASN1.erl:49: variable 'Stk' is unbound\n",
                                  "src/DNS-ASN1.erl:58: illegal pattern\n",
                                  "src/DNS-ASN1.erl:59: variable 'Exception' is unbound\n",
                                  "src/DNS-ASN1.erl:61: variable 'Stk' is unbound\n",
                                  "src/DNS-ASN1.erl:63: variable 'Stk' is unbound\n"]],

Rebar3 Report ``` Rebar3 report version 3.6.1 generated at 2019-10-18T20:39:56+00:00 ================= Please submit this along with your issue at https://github.com/erlang/rebar3/issues (and feel free to edit out private information, if any) ----------------- Task: bare Entered as: bare ----------------- Operating System: x86_64-unknown-linux-gnu ERTS: Erlang/OTP 22 [erts-10.4.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] Root Directory: /nix/store/c7hpif120y23m2z9f3r3hg1ffccns4ng-erlang-22.0.4/lib/erlang Library directory: /nix/store/c7hpif120y23m2z9f3r3hg1ffccns4ng-erlang-22.0.4/lib/erlang/lib ----------------- Loaded Applications: bbmustache: 1.5.0 certifi: 2.0.0 cf: 0.2.2 common_test: 1.17.3 compiler: 7.4.2 crypto: 4.5.1 cth_readable: 1.4.2 dialyzer: 4.0.1 edoc: 0.11 erlware_commons: 1.2.0 eunit: 2.3.7 eunit_formatters: 0.5.0 getopt: 1.0.1 hipe: 3.19 inets: 7.0.8 kernel: 6.4.1 providers: 1.7.0 public_key: 1.6.7 relx: 3.26.0 sasl: 3.4 snmp: 5.3 ssl_verify_fun: 1.1.3 stdlib: 3.9.2 syntax_tools: 2.2 tools: 3.2 ----------------- Escript path: /home/hecate/.mix/rebar3 Providers: app_discovery as clean compile compile cover ct deps dialyzer do edoc escriptize eunit get-deps help install install_deps list lock new path pkgs release relup report shell state tar tree unlock update upgrade upgrade upgrade version xref ```
aeden commented 5 years ago

If you're building from source, please pull the latest master and see if that helps.

Kleidukos commented 5 years ago

It worked wonderfully! Thanks!

aeden commented 5 years ago

I'm going to close this now and deploy a 1.0.1 version of erldns for consistency sake at some point.