Comments (8)
@rwngallego should be fixed by #38 and #36
from erlang-syslog.
@rwngallego it's done https://hex.pm/packages/ex_syslogger/1.5.2
from erlang-syslog.
@slashmili any ideas regarding this? It's actually breaking ex_syslogger
.
from erlang-syslog.
Thank you very much! @slashmili are you planning to pin it in ex_syslogger
and probably release a new version? Currently it's pinned to ~> 1.0.5
so it won't pick the latest erlang-syslog
package (which now is 1.1.0
).
from erlang-syslog.
For some reason I still can't compile ex_syslogger 1.5.2 even with the latest version of syslog
from erlang-syslog.
Build log:
===> Compiling syslog
===> run_hooks("/home/pleroma/pleroma/deps/syslog", pre_hooks, compile) -> no hooks defined
===> run_hooks("/home/pleroma/pleroma/deps/syslog", pre_hooks, erlc_compile) -> no hooks defined
===> erlopts [debug_info,warn_untyped_record,{d,namespaced_types}]
===> files to compile ["/home/pleroma/pleroma/deps/syslog/src/syslog_app.erl",
"/home/pleroma/pleroma/deps/syslog/src/syslog_sup.erl",
"/home/pleroma/pleroma/deps/syslog/src/syslog.erl"]
===> run_hooks("/home/pleroma/pleroma/deps/syslog", post_hooks, erlc_compile) -> no hooks defined
===> run_hooks("/home/pleroma/pleroma/deps/syslog", pre_hooks, app_compile) -> no hooks defined
===> run_hooks("/home/pleroma/pleroma/deps/syslog", post_hooks, app_compile) -> no hooks defined
===> Provider: {pc,compile}
===> run_hooks("/home/pleroma/pleroma/deps/syslog", pre_hooks, {pc,compile}) -> no hooks defined
===> Linking priv/syslog_drv.so
===> sh info:
cwd: "/home/pleroma/pleroma/deps/syslog"
cmd: cc c_src/syslog_drv.o $LDFLAGS -shared -L"/usr/lib/erlang/lib/erl_interface-4.0/lib" -lerl_interface -lei -o priv/syslog_drv.so
===> opts: [{env,[{"AR","ar"},
{"AS","as"},
{"BINDIR","/usr/lib/erlang/erts-11.0.2/bin"},
{"CC","cc"},
{"CPP","cpp"},
{"CXX","c++"},
{"DEBUG","1"},
{"DRV_CC_TEMPLATE",
"cc -c $CFLAGS -g -Wall -fPIC -MMD -I\"/usr/lib/erlang/lib/erl_interface-4.0/include\" -I\"/usr/lib/erlang/erts-11.0.2/include\" $PORT_IN_FILES -o $PORT_OUT_FILE"},
{"DRV_CFLAGS",
"-g -Wall -fPIC -MMD -I\"/usr/lib/erlang/lib/erl_interface-4.0/include\" -I\"/usr/lib/erlang/erts-11.0.2/include\" "},
{"DRV_CXX_TEMPLATE",
"c++ -c $CXXFLAGS -g -Wall -fPIC -MMD -I\"/usr/lib/erlang/lib/erl_interface-4.0/include\" -I\"/usr/lib/erlang/erts-11.0.2/include\" $PORT_IN_FILES -o $PORT_OUT_FILE"},
{"DRV_LDFLAGS",
"-shared -L\"/usr/lib/erlang/lib/erl_interface-4.0/lib\" -lerl_interface -lei"},
{"DRV_LINK_CXX_TEMPLATE",
"c++ $PORT_IN_FILES $LDFLAGS -shared -L\"/usr/lib/erlang/lib/erl_interface-4.0/lib\" -lerl_interface -lei -o $PORT_OUT_FILE"},
{"DRV_LINK_TEMPLATE",
"cc $PORT_IN_FILES $LDFLAGS -shared -L\"/usr/lib/erlang/lib/erl_interface-4.0/lib\" -lerl_interface -lei -o $PORT_OUT_FILE"},
{"EMU","beam"},
{"ERLANG_ARCH","64"},
{"ERLANG_TARGET","23.0.2-x86_64-unknown-linux-gnu-64"},
{"ERL_CFLAGS",
" -I\"/usr/lib/erlang/lib/erl_interface-4.0/include\" -I\"/usr/lib/erlang/erts-11.0.2/include\" "},
{"ERL_EI_LIBDIR",
"\"/usr/lib/erlang/lib/erl_interface-4.0/lib\""},
{"ERL_LDFLAGS",
" -L\"/usr/lib/erlang/lib/erl_interface-4.0/lib\" -lerl_interface -lei"},
{"ESCRIPT_NAME","/home/pleroma/.mix/rebar3"},
{"EXE_CC_TEMPLATE",
"cc -c $CFLAGS -g -Wall -fPIC -MMD -I\"/usr/lib/erlang/lib/erl_interface-4.0/include\" -I\"/usr/lib/erlang/erts-11.0.2/include\" $PORT_IN_FILES -o $PORT_OUT_FILE"},
{"EXE_CFLAGS",
"-g -Wall -fPIC -MMD -I\"/usr/lib/erlang/lib/erl_interface-4.0/include\" -I\"/usr/lib/erlang/erts-11.0.2/include\" "},
{"EXE_CXX_TEMPLATE",
"c++ -c $CXXFLAGS -g -Wall -fPIC -MMD -I\"/usr/lib/erlang/lib/erl_interface-4.0/include\" -I\"/usr/lib/erlang/erts-11.0.2/include\" $PORT_IN_FILES -o $PORT_OUT_FILE"},
{"EXE_LDFLAGS",
" -L\"/usr/lib/erlang/lib/erl_interface-4.0/lib\" -lerl_interface -lei"},
{"EXE_LINK_CXX_TEMPLATE",
"c++ $PORT_IN_FILES $LDFLAGS -L\"/usr/lib/erlang/lib/erl_interface-4.0/lib\" -lerl_interface -lei -o $PORT_OUT_FILE"},
{"EXE_LINK_TEMPLATE",
"cc $PORT_IN_FILES $LDFLAGS -L\"/usr/lib/erlang/lib/erl_interface-4.0/lib\" -lerl_interface -lei -o $PORT_OUT_FILE"},
{"HOME","/home/pleroma"},
{"LANG","en_US.UTF-8"},
{"LD","ld"},
{"LOGNAME","pleroma"},
{"MAIL","/var/mail/pleroma"},
{"MIX_ENV","prod"},
{"NM","nm"},
{"OBJCOPY","objcopy"},
{"OBJDUMP","objdump"},
{"OLDPWD","/home/pleroma"},
{"PATH",
"/usr/lib/erlang/erts-11.0.2/bin:/usr/lib/erlang/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"},
{"PROGNAME","erl"},
{"PWD","/home/pleroma/pleroma/deps/syslog"},
{"RANLIB","ranlib"},
{"REBAR_CONFIG",
"/home/pleroma/pleroma/_build/prod/lib/syslog/mix.rebar.config"},
{"ROOTDIR","/usr/lib/erlang"},
{"SHELL","/bin/bash"},
{"SHLVL","1"},
{"SSH_CLIENT","45.48.112.82 35208 22"},
{"SSH_CONNECTION","45.48.112.82 35208 206.189.190.43 22"},
{"SSH_TTY","/dev/pts/0"},
{"STRIP","strip"},
{"TERM","dumb"},
{"USER","pleroma"},
{"XDG_RUNTIME_DIR","/run/user/1001"},
{"XDG_SESSION_ID","1"},
{"_","/usr/bin/mix"}]},
{cd,"/home/pleroma/pleroma/deps/syslog"}]
===> Port Cmd: cc c_src/syslog_drv.o $LDFLAGS -shared -L"/usr/lib/erlang/lib/erl_interface-4.0/lib" -lerl_interface -lei -o priv/syslog_drv.so
Port Opts: [{env,[{"AR","ar"},
{"AS","as"},
{"BINDIR","/usr/lib/erlang/erts-11.0.2/bin"},
{"CC","cc"},
{"CPP","cpp"},
{"CXX","c++"},
{"DEBUG","1"},
{"DRV_CC_TEMPLATE",
"cc -c $CFLAGS -g -Wall -fPIC -MMD -I\"/usr/lib/erlang/lib/erl_interface-4.0/include\" -I\"/usr/lib/erlang/erts-11.0.2/include\" $PORT_IN_FILES -o $PORT_OUT_FILE"},
{"DRV_CFLAGS",
"-g -Wall -fPIC -MMD -I\"/usr/lib/erlang/lib/erl_interface-4.0/include\" -I\"/usr/lib/erlang/erts-11.0.2/include\" "},
{"DRV_CXX_TEMPLATE",
"c++ -c $CXXFLAGS -g -Wall -fPIC -MMD -I\"/usr/lib/erlang/lib/erl_interface-4.0/include\" -I\"/usr/lib/erlang/erts-11.0.2/include\" $PORT_IN_FILES -o $PORT_OUT_FILE"},
{"DRV_LDFLAGS",
"-shared -L\"/usr/lib/erlang/lib/erl_interface-4.0/lib\" -lerl_interface -lei"},
{"DRV_LINK_CXX_TEMPLATE",
"c++ $PORT_IN_FILES $LDFLAGS -shared -L\"/usr/lib/erlang/lib/erl_interface-4.0/lib\" -lerl_interface -lei -o $PORT_OUT_FILE"},
{"DRV_LINK_TEMPLATE",
"cc $PORT_IN_FILES $LDFLAGS -shared -L\"/usr/lib/erlang/lib/erl_interface-4.0/lib\" -lerl_interface -lei -o $PORT_OUT_FILE"},
{"EMU","beam"},
{"ERLANG_ARCH","64"},
{"ERLANG_TARGET","23.0.2-x86_64-unknown-linux-gnu-64"},
{"ERL_CFLAGS",
" -I\"/usr/lib/erlang/lib/erl_interface-4.0/include\" -I\"/usr/lib/erlang/erts-11.0.2/include\" "},
{"ERL_EI_LIBDIR",
"\"/usr/lib/erlang/lib/erl_interface-4.0/lib\""},
{"ERL_LDFLAGS",
" -L\"/usr/lib/erlang/lib/erl_interface-4.0/lib\" -lerl_interface -lei"},
{"ESCRIPT_NAME","/home/pleroma/.mix/rebar3"},
{"EXE_CC_TEMPLATE",
"cc -c $CFLAGS -g -Wall -fPIC -MMD -I\"/usr/lib/erlang/lib/erl_interface-4.0/include\" -I\"/usr/lib/erlang/erts-11.0.2/include\" $PORT_IN_FILES -o $PORT_OUT_FILE"},
{"EXE_CFLAGS",
"-g -Wall -fPIC -MMD -I\"/usr/lib/erlang/lib/erl_interface-4.0/include\" -I\"/usr/lib/erlang/erts-11.0.2/include\" "},
{"EXE_CXX_TEMPLATE",
"c++ -c $CXXFLAGS -g -Wall -fPIC -MMD -I\"/usr/lib/erlang/lib/erl_interface-4.0/include\" -I\"/usr/lib/erlang/erts-11.0.2/include\" $PORT_IN_FILES -o $PORT_OUT_FILE"},
{"EXE_LDFLAGS",
" -L\"/usr/lib/erlang/lib/erl_interface-4.0/lib\" -lerl_interface -lei"},
{"EXE_LINK_CXX_TEMPLATE",
"c++ $PORT_IN_FILES $LDFLAGS -L\"/usr/lib/erlang/lib/erl_interface-4.0/lib\" -lerl_interface -lei -o $PORT_OUT_FILE"},
{"EXE_LINK_TEMPLATE",
"cc $PORT_IN_FILES $LDFLAGS -L\"/usr/lib/erlang/lib/erl_interface-4.0/lib\" -lerl_interface -lei -o $PORT_OUT_FILE"},
{"HOME","/home/pleroma"},
{"LANG","en_US.UTF-8"},
{"LD","ld"},
{"LOGNAME","pleroma"},
{"MAIL","/var/mail/pleroma"},
{"MIX_ENV","prod"},
{"NM","nm"},
{"OBJCOPY","objcopy"},
{"OBJDUMP","objdump"},
{"OLDPWD","/home/pleroma"},
{"PATH",
"/usr/lib/erlang/erts-11.0.2/bin:/usr/lib/erlang/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"},
{"PROGNAME","erl"},
{"PWD","/home/pleroma/pleroma/deps/syslog"},
{"RANLIB","ranlib"},
{"REBAR_CONFIG",
"/home/pleroma/pleroma/_build/prod/lib/syslog/mix.rebar.config"},
{"ROOTDIR","/usr/lib/erlang"},
{"SHELL","/bin/bash"},
{"SHLVL","1"},
{"SSH_CLIENT","45.48.112.82 35208 22"},
{"SSH_CONNECTION","45.48.112.82 35208 206.189.190.43 22"},
{"SSH_TTY","/dev/pts/0"},
{"STRIP","strip"},
{"TERM","dumb"},
{"USER","pleroma"},
{"XDG_RUNTIME_DIR","/run/user/1001"},
{"XDG_SESSION_ID","1"},
{"_","/usr/bin/mix"}]},
{cd,"/home/pleroma/pleroma/deps/syslog"},
exit_status,
{line,16384},
use_stdio,stderr_to_stdout,hide,eof]
===> sh(cc c_src/syslog_drv.o $LDFLAGS -shared -L"/usr/lib/erlang/lib/erl_interface-4.0/lib" -lerl_interface -lei -o priv/syslog_drv.so)
failed with return code 1 and the following output:
/usr/bin/ld: cannot find -lerl_interface
collect2: error: ld returned 1 exit status
Not sure why ld
isn't picking up -lerl_interface
from erlang-syslog.
You need to have erlang-dev package installed. Depends on your Linux flavour the name might be different.
BTW I just clone the project and compiled it without an issue. I should mention that I'm using asdf which installs the Erlang from source and compiles it.
from erlang-syslog.
I have the package installed.
from erlang-syslog.
Related Issues (15)
- #012 printed instead of endline with ~p formatted iolists HOT 1
- Improvement on build script HOT 5
- hex.pm package HOT 1
- specify destination server and port HOT 1
- copy files will "Segmentation fault (core dumped)" HOT 2
- syslog module doesn't recover after an error
- rebar2 get-deps fails HOT 6
- Add an explicit license HOT 1
- Can repeatably crash Erlang
- Publish latest release to Hex HOT 9
- Don't use git protocol to download pc plugin HOT 2
- Can't compile on OTP 24
- rebar install command does not exist anymore HOT 3
- wedges system HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from erlang-syslog.