Comments (6)
On Fri, Jun 10, 2011 at 07:36:59AM -0700, si14 wrote:
rebar compile
==> procket (compile)
/usr/bin/ld: cannot find -lancillary
collect2: ld returned 1 exit status
ERROR: cc c_src/procket.o -Lc_src -lancillary -shared -L/usr/local/lib/erlang/lib/erl_interface-3.7.4/lib -lerl_interface -lei -o priv/procket.so failed with error: 1
Thanks for letting me know!
What OS are you building on? Your Erlang looks recent
(erl_interface-3.7.4) but what's the version release number?
After the failed build, do you see:
$ ls deps/procket/c_src/libancillary.a
deps/procket/c_src/libancillary.a
from gen_icmp.
I'm sorry for a late reply. I'm using Ubuntu 11.04 and
erl
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:0] [kernel-poll:false]
And I don't see libancellary.a in c_src, here is a listing of deps/procket/c_src:
ls
ancillary.h fd_recv.c fd_send.c Makefile.ancillary Makefile.cmd procket.c procket_cmd.c procket.h procket.o
from gen_icmp.
On Tue, Jun 14, 2011 at 01:37:00AM -0700, si14 wrote:
I'm sorry for a late reply. I'm using Ubuntu 11.04 and
erl
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:0] [kernel-poll:false]
And I don't see libancellary.a in c_src, here is a listing of deps/procket/c_src:
ls
ancillary.h fd_recv.c fd_send.c Makefile.ancillary Makefile.cmd procket.c procket_cmd.c procket.h procket.o
Thanks!
Could you do a clean build and send me the output? (Feel free to
send it to me directly, it will contain the env for your shell):
make clean
rebar -v compile
from gen_icmp.
Of course, I've sent you one.
from gen_icmp.
;tldr si14 builds rebar from git. If you're building your own rebar, use this rebar.config:
{so_name, "procket.so"}.
{port_sources, ["c_src/procket.c"]}.
{port_envs, [
{"LDFLAGS", "$LDFLAGS -Lc_src -lancillary"}
]}.
{pre_hooks, [
{compile, "make -C c_src -f Makefile.ancillary -f Makefile.cmd"}
]}.
{post_hooks, [
{clean, "rm c_src/.a c_src/.o priv/procket"}
]}.
from gen_icmp.
@msantos
Hello. I'm facing this issue. I don't know why, this issue is reproduced when there is -j
option of make
command, is not reproduced when there is no -j
it.
You can reproduce this issue, would you confirm the command docker build -t ancillary-not-found .
, using the below Dockerfile:
FROM arm64v8/erlang:24.0-alpine@sha256:8ba9ec67f5b54bf3a659238a77b9555b0ac8373dc855c008147b67690a69c8f2
RUN apk update && \
apk add alpine-sdk
WORKDIR /usr/src
# refer:https://erlang.mk/guide/getting_started.html
WORKDIR /usr/src/hello_joe
RUN wget https://erlang.mk/erlang.mk
RUN make -f erlang.mk bootstrap
# add your module as the dependency to Makefile
RUN sed -i '1s/^/DEPS = procket pkt\n/' Makefile
RUN make -j$((`nproc`+1))
- additional info:
Docker version 20.10.0, build 7287ab3
from gen_icmp.
Related Issues (16)
- how to get the same display as a ping command ? HOT 2
- ipv6 support HOT 2
- Build fails with current pkt master HOT 1
- Running gen_icmp in iex mix project HOT 3
- Deprecation of erlang:now() HOT 2
- Match error with [{:error, 'google.com', :nxdomain}] HOT 1
- Build on OS X HOT 3
- How to make use of Elapsed value in response HOT 1
- get timeout in tracert:host({8,8,8,8}). HOT 1
- Sending packets via specific network interfaces HOT 4
- :gen__icmp.ping crashes on CentOS 7 HOT 4
- Trouble running via elixir releases HOT 4
- Works on ubuntu v20 (x86_64); timeouts on custom ARM 32-bit Linux distro. HOT 2
- ipv6 works on linux, but not on mac HOT 2
- Compilation fails on macOS (arm64) HOT 4
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 gen_icmp.