OpenZWave compile error: AssociationCommandConfiguration.cpp:191:85: error: ‘this’ pointer is null

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
cedric2
Posts: 2
Joined: Saturday 19 April 2025 8:58
Target OS: Linux
Domoticz version:
Contact:

OpenZWave compile error: AssociationCommandConfiguration.cpp:191:85: error: ‘this’ pointer is null

Post by cedric2 »

I failed to compile OpenZWave on my Arch linux system. I see this error:

Code: Select all

Building src/command_classes/AssociationCommandConfiguration.cpp
/home/arch/open-zwave/cpp/src/command_classes/AssociationCommandConfiguration.cpp: In member function ‘virtual bool OpenZWave::Internal::CC::AssociationCommandConfiguration::HandleMsg(const uint8*, uint32, uint32)’:
/home/arch/open-zwave/cpp/src/command_classes/AssociationCommandConfiguration.cpp:191:85: error: ‘this’ pointer is null [-Werror=nonnull]
  191 |                                                                 group->ClearCommands(nodeIdx);
      |                                                                 ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from /home/arch/open-zwave/cpp/src/Driver.h:36,
                 from /home/arch/open-zwave/cpp/src/command_classes/CommandClass.h:36,
                 from /home/arch/open-zwave/cpp/src/command_classes/AssociationCommandConfiguration.h:31,
                 from /home/arch/open-zwave/cpp/src/command_classes/AssociationCommandConfiguration.cpp:29:
/home/arch/open-zwave/cpp/src/Group.h:138:30: note: in a call to non-static member function ‘bool OpenZWave::Group::ClearCommands(uint8, uint8)’
  138 |                         bool ClearCommands(uint8 const _nodeId, uint8 const _endPoint = 0x00);
      |                              ^~~~~~~~~~~~~
/home/arch/open-zwave/cpp/src/command_classes/AssociationCommandConfiguration.cpp:199:82: error: ‘this’ pointer is null [-Werror=nonnull]
  199 |                                                                 group->AddCommand(nodeIdx, length, start + 1);
      |                                                                 ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/arch/open-zwave/cpp/src/Group.h:139:30: note: in a call to non-static member function ‘bool OpenZWave::Group::AddCommand(uint8, uint8, const uint8*, uint8)’
  139 |                         bool AddCommand(uint8 const _nodeId, uint8 const _length, uint8 const* _data, uint8 const _endPoint = 0x00);
      |                              ^~~~~~~~~~
cc1plus: all warnings being treated as errors
make[1]: *** [/home/arch/open-zwave/cpp/build/support.mk:192: /home/arch/open-zwave/.lib/AssociationCommandConfiguration.o] Error 1
make[1]: Leaving directory '/home/arch/open-zwave/cpp/build'
make: *** [Makefile:23: all] Error 2
I've entered these commands:

Code: Select all

$ git clone https://github.com/OpenZWave/open-zwave.git
$ ln -s open-zwave open-zwave-read-only
$ cd open-zwave
$ make
Versions:

Code: Select all

OpenZWave Version 1.6-1965-g3fff11d2 - 1.6.1965
$ uname -a
Linux archlinux 6.14.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 10 Apr 2025 18:43:59 +0000 x86_64 GNU/Linux
I'm running this Arch Linux image in a virtual machine: Arch-Linux-x86_64-basic-20250415.336224.qcow2
https://gitlab.archlinux.org/archlinux/arch-boxes/-/package_files/9199/download
Full terminal output is attached
Attachments
zwave-compile-error.txt
(8.99 KiB) Downloaded 32 times
User avatar
waltervl
Posts: 5852
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: OpenZWave compile error: AssociationCommandConfiguration.cpp:191:85: error: ‘this’ pointer is null

Post by waltervl »

As the OpenZwave project has stopped a long time ago the Domoticz project is promoting to use Zwave-JS-UI.

See wiki https://wiki.domoticz.com/Zwave-JS-UI

This wil probably not help you when compiling the current OpenZwave part in Domoticz.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
lost
Posts: 660
Joined: Thursday 10 November 2016 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: OpenZWave compile error: AssociationCommandConfiguration.cpp:191:85: error: ‘this’ pointer is null

Post by lost »

Hello,

Did you use the version from domoticz repo?
https://github.com/domoticz/open-zwave

Looks last commit from Kiddigital was exactly about fixing the error you have! ;)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest