Home » Developing U++ » UppHub » SysInfo and Alpine Linux
SysInfo and Alpine Linux [message #55660] |
Sat, 28 November 2020 18:31  |
Novo
Messages: 1430 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
|
|
|
 |
|
SysInfo and Alpine Linux
By: Novo on Sat, 28 November 2020 18:31
|
 |
|
Re: SysInfo and Alpine Linux
By: koldo on Sat, 28 November 2020 21:58
|
 |
|
Re: SysInfo and Alpine Linux
By: Novo on Sun, 29 November 2020 04:07
|
 |
|
Re: SysInfo and Alpine Linux
By: koldo on Mon, 30 November 2020 08:14
|
 |
|
Re: SysInfo and Alpine Linux
By: Novo on Mon, 30 November 2020 13:55
|
 |
|
Re: SysInfo and Alpine Linux
By: Novo on Mon, 30 November 2020 14:06
|
 |
|
Re: SysInfo and Alpine Linux
By: koldo on Mon, 30 November 2020 14:21
|
 |
|
Re: SysInfo and Alpine Linux
By: Novo on Mon, 30 November 2020 15:57
|
 |
|
Re: SysInfo and Alpine Linux
By: Novo on Mon, 30 November 2020 17:12
|
 |
|
Re: SysInfo and Alpine Linux
By: koldo on Mon, 30 November 2020 19:05
|
 |
|
Re: SysInfo and Alpine Linux
By: Novo on Mon, 30 November 2020 19:31
|
Goto Forum:
Current Time: Mon May 12 23:17:10 CEST 2025
Total time taken to generate the page: 0.03803 seconds
|