Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 1358
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: Fri Mar 29 10:45:21 CET 2024

Total time taken to generate the page: 0.02457 seconds