Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error on dns_erlang 1.0.0 #94

Closed
Kleidukos opened this issue Oct 19, 2019 · 3 comments
Closed

Compilation error on dns_erlang 1.0.0 #94

Kleidukos opened this issue Oct 19, 2019 · 3 comments
Assignees
Labels

Comments

@Kleidukos
Copy link

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 aeden self-assigned this Oct 19, 2019
@aeden aeden added the bug label Oct 19, 2019
@aeden
Copy link
Member

aeden commented Oct 19, 2019

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

@Kleidukos
Copy link
Author

It worked wonderfully! Thanks!

@aeden
Copy link
Member

aeden commented Oct 22, 2019

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

@aeden aeden closed this as completed Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants