<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[gelöst: Dash Adapter: wrong ELF class]]></title><description><![CDATA[<p dir="auto">Hi alle</p>
<p dir="auto">Ich habe IOBroker auf einen Rock64 portiert.</p>
<p dir="auto">Beim Dash Button Adapter (0.3.1) habe ich Probleme. Beim Starten  kommt immer "wrong ELF class: ELFCLASS32"</p>
<pre><code>host.ioBroker-Rock64	2019-05-02 22:45:00.078	info	instance system.adapter.tvspielfilm.0 started with pid 28856
host.ioBroker-Rock64	2019-05-02 22:41:58.123	info	Do not restart adapter system.adapter.amazon-dash.0 because disabled or deleted
host.ioBroker-Rock64	2019-05-02 22:41:58.123	error	instance system.adapter.amazon-dash.0 terminated with code 3 (Adapter disabled or invalid config)
Caught	2019-05-02 22:41:58.123	error	by controller[0]: at Module.load (module.js:566:32)
Caught	2019-05-02 22:41:58.122	error	by controller[0]: at Object.Module._extensions..js (module.js:664:10)
Caught	2019-05-02 22:41:58.122	error	by controller[0]: at Module._compile (module.js:653:30)
Caught	2019-05-02 22:41:58.122	error	by controller[0]: at Object.&lt;anonymous&gt; (/opt/iobroker/node_modules/pcap/pcap.js:3:21)
Caught	2019-05-02 22:41:58.122	error	by controller[0]: at require (internal/module.js:11:18)
Caught	2019-05-02 22:41:58.122	error	by controller[0]: at Module.require (module.js:597:17)
Caught	2019-05-02 22:41:58.122	error	by controller[0]: at Function.Module._load (module.js:498:3)
Caught	2019-05-02 22:41:58.122	error	by controller[0]: at tryModuleLoad (module.js:506:12)
Caught	2019-05-02 22:41:58.121	error	by controller[0]: at Module.load (module.js:566:32)
Caught	2019-05-02 22:41:58.121	error	by controller[0]: at Object.Module._extensions..node (module.js:682:18)
Caught	2019-05-02 22:41:58.120	error	by controller[0]: Error: /opt/iobroker/node_modules/pcap/build/Release/pcap_binding.node: wrong ELF class: ELFCLASS32
amazon-dash.0	2019-05-02 22:41:58.053	error	adapter disabled
amazon-dash.0	2019-05-02 22:41:57.888	info	States connected to redis: 127.0.0.1:6379
amazon-dash.0	2019-05-02 22:41:57.730	error	at Module.load (module.js:566:32)
amazon-dash.0	2019-05-02 22:41:57.730	error	at Object.Module._extensions..js (module.js:664:10)
amazon-dash.0	2019-05-02 22:41:57.730	error	at Module._compile (module.js:653:30)
amazon-dash.0	2019-05-02 22:41:57.730	error	at Object.&lt;anonymous&gt; (/opt/iobroker/node_modules/pcap/pcap.js:3:21)
amazon-dash.0	2019-05-02 22:41:57.730	error	at require (internal/module.js:11:18)
amazon-dash.0	2019-05-02 22:41:57.730	error	at Module.require (module.js:597:17)
amazon-dash.0	2019-05-02 22:41:57.730	error	at Function.Module._load (module.js:498:3)
amazon-dash.0	2019-05-02 22:41:57.730	error	at tryModuleLoad (module.js:506:12)
amazon-dash.0	2019-05-02 22:41:57.730	error	at Module.load (module.js:566:32)
amazon-dash.0	2019-05-02 22:41:57.730	error	at Object.Module._extensions..node (module.js:682:18)
amazon-dash.0	2019-05-02 22:41:57.730	error	Error: /opt/iobroker/node_modules/pcap/build/Release/pcap_binding.node: wrong ELF class: ELFCLASS32
amazon-dash.0	2019-05-02 22:41:57.718	error	uncaught exception: /opt/iobroker/node_modules/pcap/build/Release/pcap_binding.node: wrong ELF class: ELFCLASS3
</code></pre>
<p dir="auto">Node ist v8.15.0<br />
NPM ist 6.9.0.</p>
<p dir="auto">Gruss Ralf</p>
]]></description><link>https://forum.iobroker.net/topic/22178/gelöst-dash-adapter-wrong-elf-class</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 09:58:17 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/22178.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 02 May 2019 21:45:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to gelöst: Dash Adapter: wrong ELF class on Tue, 07 May 2019 22:12:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alcalzone" aria-label="Profile: AlCalzone">@<bdi>AlCalzone</bdi></a><br />
Ok. Hab ich mal gemacht:</p>
<pre><code>root@ioBroker-Rock64:~# cd /opt/iobroker
root@ioBroker-Rock64:/opt/iobroker# npm rebuild

&gt; iobroker.amazon-dash@0.3.1 preinstall /opt/iobroker/node_modules/iobroker.amazon-dash
&gt; apt install libpcap-dev -y || true

Reading package lists... Done
Building dependency tree
Reading state information... Done
libpcap-dev is already the newest version (1.8.1-3).
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.

&gt; pcap@2.1.0 install /opt/iobroker/node_modules/pcap
&gt; node-gyp rebuild

make: Entering directory '/opt/iobroker/node_modules/pcap/build'
  CXX(target) Release/obj.target/pcap_binding/pcap_binding.o
  CXX(target) Release/obj.target/pcap_binding/pcap_session.o
../pcap_session.cc: In static member function 'static void PcapSession::PacketReady(u_char*, const pcap_pkthdr*, const u_char*)':
../pcap_session.cc:85:102: warning: 'v8::Local&lt;v8::Value&gt; Nan::MakeCallback(v8::Local&lt;v8::Object&gt;, v8::Local&lt;v8::Function&gt;, int, v8::Local&lt;v8::Value&gt;*)' is deprecated [-Wdeprecated-declarations]
     Nan::MakeCallback(Nan::GetCurrentContext()-&gt;Global(), Nan::New(session-&gt;packet_ready_cb), 0, NULL);
                                                                                                      ^
In file included from ../pcap_session.h:4:0,
                 from ../pcap_session.cc:7:
../../nan/nan.h:929:46: note: declared here
   NAN_DEPRECATED inline v8::Local&lt;v8::Value&gt; MakeCallback(
                                              ^~~~~~~~~~~~
  SOLINK_MODULE(target) Release/obj.target/pcap_binding.node
  COPY Release/pcap_binding.node
make: Leaving directory '/opt/iobroker/node_modules/pcap/build'

&gt; socketwatcher@0.3.0 install /opt/iobroker/node_modules/socketwatcher
&gt; node-gyp rebuild

make: Entering directory '/opt/iobroker/node_modules/socketwatcher/build'
  CXX(target) Release/obj.target/socketwatcher/socket_watcher.o
../socket_watcher.cpp: In static member function 'static void SocketWatcher::Callback(uv_poll_t*, int, int)':
../socket_watcher.cpp:77:60: warning: 'v8::Local&lt;v8::Value&gt; Nan::MakeCallback(v8::Local&lt;v8::Object&gt;, v8::Local&lt;v8::Function&gt;, int, v8::Local&lt;v8::Value&gt;*)' is deprecated [-Wdeprecated-declarations]
   Nan::MakeCallback(watcher-&gt;handle(), callback, argc, argv);
                                                            ^
In file included from ../socket_watcher.hpp:8:0,
                 from ../socket_watcher.cpp:5:
../../nan/nan.h:929:46: note: declared here
   NAN_DEPRECATED inline v8::Local&lt;v8::Value&gt; MakeCallback(
                                              ^~~~~~~~~~~~
  SOLINK_MODULE(target) Release/obj.target/socketwatcher.node
  COPY Release/socketwatcher.node
make: Leaving directory '/opt/iobroker/node_modules/socketwatcher/build'

&gt; iobroker.javascript@4.1.12 postinstall /opt/iobroker/node_modules/iobroker.javascript
&gt; node ./install/installTypings.js

Installing NodeJS typings...
latest @types: 12, installed node: 8
npm ERR! path /opt/iobroker/node_modules/iobroker.javascript/node_modules/request/node_modules/http-signature/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/request/node_modules/http-signature/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-05-07T22_05_58_217Z-debug.log

</code></pre>
<p dir="auto">Sieht aber nicht so gesund aus oder?<br />
Die zweite genannte Möglichkeit:</p>
<pre><code>root@ioBroker-Rock64:/opt/iobroker# cd /opt/iobroker/node_modules/pcap/
root@ioBroker-Rock64:/opt/iobroker/node_modules/pcap# npm i --production
npm WARN deprecated istanbul@0.3.22: This module is no longer maintained, try this instead:
npm WARN deprecated   npm i nyc
npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives.
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated coffee-script@1.3.3: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated formatio@1.1.1: This package is unmaintained. Use @sinonjs/formatio instead
npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated samsam@1.1.2: This package has been deprecated in favour of @sinonjs/samsam
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated samsam@1.1.3: This package has been deprecated in favour of @sinonjs/samsam
npm WARN deprecated hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated boom@2.10.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated cryptiles@2.0.5: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated sntp@1.0.9: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.

&gt; socketwatcher@0.3.0 install /opt/iobroker/node_modules/pcap/node_modules/socketwatcher
&gt; node-gyp rebuild

make: Entering directory '/opt/iobroker/node_modules/pcap/node_modules/socketwatcher/build'
  CXX(target) Release/obj.target/socketwatcher/socket_watcher.o
../socket_watcher.cpp: In static member function 'static void SocketWatcher::Callback(uv_poll_t*, int, int)':
../socket_watcher.cpp:77:60: warning: 'v8::Local&lt;v8::Value&gt; Nan::MakeCallback(v8::Local&lt;v8::Object&gt;, v8::Local&lt;v8::Function&gt;, int, v8::Local&lt;v8::Value&gt;*)' is deprecated [-Wdeprecated-declarations]
   Nan::MakeCallback(watcher-&gt;handle(), callback, argc, argv);
                                                            ^
In file included from ../socket_watcher.hpp:8:0,
                 from ../socket_watcher.cpp:5:
../../nan/nan.h:959:46: note: declared here
   NAN_DEPRECATED inline v8::Local&lt;v8::Value&gt; MakeCallback(
                                              ^~~~~~~~~~~~
  SOLINK_MODULE(target) Release/obj.target/socketwatcher.node
  COPY Release/socketwatcher.node
make: Leaving directory '/opt/iobroker/node_modules/pcap/node_modules/socketwatcher/build'
npm WARN lifecycle pcap@2.1.0~install: cannot run in wd pcap@2.1.0 node-gyp rebuild (wd=/opt/iobroker/node_modules/pcap)
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN pcap@2.1.0 No license field.

added 2 packages from 10 contributors and audited 318 packages in 38.721s
found 40 vulnerabilities (9 low, 19 moderate, 11 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

</code></pre>
<p dir="auto">Immerhin: Man kann amazon.dash starten ohne Abstürze:</p>
<pre><code>amazon-dash.0	2019-05-08 00:09:39.194	info	starting pcap session on default interface
amazon-dash.0	2019-05-08 00:09:39.184	info	starting. Version 0.3.1 in /opt/iobroker/node_modules/iobroker.amazon-dash, node: v8.15.0
</code></pre>
<p dir="auto">Allerdings bleibt der Adapter rot...<br />
Nein! Stimmt nicht. Eben ist er grün geworden. Hat nur ne Weile gedauert<br />
Prima!<br />
Danke für die Hilfe!</p>
<p dir="auto">Gruss Ralf</p>
]]></description><link>https://forum.iobroker.net/post/259339</link><guid isPermaLink="true">https://forum.iobroker.net/post/259339</guid><dc:creator><![CDATA[derrapf]]></dc:creator><pubDate>Tue, 07 May 2019 22:12:50 GMT</pubDate></item><item><title><![CDATA[Reply to gelöst: Dash Adapter: wrong ELF class on Tue, 07 May 2019 22:02:47 GMT]]></title><description><![CDATA[<p dir="auto">@Yetiberg</p>
<p dir="auto">Ja.</p>
<pre><code>Reading package lists... Done
Building dependency tree
Reading state information... Done
libpcap-dev is already the newest version (1.8.1-3).
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.

</code></pre>
<p dir="auto">Gruss Ralf</p>
]]></description><link>https://forum.iobroker.net/post/259337</link><guid isPermaLink="true">https://forum.iobroker.net/post/259337</guid><dc:creator><![CDATA[derrapf]]></dc:creator><pubDate>Tue, 07 May 2019 22:02:47 GMT</pubDate></item><item><title><![CDATA[Reply to gelöst: Dash Adapter: wrong ELF class on Fri, 03 May 2019 06:30:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/derrapf" aria-label="Profile: derrapf">@<bdi>derrapf</bdi></a> sagte in <a href="/post/257701">Dash Adapter: wrong ELF class</a>:</p>
<blockquote>
<p dir="auto">Ich habe IOBroker auf einen Rock64 portiert.</p>
<p dir="auto">ELFCLASS32"</p>
</blockquote>
<p dir="auto">Du hast Binaries, die für ein 32-bit-System kompiliert waren auf ein 64-bit-System übertragen. Das läuft nicht, die musst du neu kompilieren.</p>
<p dir="auto">Im besten Fall sollte das mit einem <code>npm rebuild</code> im Ordner <code>/opt/iobroker</code> funktionieren. Andernfalls kannst du auch in <code>/opt/iobroker/node_modules/pcap/</code> ein <code>npm i --production</code> ausführen, um nur das <code>pcap</code>-Modul neu zu kompilieren.</p>
]]></description><link>https://forum.iobroker.net/post/257743</link><guid isPermaLink="true">https://forum.iobroker.net/post/257743</guid><dc:creator><![CDATA[AlCalzone]]></dc:creator><pubDate>Fri, 03 May 2019 06:30:24 GMT</pubDate></item><item><title><![CDATA[Reply to gelöst: Dash Adapter: wrong ELF class on Fri, 03 May 2019 05:56:31 GMT]]></title><description><![CDATA[<p dir="auto">pcap installiert?<br />
apt-get install libpcap-dev</p>
]]></description><link>https://forum.iobroker.net/post/257733</link><guid isPermaLink="true">https://forum.iobroker.net/post/257733</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Fri, 03 May 2019 05:56:31 GMT</pubDate></item></channel></rss>