Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error OpenZWave::ValueID::ValueID() is private #11

Open
xando opened this issue May 8, 2013 · 5 comments
Open

Build error OpenZWave::ValueID::ValueID() is private #11

xando opened this issue May 8, 2013 · 5 comments

Comments

@xando
Copy link

xando commented May 8, 2013

py-openzwave git hash 9766354

openzwave svn
Last Changed Author: glsatz
Last Changed Rev: 661
Last Changed Date: 2013-04-29 17:11:23 +0200 (pon, 29 kwi 201

(zwave) ~/Projects/py-openzwave git:master > python setup.py build
running build
running build_ext
skipping 'openzwave.cpp' Cython extension (up-to-date)
building 'openzwave' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Iopenzwave/cpp/src -Iopenzwave/cpp/src/value_classes -Iopenzwave/cpp/src/platform -I/usr/include/python2.7 -c openzwave.cpp -o build/temp.linux-x86_64-2.7/openzwave.o
cc1plus: warning: command line option-Wstrict-prototypesis valid for C/ObjC but not for C++ [enabled by default]
In file included from openzwave/cpp/src/Notification.h:32:0,
                 from openzwave.cpp:310:
/usr/include/c++/4.7/bits/stl_pair.h: In instantiation ofstd::pair<_T1, _T2>::pair() [with _T1 = long unsigned int; _T2 = OpenZWave::ValueID]’:
openzwave.cpp:1880:42:   required from here
openzwave/cpp/src/value_classes/ValueID.h:244:3: error: ‘OpenZWave::ValueID::ValueID()’ is private
In file included from /usr/include/c++/4.7/utility:72:0,
                 from openzwave.cpp:300:
/usr/include/c++/4.7/bits/stl_pair.h:101:25: error: within this context
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
@kstaniek
Copy link

Has anybody already fixed this?

@daiuto
Copy link

daiuto commented May 5, 2014

I can't build due to this error.

@abattech
Copy link

abattech commented Mar 1, 2015

Same problem here!

@texnofobix
Copy link

I made the function public and rebuilt both.

@balloob
Copy link

balloob commented Mar 15, 2015

sed -i '253s/.*//' openzwave/cpp/src/value_classes/ValueID.h

This will remove the private declaration of the constructor and it can build.

If anyone is interested in a Python Z-Wave wrapper that shows a bit more activity then this repo, join us at bibi21000/python-openzwave .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants