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

indi-nut fails to compile - INDI v2.0.0 #715

Closed
aaronwmorris opened this issue Feb 4, 2023 · 1 comment
Closed

indi-nut fails to compile - INDI v2.0.0 #715

aaronwmorris opened this issue Feb 4, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@aaronwmorris
Copy link

indi-nut fails to compile under INDI v2.0.0. (I do not use this server, I am just reporting the failure)

INDI: v2.0.0
OS: Debian 11
Platform: x86_64
libnutclient0: 2.7.4-13

Scanning dependencies of target indi_playerone_ccd
[ 94%] Building CXX object indi-playerone/CMakeFiles/indi_playerone_ccd.dir/playerone_ccd.cpp.o
[ 95%] Linking CXX executable indi_playerone_wheel
[ 95%] Built target indi_playerone_wheel
Scanning dependencies of target indi_nut
[ 96%] Building CXX object indi-nut/CMakeFiles/indi_nut.dir/indi_nut.cpp.o
/home/aaron/Projects/src/indi_3rdparty/indi-nut/indi_nut.cpp: In destructor ‘virtual NetworkUPSToolsMonitor::~NetworkUPSToolsMonitor()’:
/home/aaron/Projects/src/indi_3rdparty/indi-nut/indi_nut.cpp:46:5: warning: deleting object of polymorphic class type ‘nut::TcpClient’ which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor]
   46 |     delete nutClient;
      |     ^~~~~~~~~~~~~~~~
/home/aaron/Projects/src/indi_3rdparty/indi-nut/indi_nut.cpp: In member function ‘virtual void NetworkUPSToolsMonitor::ISGetProperties(const char*)’:
/home/aaron/Projects/src/indi_3rdparty/indi-nut/indi_nut.cpp:94:21: error: ‘INDI::PropertyView<T>* INDI::PropertyBasic<T>::operator&() [with T = _IText]’ is protected within this context
   94 |     defineProperty(&nutMonitorUrl);
      |                     ^~~~~~~~~~~~~
In file included from /usr/local/include/libindi/indipropertytext.h:21,
                 from /usr/local/include/libindi/basedevice.h:29,
                 from /usr/local/include/libindi/parentdevice.h:3,
                 from /usr/local/include/libindi/defaultdevice.h:21,
                 from /usr/local/include/libindi/indiweather.h:27,
                 from /home/aaron/Projects/src/indi_3rdparty/indi-nut/indi_nut.h:29,
                 from /home/aaron/Projects/src/indi_3rdparty/indi-nut/indi_nut.cpp:26:
/usr/local/include/libindi/indipropertybasic.h:101:27: note: declared protected here
  101 |         PropertyView<T> * operator &();
      |                           ^~~~~~~~
/home/aaron/Projects/src/indi_3rdparty/indi-nut/indi_nut.cpp: In member function ‘virtual bool NetworkUPSToolsMonitor::updateProperties()’:
/home/aaron/Projects/src/indi_3rdparty/indi-nut/indi_nut.cpp:104:25: error: ‘INDI::PropertyView<T>* INDI::PropertyBasic<T>::operator&() [with T = _IText]’ is protected within this context
  104 |         defineProperty(&nutMonitorUrl);
      |                         ^~~~~~~~~~~~~
In file included from /usr/local/include/libindi/indipropertytext.h:21,
                 from /usr/local/include/libindi/basedevice.h:29,
                 from /usr/local/include/libindi/parentdevice.h:3,
                 from /usr/local/include/libindi/defaultdevice.h:21,
                 from /usr/local/include/libindi/indiweather.h:27,
                 from /home/aaron/Projects/src/indi_3rdparty/indi-nut/indi_nut.h:29,
                 from /home/aaron/Projects/src/indi_3rdparty/indi-nut/indi_nut.cpp:26:
/usr/local/include/libindi/indipropertybasic.h:101:27: note: declared protected here
  101 |         PropertyView<T> * operator &();
      |                           ^~~~~~~~
/home/aaron/Projects/src/indi_3rdparty/indi-nut/indi_nut.cpp: In member function ‘virtual bool NetworkUPSToolsMonitor::saveConfigItems(FILE*)’:
/home/aaron/Projects/src/indi_3rdparty/indi-nut/indi_nut.cpp:165:27: error: ‘INDI::PropertyView<T>* INDI::PropertyBasic<T>::operator&() [with T = _IText]’ is protected within this context
  165 |     IUSaveConfigText(fp, &nutMonitorUrl);
      |                           ^~~~~~~~~~~~~
In file included from /usr/local/include/libindi/indipropertytext.h:21,
                 from /usr/local/include/libindi/basedevice.h:29,
                 from /usr/local/include/libindi/parentdevice.h:3,
                 from /usr/local/include/libindi/defaultdevice.h:21,
                 from /usr/local/include/libindi/indiweather.h:27,
                 from /home/aaron/Projects/src/indi_3rdparty/indi-nut/indi_nut.h:29,
                 from /home/aaron/Projects/src/indi_3rdparty/indi-nut/indi_nut.cpp:26:
/usr/local/include/libindi/indipropertybasic.h:101:27: note: declared protected here
  101 |         PropertyView<T> * operator &();
      |                           ^~~~~~~~
make[2]: *** [indi-nut/CMakeFiles/indi_nut.dir/build.make:82: indi-nut/CMakeFiles/indi_nut.dir/indi_nut.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3625: indi-nut/CMakeFiles/indi_nut.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
@pawel-soja
Copy link
Contributor

Fixed: #716

@knro knro closed this as completed Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants