U++ framework
Do not panic. Ask here before giving up.

Home » Developing U++ » UppHub » SysInfo and Alpine Linux
SysInfo and Alpine Linux [message #55660] Sat, 28 November 2020 18:31 Go to previous message
Novo is currently offline  Novo
Messages: 1431
Registered: December 2006
Ultimate Contributor
SysInfo cannot be compiled in Alpine Linux:
/home/buildbot/dvlp/cpp/code/upp/git/bazaar/SysInfo/SysInfo.cpp:1739:3: error: no matching function for call to 'reboot'
                reboot(0xfee1dead, 672274793, 0xCDEF0123);
                ^~~~~~
/usr/include/sys/reboot.h:15:5: note: candidate function not viable: requires 1 argument, but 3 were provided
int reboot(int);
    ^
/home/buildbot/dvlp/cpp/code/upp/git/bazaar/SysInfo/SysInfo.cpp:1749:3: error: no matching function for call to 'reboot'
                reboot(0xfee1dead, 672274793, 0x01234567);
                ^~~~~~
/usr/include/sys/reboot.h:15:5: note: candidate function not viable: requires 1 argument, but 3 were provided
int reboot(int);

The problem is here:
#if __GNU_LIBRARY__ > 5
		reboot(0xCDEF0123);
#else
		reboot(0xfee1dead, 672274793, 0xCDEF0123);
#endif

Alpine Linux is built around musl libc and __GNU_LIBRARY__ is undefined in it.


Regards,
Novo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: RasterCtrl - Opening image using StringStream
Next Topic: bazaar -> UppHub
Goto Forum:
  


Current Time: Sun Jun 07 21:46:49 GMT+2 2026

Total time taken to generate the page: 0.00543 seconds