Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [gelöst]Backup & Restore klappt nicht

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst]Backup & Restore klappt nicht

    This topic has been deleted. Only users with topic management privileges can see it.
    • Stabilostick
      Stabilostick last edited by

      In Deinem ersten Post den Titel bearbeiten.

      Freut mich für Dich. Prima. Viel Spaß noch mit ioBroker.

      1 Reply Last reply Reply Quote 0
      • A
        ahnungslos last edited by

        Prima, danke nochmals.

        1 Reply Last reply Reply Quote 0
        • B
          bjoernson last edited by

          Danke! Der Beitrag hat mir nach vielen Stunden erfolglosen probierens, auch endlich geholfen 🙂

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User last edited by

            Ich habe den selben Fehler, allerdings haben all die Tipps hier nichts gebracht 😞
            Hardware: Beelink BT3 Pro
            OS: Debian 9 ( aktuellste Version )

            Fehler:
            root@debianiobroker:/opt/iobroker# iobroker restore 0
            /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:568
            if (parseInt(name.trim(), 10).toString() === name.trim().toString()) {
            ^

            TypeError: name.trim is not a function
            at BackupRestore.restoreBackup (/opt/iobroker/node_modules/iobroker.js-contr oller/lib/setup/setupBackup.js:568:27)
            at dbConnect (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js :1474:28)
            at Object.connected (/opt/iobroker/node_modules/iobroker.js-controller/lib/s etup.js:3087:29)
            at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller /lib/states/statesInMemServer.js:184:26)
            at runCallback (timers.js:810:20)
            at tryOnImmediate (timers.js:768:5)
            at processImmediate [as _immediateCallback] (timers.js:745:5)

            Suche schon seit Stunden wie blöd, aber nichts funktioniert...

            js controller version iobroker.js-controller@1.5.11
            node und nodejs version v8.16.0
            npm v6.9.0

            D 1 Reply Last reply Reply Quote 0
            • T
              Tg-71 Forum Testing last edited by

              Die Fehlermeldung hatte ich auch gerade. Ich hab den Namen der Backupdatei mit angegeben. Dann hat es funktioniert.

              Cheesys 1 Reply Last reply Reply Quote 1
              • Cheesys
                Cheesys @Tg-71 last edited by

                @Tg-71 Dickes Dankeschön an dich
                danach musste nur noch redis installiert werden dann hat es ohne Probleme funktioniert

                1 Reply Last reply Reply Quote 0
                • D
                  DirtyAtze @Guest last edited by

                  @SayAndre
                  hast du inzwischein eine Lösung gefunden?
                  Ich versucher gerade, den ioBroker von einem RPi 3 auf einen Pi 4 umzuziehen.

                  Hab einen neues System aufgesetzt (Buster lite und ioBroker manuell installiert).
                  Soweit läuft alles, aber ich kann kein Backup einspielen. Bekomme auch immer den Fehler:
                  name.trim is not a function.

                  node:
                  10.16.0
                  nodejs
                  10.16.0
                  npm
                  6.9.0

                  pi@RaspIO4:/opt/iobroker $ sudo npm install iobroker.js-controller@stable --production --force --save
                  npm WARN using --force I sure hope you know what you are doing.
                  npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3
                  
                  > iobroker.js-controller@1.5.11 preinstall /opt/iobroker/node_modules/iobroker.js-controller
                  > node lib/preinstallCheck.js
                  
                  NPM version: 6.9.0
                  npm version >= 5: disabling package-lock
                  Could not check npm version: Error: EACCES: permission denied, open '/opt/iobroker/.npmrc'
                  Assuming that correct version is installed.
                  
                  > osx-temperature-sensor@1.0.3 install /opt/iobroker/node_modules/osx-temperature-sensor
                  > node-gyp rebuild
                  
                  gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.16.0"
                  gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp"
                  gyp ERR! configure error
                  gyp ERR! stack Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/osx-temperature-sensor/build'
                  gyp ERR! System Linux 4.19.50-v7l+
                  gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                  gyp ERR! cwd /opt/iobroker/node_modules/osx-temperature-sensor
                  gyp ERR! node -v v10.16.0
                  gyp ERR! node-gyp -v v3.8.0
                  gyp ERR! not ok
                  
                  > unix-dgram@0.2.3 install /opt/iobroker/node_modules/unix-dgram
                  > node-gyp rebuild
                  
                  gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.16.0"
                  gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp"
                  gyp ERR! configure error
                  gyp ERR! stack Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/unix-dgram/build'
                  gyp ERR! System Linux 4.19.50-v7l+
                  gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                  gyp ERR! cwd /opt/iobroker/node_modules/unix-dgram
                  gyp ERR! node -v v10.16.0
                  gyp ERR! node-gyp -v v3.8.0
                  gyp ERR! not ok
                  
                  > iobroker.js-controller@1.5.11 install /opt/iobroker/node_modules/iobroker.js-controller
                  > node iobroker.js setup first
                  
                  Cannot delete file. Not critical: Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../_service_iobroker.bat'
                  Cannot delete file. Not critical: Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../iobroker.bat'
                  fs.js:114
                      throw err;
                      ^
                  
                  Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../tmp'
                      at Object.mkdirSync (fs.js:757:3)
                      at Setup.setup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:157:58)
                      at /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:634:27
                      at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:664:15)
                      at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3166:5)
                      at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:38)
                      at Module._compile (internal/modules/cjs/loader.js:776:30)
                      at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
                      at Module.load (internal/modules/cjs/loader.js:653:32)
                      at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
                  + iobroker.js-controller@1.5.11
                  added 7 packages from 9 contributors, updated 3 packages and audited 2110 packages in 22.619s
                  found 39 vulnerabilities (28 low, 11 high)
                    run `npm audit fix` to fix them, or `npm audit` for details
                  
                  Röstkartoffel Homoran 2 Replies Last reply Reply Quote 0
                  • Röstkartoffel
                    Röstkartoffel @DirtyAtze last edited by

                    @DirtyAtze

                    Meine Suche im Forum führt mich dahin:
                    https://forum.iobroker.net/topic/23036/gelöst-iobroker-restore-typeerror-name-trim-is-not-a-function/1

                    Vielleicht hilft dir das auch bei deinem Problem

                    1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @DirtyAtze last edited by

                      @DirtyAtze sagte in [gelöst]Backup & Restore klappt nicht:

                      hast du inzwischein eine Lösung gefunden

                      Dort ging es um den "trim is not a function" Error, den hast du doch nicht, oder?

                      @DirtyAtze sagte in [gelöst]Backup & Restore klappt nicht:

                      Error: EACCES: permission denied

                      Bei dir dürfte der Fixer schon helfen

                      1 Reply Last reply Reply Quote 0
                      • D
                        DirtyAtze last edited by

                        Ich hab den trim Fehler vorher auch gehabt.

                        Das war der lösungsansatz von weiter oben. Hat aber auch nicht funktioniert.

                        Den fix hab ich auch schon durchlaufen lassen. Bringt keinen Fehler, hilft aber nicht.

                        Wenn ich die setupBackup.js ändere, wie im anderen thread beschrieben, bekomme ich den Fehler:

                        [ERROR] [minimal] host.ioBrokerPi4 Cannot find extracted file from file...

                        Homoran 1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @DirtyAtze last edited by

                          @DirtyAtze
                          Wo liegt dein Backup?

                          hast du darauf zugriff?

                          und wenn du den Fixer erfolgreich hast laufen lassen:
                          Hat der User iobroker darauf Zugriff?

                          1 Reply Last reply Reply Quote 0
                          • D
                            DirtyAtze last edited by

                            Das Backup liegt in "opt/iobroker/backups" also im standard ordner.

                            Zugriff miss ich später mal checken. Hab erstmal aufgegeben. Wenn ich heute Abend nochmal Zeit hab, fang ich nochmal mit einem frischen system bei null an und versuch das Backup aufzuspielen

                            Homoran 1 Reply Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @DirtyAtze last edited by Homoran

                              @DirtyAtze

                              und wieso wird immer der user Root angemeckert?
                              hast du als root installiert?

                              BTW: Wie genau hast du installiert?

                              1 Reply Last reply Reply Quote 0
                              • D
                                DirtyAtze last edited by

                                Ne, als "pi".

                                Hatte beim ersten versuch mal die ganze prozedur mit neuem Benutzer anlegen etc. durchgemacht. Hat aber auch nicht funktioniert. Darum hab ich mir das dieses mal gespart und den standard benutzer beibehalten.

                                1 Reply Last reply Reply Quote 0
                                • D
                                  DirtyAtze last edited by

                                  Wenn ich jetzt nochmal mit einem jungfräulichen system anfange, dann inslliere ich iobroker nach dieser Anleitung:
                                  https://www.iobroker.net/#de/documentation/install/linux.md

                                  einziger Unterschied:
                                  curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
                                  wird durch:
                                  curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

                                  ersetzt.

                                  ist das so weit richtig?

                                  Homoran 1 Reply Last reply Reply Quote 0
                                  • Homoran
                                    Homoran Global Moderator Administrators @DirtyAtze last edited by

                                    @DirtyAtze sagte in [gelöst]Backup & Restore klappt nicht:

                                    ist das so weit richtig?

                                    Ja!
                                    habe ich doch in der Anleitung bereits geändert 😱

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      DirtyAtze last edited by

                                      Installation node etc:

                                      pi@raspberrypi:~ $ node -v
                                      -bash: node: Kommando nicht gefunden.
                                      pi@raspberrypi:~ $ nodejs -v
                                      -bash: nodejs: Kommando nicht gefunden.
                                      pi@raspberrypi:~ $ npm -v
                                      -bash: npm: Kommando nicht gefunden.
                                      pi@raspberrypi:~ $ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
                                      
                                      ## Installing the NodeSource Node.js 10.x repo...
                                      
                                      
                                      ## Populating apt-get cache...
                                      
                                      + apt-get update
                                      OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                                      OK:2 http://archive.raspberrypi.org/debian buster InRelease
                                      Paketlisten werden gelesen... Fertig
                                      
                                      ## Confirming "buster" is supported...
                                      
                                      + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_10.x/dists/buster/Release'
                                      
                                      ## Adding the NodeSource signing key to your keyring...
                                      
                                      + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
                                      OK
                                      
                                      ## Creating apt sources list file for the NodeSource Node.js 10.x repo...
                                      
                                      + echo 'deb https://deb.nodesource.com/node_10.x buster main' > /etc/apt/sources.list.d/nodesource.list
                                      + echo 'deb-src https://deb.nodesource.com/node_10.x buster main' >> /etc/apt/sources.list.d/nodesource.list
                                      Holen:4 https://deb.nodesource.com/node_10.x buster/main armhf Packages [765 B]
                                      Es wurden 5.349 B in 1 s geholt (3.688 B/s).
                                      Paketlisten werden gelesen... Fertig
                                      
                                      ## Run `sudo apt-get install -y nodejs` to install Node.js 10.x and npm
                                      ## You may also need development tools to build native addons:
                                           sudo apt-get install gcc g++ make
                                      ## To install the Yarn package manager, run:
                                           curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
                                           echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
                                           sudo apt-get update && sudo apt-get install yarn
                                      
                                      
                                      pi@raspberrypi:~ $ sudo apt install -y nodejs
                                      Paketlisten werden gelesen... Fertig
                                      Abhängigkeitsbaum wird aufgebaut.
                                      Statusinformationen werden eingelesen.... Fertig
                                      Die folgenden NEUEN Pakete werden installiert:
                                        nodejs
                                      0 aktualisiert, 1 neu installiert, 0 zu entfernen und 27 nicht aktualisiert.
                                      Es müssen 14,2 MB an Archiven heruntergeladen werden.
                                      Nach dieser Operation werden 72,7 MB Plattenplatz zusätzlich benutzt.
                                      Holen:1 https://deb.nodesource.com/node_10.x buster/main armhf nodejs armhf 10.16.0-1nodesource1 [14,2 MB]
                                      Es wurden 14,2 MB in 1 s geholt (9.603 kB/s).
                                      Vormals nicht ausgewähltes Paket nodejs wird gewählt.
                                      (Lese Datenbank ... 37607 Dateien und Verzeichnisse sind derzeit installiert.)
                                      Vorbereitung zum Entpacken von .../nodejs_10.16.0-1nodesource1_armhf.deb ...
                                      Entpacken von nodejs (10.16.0-1nodesource1) ...
                                      nodejs (10.16.0-1nodesource1) wird eingerichtet ...
                                      Trigger für man-db (2.8.5-2) werden verarbeitet ...
                                      pi@raspberrypi:~ $ node -v
                                      v10.16.0
                                      pi@raspberrypi:~ $ nodejs -v
                                      v10.16.0
                                      pi@raspberrypi:~ $ npm -v
                                      6.9.0
                                      pi@raspberrypi:~ $
                                      
                                      Homoran 1 Reply Last reply Reply Quote 0
                                      • Homoran
                                        Homoran Global Moderator Administrators @DirtyAtze last edited by

                                        @DirtyAtze
                                        👍

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          DirtyAtze last edited by

                                          installation ioBroker:

                                          pi@raspberrypi:~ $ curl -sL https://iobroker.net/install.sh | bash -
                                          
                                          ==========================================================================
                                          
                                              Welcome to the ioBroker installer!
                                              Installer version: 2019-07-03
                                          
                                              You might need to enter your password a couple of times.
                                          
                                          ==========================================================================
                                          
                                          
                                          ==========================================================================
                                              Installing prerequisites (1/4)
                                          ==========================================================================
                                          
                                          Installed acl
                                          Installed libavahi-compat-libdnssd-dev
                                          Installed libudev-dev
                                          Installed libpam0g-dev
                                          Installed git
                                          
                                          ==========================================================================
                                              Creating ioBroker user and directory (2/4)
                                          ==========================================================================
                                          
                                          User iobroker created
                                          Created /etc/sudoers.d/iobroker
                                          Directory /opt/iobroker created
                                          
                                          ==========================================================================
                                              Installing ioBroker (3/4)
                                          ==========================================================================
                                          
                                          In file included from ../src/main.cpp:3:
                                          ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
                                          ../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                               , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                                                                        ^
                                          ../src/main.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetDiskUsage(Nan::NAN_METHOD_ARGS_TYPE)’:
                                          ../src/main.cpp:26:71: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
                                                   DiskUsage result = GetDiskUsage(*v8::String::Utf8Value(info[0]));
                                                                                                                 ^
                                          In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26,
                                                           from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                           from ../../nan/nan.h:54,
                                                           from ../src/main.cpp:3:
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:2892:28: note: declared here
                                                             explicit Utf8Value(Local<v8::Value> obj));
                                                                      ^~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          In file included from ../../nan/nan.h:54,
                                                           from ../src/main.cpp:3:
                                          ../src/main.cpp: At global scope:
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(v8::Handle<v8::Object>)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                                                 (node::addon_register_func) (regfunc),                          \
                                                                                     ^
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
                                             NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                                             ^~~~~~~~~~~~~
                                          ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
                                           NODE_MODULE(diskusage, Init)
                                           ^~~~~~~~~~~
                                          In file included from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                           from ../../nan/nan.h:54,
                                                           from ../src/main.cpp:3:
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
                                          /home/pi/.node-gyp/10.16.0/include/node/node_object_wrap.h:84:78:   required from here
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                                          reinterpret_cast<Callback>(callback), type);
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
                                          ../../nan/nan_object_wrap.h:65:61:   required from here
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                          In file included from ../node_modules/nan/nan.h:190,
                                                           from ../src/unix_dgram.cc:5:
                                          ../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’:
                                          ../node_modules/nan/nan_maybe_43_inl.h:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
                                             return obj->ForceSet(GetCurrentContext(), key, value, attribs);
                                                         ^~~~~~~~
                                          In file included from ../src/unix_dgram.cc:5:
                                          ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
                                          ../node_modules/nan/nan.h:817:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
                                                   v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                                                                      ^
                                          In file included from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:177:50: note: declared here
                                                           NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                                                            ^~~~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
                                               __attribute__((deprecated(message))) declarator
                                                                                    ^~~~~~~~~~
                                          In file included from ../src/unix_dgram.cc:5:
                                          ../node_modules/nan/nan.h:817:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
                                                   v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                                                                      ^
                                          In file included from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:177:50: note: declared here
                                                           NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                                                            ^~~~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
                                               __attribute__((deprecated(message))) declarator
                                                                                    ^~~~~~~~~~
                                          In file included from ../src/unix_dgram.cc:5:
                                          ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
                                          ../node_modules/nan/nan.h:831:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
                                                   v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                                                                        ^
                                          In file included from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:170:50: note: declared here
                                                           NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                                                            ^~~~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
                                               __attribute__((deprecated(message))) declarator
                                                                                    ^~~~~~~~~~
                                          In file included from ../src/unix_dgram.cc:5:
                                          ../node_modules/nan/nan.h:831:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
                                                   v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                                                                        ^
                                          In file included from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:170:50: note: declared here
                                                           NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                                                            ^~~~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
                                               __attribute__((deprecated(message))) declarator
                                                                                    ^~~~~~~~~~
                                          In file included from ../src/unix_dgram.cc:5:
                                          ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
                                          ../node_modules/nan/nan.h:845:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
                                                   v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                                                                        ^
                                          In file included from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:163:50: note: declared here
                                                           NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                                                            ^~~~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
                                               __attribute__((deprecated(message))) declarator
                                                                                    ^~~~~~~~~~
                                          In file included from ../src/unix_dgram.cc:5:
                                          ../node_modules/nan/nan.h:845:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
                                                   v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                                                                        ^
                                          In file included from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:163:50: note: declared here
                                                           NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                                                            ^~~~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
                                               __attribute__((deprecated(message))) declarator
                                                                                    ^~~~~~~~~~
                                          In file included from ../src/unix_dgram.cc:5:
                                          ../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
                                          ../node_modules/nan/nan.h:1463:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
                                               ));
                                               ^
                                          In file included from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:177:50: note: declared here
                                                           NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                                                            ^~~~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
                                               __attribute__((deprecated(message))) declarator
                                                                                    ^~~~~~~~~~
                                          In file included from ../src/unix_dgram.cc:5:
                                          ../node_modules/nan/nan.h:1463:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
                                               ));
                                               ^
                                          In file included from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:177:50: note: declared here
                                                           NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                                                            ^~~~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
                                               __attribute__((deprecated(message))) declarator
                                                                                    ^~~~~~~~~~
                                          In file included from ../src/unix_dgram.cc:5:
                                          ../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
                                          ../node_modules/nan/nan.h:1706:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                               , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                                                                        ^
                                          ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Socket(Nan::NAN_METHOD_ARGS_TYPE)’:
                                          ../src/unix_dgram.cc:189:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             domain      = info[0]->Int32Value();
                                                                               ^
                                          In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26,
                                                           from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                           from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
                                             V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                                        ^~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          ../src/unix_dgram.cc:190:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             type        = info[1]->Int32Value();
                                                                               ^
                                          In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26,
                                                           from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                           from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
                                             V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                                        ^~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          ../src/unix_dgram.cc:191:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             protocol    = info[2]->Int32Value();
                                                                               ^
                                          In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26,
                                                           from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                           from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
                                             V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                                        ^~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Bind(Nan::NAN_METHOD_ARGS_TYPE)’:
                                          ../src/unix_dgram.cc:230:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             fd = info[0]->Int32Value();
                                                                      ^
                                          In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26,
                                                           from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                           from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
                                             V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                                        ^~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          ../src/unix_dgram.cc:231:33: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
                                             String::Utf8Value path(info[1]);
                                                                           ^
                                          In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26,
                                                           from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                           from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:2892:28: note: declared here
                                                             explicit Utf8Value(Local<v8::Value> obj));
                                                                      ^~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::SendTo(Nan::NAN_METHOD_ARGS_TYPE)’:
                                          ../src/unix_dgram.cc:258:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             fd = info[0]->Int32Value();
                                                                      ^
                                          In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26,
                                                           from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                           from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
                                             V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                                        ^~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          ../src/unix_dgram.cc:259:27: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             buf = info[1]->ToObject();
                                                                     ^
                                          In file included from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                           from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:10046:15: note: declared here
                                           Local<Object> Value::ToObject() const {
                                                         ^~~~~
                                          ../src/unix_dgram.cc:260:33: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             offset = info[2]->Uint32Value();
                                                                           ^
                                          In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26,
                                                           from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                           from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:2477:47: note: declared here
                                             V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
                                                                                         ^~~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          ../src/unix_dgram.cc:261:33: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             length = info[3]->Uint32Value();
                                                                           ^
                                          In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26,
                                                           from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                           from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:2477:47: note: declared here
                                             V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
                                                                                         ^~~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          ../src/unix_dgram.cc:262:33: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
                                             String::Utf8Value path(info[4]);
                                                                           ^
                                          In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26,
                                                           from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                           from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:2892:28: note: declared here
                                                             explicit Utf8Value(Local<v8::Value> obj));
                                                                      ^~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Send(Nan::NAN_METHOD_ARGS_TYPE)’:
                                          ../src/unix_dgram.cc:302:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             fd = info[0]->Int32Value();
                                                                      ^
                                          In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26,
                                                           from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                           from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
                                             V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                                        ^~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          ../src/unix_dgram.cc:303:27: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             buf = info[1]->ToObject();
                                                                     ^
                                          In file included from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                           from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:10046:15: note: declared here
                                           Local<Object> Value::ToObject() const {
                                                         ^~~~~
                                          ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Connect(Nan::NAN_METHOD_ARGS_TYPE)’:
                                          ../src/unix_dgram.cc:340:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             fd = info[0]->Int32Value();
                                                                      ^
                                          In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26,
                                                           from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                           from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
                                             V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                                        ^~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          ../src/unix_dgram.cc:341:33: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
                                             String::Utf8Value path(info[1]);
                                                                           ^
                                          In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26,
                                                           from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                           from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:2892:28: note: declared here
                                                             explicit Utf8Value(Local<v8::Value> obj));
                                                                      ^~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Close(Nan::NAN_METHOD_ARGS_TYPE)’:
                                          ../src/unix_dgram.cc:361:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             fd = info[0]->Int32Value();
                                                                      ^
                                          In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26,
                                                           from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                           from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
                                             V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                                        ^~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          In file included from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          ../src/unix_dgram.cc: At global scope:
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                                                 (node::addon_register_func) (regfunc),                          \
                                                                                     ^
                                          /home/pi/.node-gyp/10.16.0/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
                                             NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                                             ^~~~~~~~~~~~~
                                          ../src/unix_dgram.cc:420:1: note: in expansion of macro ‘NODE_MODULE’
                                           NODE_MODULE(unix_dgram, Initialize)
                                           ^~~~~~~~~~~
                                          In file included from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                           from ../node_modules/nan/nan.h:47,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
                                          /home/pi/.node-gyp/10.16.0/include/node/node_object_wrap.h:84:78:   required from here
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                                          reinterpret_cast<Callback>(callback), type);
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
                                          ../node_modules/nan/nan_object_wrap.h:66:61:   required from here
                                          /home/pi/.node-gyp/10.16.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                          make: *** [unix_dgram.target.mk:99: Release/obj.target/unix_dgram/src/unix_dgram.o] Fehler 1
                                          gyp ERR! build error
                                          gyp ERR! stack Error: `make` failed with exit code: 2
                                          gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
                                          gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
                                          gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
                                          gyp ERR! System Linux 4.19.50-v7l+
                                          gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                                          gyp ERR! cwd /opt/iobroker/node_modules/unix-dgram
                                          gyp ERR! node -v v10.16.0
                                          gyp ERR! node-gyp -v v3.8.0
                                          gyp ERR! not ok
                                          In file included from ../src/./serialport.h:6,
                                                           from ../src/serialport.cpp:1:
                                          ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
                                          ../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                               , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                          
                                          
                                           fortsetzung folgt...
                                          1 Reply Last reply Reply Quote 0
                                          • D
                                            DirtyAtze last edited by DirtyAtze

                                                                                                          ^
                                            ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
                                            ../src/serialport.cpp:41:49: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
                                               v8::String::Utf8Value path(info[0]->ToString());
                                                                                             ^
                                            In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26,
                                                             from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                             from ../../nan/nan.h:54,
                                                             from ../src/./serialport.h:6,
                                                             from ../src/serialport.cpp:1:
                                            /home/pi/.node-gyp/10.16.0/include/node/v8.h:2892:28: note: declared here
                                                               explicit Utf8Value(Local<v8::Value> obj));
                                                                        ^~~~~~~~~
                                            /home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                               declarator __attribute__((deprecated(message)))
                                               ^~~~~~~~~~
                                            ../src/serialport.cpp:48:53: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                               v8::Local<v8::Object> options = info[1]->ToObject();
                                                                                                 ^
                                            In file included from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                             from ../../nan/nan.h:54,
                                                             from ../src/./serialport.h:6,
                                                             from ../src/serialport.cpp:1:
                                            /home/pi/.node-gyp/10.16.0/include/node/v8.h:10046:15: note: declared here
                                             Local<Object> Value::ToObject() const {
                                                           ^~~~~
                                            ../src/serialport.cpp:78:69: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                               uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen);
                                                                                                                 ^~~~~~~~~~~~~
                                            ../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’:
                                            ../src/serialport.cpp:95:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
                                               data->callback.Call(2, argv);
                                                                          ^
                                            In file included from ../src/./serialport.h:6,
                                                             from ../src/serialport.cpp:1:
                                            ../../nan/nan.h:1740:3: note: declared here
                                               Call(int argc, v8::Local<v8::Value> argv[]) const {
                                               ^~~~
                                            ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
                                            ../src/serialport.cpp:113:53: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                               v8::Local<v8::Object> options = info[1]->ToObject();
                                                                                                 ^
                                            In file included from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                             from ../../nan/nan.h:54,
                                                             from ../src/./serialport.h:6,
                                                             from ../src/serialport.cpp:1:
                                            /home/pi/.node-gyp/10.16.0/include/node/v8.h:10046:15: note: declared here
                                             Local<Object> Value::ToObject() const {
                                                           ^~~~~
                                            ../src/serialport.cpp:135:71: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                               uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate);
                                                                                                                   ^~~~~~~~~~~~~~~
                                            ../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’:
                                            ../src/serialport.cpp:150:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
                                               data->callback.Call(1, argv);
                                                                          ^
                                            In file included from ../src/./serialport.h:6,
                                                             from ../src/serialport.cpp:1:
                                            ../../nan/nan.h:1740:3: note: declared here
                                               Call(int argc, v8::Local<v8::Value> argv[]) const {
                                               ^~~~
                                            ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
                                            ../src/serialport.cpp:175:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                               uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose);
                                                                                                                  ^~~~~~~~~~~~~~
                                            ../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t*)’:
                                            ../src/serialport.cpp:188:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
                                               data->callback.Call(1, argv);
                                                                          ^
                                            In file included from ../src/./serialport.h:6,
                                                             from ../src/serialport.cpp:1:
                                            ../../nan/nan.h:1740:3: note: declared here
                                               Call(int argc, v8::Local<v8::Value> argv[]) const {
                                               ^~~~
                                            ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
                                            ../src/serialport.cpp:215:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                               uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush);
                                                                                                                  ^~~~~~~~~~~~~~
                                            ../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t*)’:
                                            ../src/serialport.cpp:231:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
                                               data->callback.Call(1, argv);
                                                                          ^
                                            In file included from ../src/./serialport.h:6,
                                                             from ../src/serialport.cpp:1:
                                            ../../nan/nan.h:1740:3: note: declared here
                                               Call(int argc, v8::Local<v8::Value> argv[]) const {
                                               ^~~~
                                            ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
                                            ../src/serialport.cpp:250:53: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                               v8::Local<v8::Object> options = info[1]->ToObject();
                                                                                                 ^
                                            In file included from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                             from ../../nan/nan.h:54,
                                                             from ../src/./serialport.h:6,
                                                             from ../src/serialport.cpp:1:
                                            /home/pi/.node-gyp/10.16.0/include/node/v8.h:10046:15: note: declared here
                                             Local<Object> Value::ToObject() const {
                                                           ^~~~~
                                            ../src/serialport.cpp:270:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                               uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet);
                                                                                                                ^~~~~~~~~~~~
                                            ../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t*)’:
                                            ../src/serialport.cpp:285:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
                                               data->callback.Call(1, argv);
                                                                          ^
                                            In file included from ../src/./serialport.h:6,
                                                             from ../src/serialport.cpp:1:
                                            ../../nan/nan.h:1740:3: note: declared here
                                               Call(int argc, v8::Local<v8::Value> argv[]) const {
                                               ^~~~
                                            ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Get(Nan::NAN_METHOD_ARGS_TYPE)’:
                                            ../src/serialport.cpp:314:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                               uv_queue_work(uv_default_loop(), req, EIO_Get, (uv_after_work_cb)EIO_AfterGet);
                                                                                                                ^~~~~~~~~~~~
                                            ../src/serialport.cpp: In function ‘void EIO_AfterGet(uv_work_t*)’:
                                            ../src/serialport.cpp:336:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
                                               data->callback.Call(2, argv);
                                                                          ^
                                            In file included from ../src/./serialport.h:6,
                                                             from ../src/serialport.cpp:1:
                                            ../../nan/nan.h:1740:3: note: declared here
                                               Call(int argc, v8::Local<v8::Value> argv[]) const {
                                               ^~~~
                                            ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan::NAN_METHOD_ARGS_TYPE)’:
                                            ../src/serialport.cpp:363:76: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                               uv_queue_work(uv_default_loop(), req, EIO_GetBaudRate, (uv_after_work_cb)EIO_AfterGetBaudRate);
                                                                                                                        ^~~~~~~~~~~~~~~~~~~~
                                            ../src/serialport.cpp: In function ‘void EIO_AfterGetBaudRate(uv_work_t*)’:
                                            ../src/serialport.cpp:383:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
                                               data->callback.Call(2, argv);
                                                                          ^
                                            In file included from ../src/./serialport.h:6,
                                                             from ../src/serialport.cpp:1:
                                            ../../nan/nan.h:1740:3: note: declared here
                                               Call(int argc, v8::Local<v8::Value> argv[]) const {
                                               ^~~~
                                            ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
                                            ../src/serialport.cpp:409:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                               uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain);
                                                                                                                  ^~~~~~~~~~~~~~
                                            ../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t*)’:
                                            ../src/serialport.cpp:424:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
                                               data->callback.Call(1, argv);
                                                                          ^
                                            In file included from ../src/./serialport.h:6,
                                                             from ../src/serialport.cpp:1:
                                            ../../nan/nan.h:1740:3: note: declared here
                                               Call(int argc, v8::Local<v8::Value> argv[]) const {
                                               ^~~~
                                            ../src/serialport.cpp: At global scope:
                                            ../src/serialport.cpp:430:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses]
                                             SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) {
                                                                        ^
                                            ../src/serialport.cpp:449:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses]
                                             SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) {
                                                                          ^
                                            In file included from ../../nan/nan.h:54,
                                                             from ../src/./serialport.h:6,
                                                             from ../src/serialport.cpp:1:
                                            /home/pi/.node-gyp/10.16.0/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(v8::Handle<v8::Object>)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                                                   (node::addon_register_func) (regfunc),                          \
                                                                                       ^
                                            /home/pi/.node-gyp/10.16.0/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
                                               NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                                               ^~~~~~~~~~~~~
                                            ../src/serialport.cpp:485:1: note: in expansion of macro ‘NODE_MODULE’
                                             NODE_MODULE(serialport, init);
                                             ^~~~~~~~~~~
                                            In file included from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                             from ../../nan/nan.h:54,
                                                             from ../src/./serialport.h:6,
                                                             from ../src/serialport.cpp:1:
                                            /home/pi/.node-gyp/10.16.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
                                            /home/pi/.node-gyp/10.16.0/include/node/node_object_wrap.h:84:78:   required from here
                                            /home/pi/.node-gyp/10.16.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                                            reinterpret_cast<Callback>(callback), type);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                            /home/pi/.node-gyp/10.16.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
                                            ../../nan/nan_object_wrap.h:65:61:   required from here
                                            /home/pi/.node-gyp/10.16.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                            In file included from ../src/serialport.h:6,
                                                             from ../src/serialport_unix.cpp:2:
                                            ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
                                            ../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                                 , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                                                                          ^
                                            In file included from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                             from ../../nan/nan.h:54,
                                                             from ../src/serialport.h:6,
                                                             from ../src/serialport_unix.cpp:2:
                                            /home/pi/.node-gyp/10.16.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
                                            /home/pi/.node-gyp/10.16.0/include/node/node_object_wrap.h:84:78:   required from here
                                            /home/pi/.node-gyp/10.16.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                                            reinterpret_cast<Callback>(callback), type);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                            /home/pi/.node-gyp/10.16.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
                                            ../../nan/nan_object_wrap.h:65:61:   required from here
                                            /home/pi/.node-gyp/10.16.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                            ../src/serialport_unix.cpp: In function ‘int setup(int, OpenBaton*)’:
                                            ../src/serialport_unix.cpp:176:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Wformat-truncation=]
                                                 snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
                                                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
                                            ../src/serialport_unix.cpp:176:13: note: ‘snprintf’ output 20 or more bytes (assuming 1043) into a destination of size 1024
                                                 snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
                                                 ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                            ../src/serialport_unix.cpp: In function ‘void EIO_Open(uv_work_t*)’:
                                            ../src/serialport_unix.cpp:86:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=]
                                                 snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
                                                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                                            ../src/serialport_unix.cpp:86:13: note: ‘snprintf’ output 22 or more bytes (assuming 1045) into a destination of size 1024
                                                 snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
                                                 ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                            In file included from ../src/poller.cpp:1:
                                            ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
                                            ../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                                 , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                                                                          ^
                                            ../src/poller.cpp: In static member function ‘static void Poller::onData(uv_poll_t*, int, int)’:
                                            ../src/poller.cpp:69:29: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
                                               obj->callback.Call(2, argv);
                                                                         ^
                                            In file included from ../src/poller.cpp:1:
                                            ../../nan/nan.h:1740:3: note: declared here
                                               Call(int argc, v8::Local<v8::Value> argv[]) const {
                                               ^~~~
                                            In file included from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
                                                             from ../../nan/nan.h:54,
                                                             from ../src/poller.cpp:1:
                                            /home/pi/.node-gyp/10.16.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
                                            /home/pi/.node-gyp/10.16.0/include/node/node_object_wrap.h:84:78:   required from here
                                            /home/pi/.node-gyp/10.16.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                                            reinterpret_cast<Callback>(callback), type);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                            /home/pi/.node-gyp/10.16.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
                                            ../../nan/nan_object_wrap.h:65:61:   required from here
                                            /home/pi/.node-gyp/10.16.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                            
                                            ==========================================================================
                                                Finalizing installation (4/4)
                                            ==========================================================================
                                            
                                            Enabling autostart...
                                            Created symlink /etc/systemd/system/multi-user.target.wants/iobroker.service → /lib/systemd/system/iobroker.service.
                                            Autostart enabled!
                                            Fixing directory permissions...
                                            
                                            ==========================================================================
                                            
                                                ioBroker was installed successfully
                                                Open http://192.168.178.79:8081 in a browser and start configuring!
                                            
                                            ==========================================================================
                                            
                                            
                                            You need to re-login before doing anything else on the console!
                                            
                                            pi@raspberrypi:~ $
                                            
                                            Homoran 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            947
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            11
                                            39
                                            5848
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo