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

OTP23 default Makefile template links erl_interface #2323

Closed
dominicletz opened this issue Aug 11, 2020 · 1 comment · Fixed by #2331
Closed

OTP23 default Makefile template links erl_interface #2323

dominicletz opened this issue Aug 11, 2020 · 1 comment · Fixed by #2331

Comments

@dominicletz
Copy link

dominicletz commented Aug 11, 2020

OTP23 has erl_interface deprecated and erl_interface.so is not part of the distribution anymore. Thus the default Makefile template fails linking

$ ./rebar3 -v
rebar 3.13.2 on Erlang/OTP 23 Erts 11.0.3
$ ./rebar3 new cmake
$ cd c_src/
c_src$ make
cc /home/dominicletz/projects/esqlite/c_src/sqlite3/sqlite3.o /home/dominicletz/projects/esqlite/c_src/queue.o /home/dominicletz/projects/esqlite/c_src/esqlite3_nif.o -shared -L /usr/lib/erlang/lib/erl_interface-4.0/lib -lerl_interface -lei -o /home/dominicletz/projects/esqlite/c_src/../priv/esqlite.so
/usr/bin/ld: cannot find -lerl_interface
collect2: error: ld returned 1 exit status
Makefile:58: recipe for target '/home/dominicletz/projects/esqlite/c_src/../priv/esqlite.so' failed
make: *** [/home/dominicletz/projects/esqlite/c_src/../priv/esqlite.so] Error 1

LDLIBS += -L $(ERL_INTERFACE_LIB_DIR) -lerl_interface -lei

@tsloughter
Copy link
Collaborator

Thanks, glad this was caught before we cut 3.14.0. We had updated the port_compiler plugin but not the builtin template! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants