You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On: Linux smartslot 5.4.66nmc4-dirty #10 SMP PREEMPT Tue Mar 23 05:06:09 PDT 2021 armv7l GNU/Linux:
iex(1)> :gen_icmp.ping('127.0.0.1', [])
[{:error, :timeout, '127.0.0.1', {127, 0, 0, 1}}]
Needless to mention that a standard command line ping works perfectly fine. I am getting timeout in 100% calls. I am not an Erlang expert but wrote few things. I would appreciate any help with debugging this as I do not even know at this stage what might have gone wrong. This is not the only module that involves cross-compilation but this is the only one that works-otherwise. First of all I checked the procket's cross-compile's CFLAGS and LDFLAGS and I haven't noticed anything apparent. Please see below excerpt.
Okidok...
A slight surprise with the cross-compiled environment:
:gen_icmp.ping('127.0.0.1', [])
14:53:36.655: [error] iex : Process #PID<0.8574.0> raised an exception
** (UndefinedFunctionError) function :pkt.icmp/1 is undefined (module :pkt is not available)
:pkt.icmp({:icmp, 8, 0, 0, 36084, 0, {127, 0, 0, 1}, <<0, 0, 0, 0>>, 0, 0, 0, 0, 0})
(gen_icmp 0.5.3) /mnt/src/agilis_fw/firmware.gvs/deps/lces2/gen_icmp/src/gen_icmp.erl:355: :gen_icmp.packet/2
(gen_icmp 0.5.3) /mnt/src/agilis_fw/firmware.gvs/deps/lces2/gen_icmp/src/gen_icmp.erl:195: anonymous fn/6 in :gen_icmp.ping/3
[{:error, :timeout, '127.0.0.1', {127, 0, 0, 1}}]
Mystery unraveled. Now I shall need to figure why that happenned. :pkg should be a strict dependency and it had been fetched but not included into the final app.
Hello,
Linux ubuntu 5.4.0-70-generic #78-Ubuntu SMP Fri Mar 19 13:29:52 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux:
On: Linux smartslot 5.4.66nmc4-dirty #10 SMP PREEMPT Tue Mar 23 05:06:09 PDT 2021 armv7l GNU/Linux:
iex(1)> :gen_icmp.ping('127.0.0.1', [])
[{:error, :timeout, '127.0.0.1', {127, 0, 0, 1}}]
Needless to mention that a standard command line ping works perfectly fine. I am getting timeout in 100% calls. I am not an Erlang expert but wrote few things. I would appreciate any help with debugging this as I do not even know at this stage what might have gone wrong. This is not the only module that involves cross-compilation but this is the only one that works-otherwise. First of all I checked the procket's cross-compile's CFLAGS and LDFLAGS and I haven't noticed anything apparent. Please see below excerpt.
This is probably something silly on my side and I hope to help improving the module's cross-compile build if this would appear to be the case.
Checked with the wireshark and no single ICMP packet is being spit out onto the wire.
With my best wishes
Tomasz Motyl
The text was updated successfully, but these errors were encountered: