make[1]: Entering directory '/home/olafura/dev/expostal'
cc -g -O3 -ansi -pedantic -Wall -Wextra -Wno-unused-parameter -I/usr/local/lib/erlang/erts-9.0/include -I/usr/local/include -I/usr/include -L/usr/local/lib -L/usr/lib -lpostal -std=gnu99 -Wno-unused-function -fPIC -shared -o priv/parser.so src/parser.c
src/parser.c: In function �parse_address�:
src/parser.c:30:13: warning: pointer targets in passing argument 1 of �strncpy� differ in signedness [-Wpointer-sign]
strncpy(component_term_bin, component, strlen(component));
^~~~~~~~~~~~~~~~~~
In file included from /usr/include/features.h:364:0,
from /usr/include/stdio.h:27,
from /usr/local/include/libpostal/libpostal.h:8,
from src/parser.c:1:
/usr/include/x86_64-linux-gnu/bits/string3.h:123:1: note: expected �char * restrict� but argument is of type �unsigned char *�
__NTH (strncpy (char *__restrict __dest, const char *__restrict __src,
^
src/parser.c: At top level:
src/parser.c:45:5: warning: missing initializer for field �flags� of �ErlNifFunc {aka struct enif_func_t}� [-Wmissing-field-initializers]
{"parse_address", 1, parse_address}};
^
In file included from src/parser.c:2:0:
/usr/local/lib/erlang/erts-9.0/include/erl_nif.h:104:14: note: �flags� declared here
unsigned flags;
^~~~~
In file included from src/parser.c:6:0:
src/helper.c:16:12: warning: �is_libpostal_language_classifier_setup� defined but not used [-Wunused-variable]
static int is_libpostal_language_classifier_setup = 0;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/home/olafura/dev/expostal'
make[1]: Entering directory '/home/olafura/dev/expostal'
cc -g -O3 -ansi -pedantic -Wall -Wextra -Wno-unused-parameter -I/usr/local/lib/erlang/erts-9.0/include -I/usr/local/include -I/usr/include -L/usr/local/lib -L/usr/lib -lpostal -std=gnu99 -Wno-unused-function -fPIC -shared -o priv/expand.so src/expand.c
src/expand.c: In function �expand_address�:
src/expand.c:23:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < num_expansions; i++)
^
src/expand.c:28:13: warning: pointer targets in passing argument 1 of �strncpy� differ in signedness [-Wpointer-sign]
strncpy(expansion_term_bin, expansion, strlen(expansion));
^~~~~~~~~~~~~~~~~~
In file included from /usr/include/features.h:364:0,
from /usr/include/stdio.h:27,
from /usr/local/include/libpostal/libpostal.h:8,
from src/expand.c:1:
/usr/include/x86_64-linux-gnu/bits/string3.h:123:1: note: expected �char * restrict� but argument is of type �unsigned char *�
__NTH (strncpy (char *__restrict __dest, const char *__restrict __src,
^
src/expand.c: At top level:
src/expand.c:40:3: warning: missing initializer for field �flags� of �ErlNifFunc {aka struct enif_func_t}� [-Wmissing-field-initializers]
{ "expand_address", 1, expand_address }
^
In file included from src/expand.c:2:0:
/usr/local/lib/erlang/erts-9.0/include/erl_nif.h:104:14: note: �flags� declared here
unsigned flags;
^~~~~
make[1]: Leaving directory '/home/olafura/dev/expostal'
Compiling 2 files (.ex)
Generated expostal app
17:30:05.198 [error] Process #PID<0.151.0> raised an exception
** (MatchError) no match of right hand side value: {:error, {:load_failed, 'Failed to load NIF library: \'/home/olafura/dev/expostal/_build/dev/lib/expostal/priv/parser.so: undefined symbol: libpostal_teardown_parser\''}}
lib/parser.ex:12: Expostal.Parser.init/0
(kernel) code_server.erl:1333: anonymous fn/1 in :code_server.handle_on_load/5
17:30:05.199 [error] Process #PID<0.152.0> raised an exception
** (MatchError) no match of right hand side value: {:error, {:load_failed, 'Failed to load NIF library: \'/home/olafura/dev/expostal/_build/dev/lib/expostal/priv/expand.so: undefined symbol: libpostal_expand_address\''}}
lib/expand.ex:12: Expostal.Expand.init/0
(kernel) code_server.erl:1333: anonymous fn/1 in :code_server.handle_on_load/5
17:30:05.200 [warn] The on_load function for module Elixir.Expostal.Parser returned:
{{:badmatch,
{:error,
{:load_failed,
'Failed to load NIF library: \'/home/olafura/dev/expostal/_build/dev/lib/expostal/priv/parser.so: undefined symbol: libpostal_teardown_parser\''}}},
[{Expostal.Parser, :init, 0, [file: 'lib/parser.ex', line: 12]},
{:code_server, :"-handle_on_load/5-fun-0-", 1,
[file: 'code_server.erl', line: 1333]}]}
17:30:05.201 [warn] The on_load function for module Elixir.Expostal.Expand returned:
{{:badmatch,
{:error,
{:load_failed,
'Failed to load NIF library: \'/home/olafura/dev/expostal/_build/dev/lib/expostal/priv/expand.so: undefined symbol: libpostal_expand_address\''}}},
[{Expostal.Expand, :init, 0, [file: 'lib/expand.ex', line: 12]},
{:code_server, :"-handle_on_load/5-fun-0-", 1,
[file: 'code_server.erl', line: 1333]}]}