Closed jp-luiggi closed 2 years ago
I did not tried to install the package on FreeBSD (will do it soonly) but I managed to did a fix on OpenBSD using preprocessor in "init.c"
{ "psll_memory_uss", (DL_FUNC) psll_memory_uss, 1 },
{ "psll_get_cpu_aff", (DL_FUNC) psll_get_cpu_aff, 1 }, { "psll_set_cpu_aff", (DL_FUNC) psll_set_cpu_aff, 2 },
{ "psmemory_maps", (DL_FUNC) psmemory_maps, 1 },
Did you try the latest commit in the main
branch?
Can confirm that it now builds on FreeBSD, with these warnings:
dummy.c:74:49: warning: non-void function does not return a value
[-Wreturn-type]
SEXP ps__tty_size() { ps__dummy("ps_tty_size"); }
^
dummy.c:75:69: warning: non-void function does not return a value
[-Wreturn-type]
SEXP ps__disk_partitions(SEXP x) { ps__dummy("ps_disk_partitions"); }
^
dummy.c:76:53: warning: non-void function does not return a value
[-Wreturn-type]
SEXP ps__disk_usage() { ps__dummy("ps_disk_usage"); }
^
dummy.c:78:59: warning: non-void function does not return a value
[-Wreturn-type]
SEXP ps__system_memory() { ps__dummy("ps_system_memory"); }
^
dummy.c:79:55: warning: non-void function does not return a value
[-Wreturn-type]
SEXP ps__system_swap() { ps__dummy("ps_system_swap"); }
While trying to install the "tidyverse" package, that one needed the "ps" package. The latter cannot build on OpenBSD 7.1 because of the lack of some data.
undefined symbol 'psll_memory_uss' undefined symbol 'psll_get_cpu_aff' undefined symbol 'psll_set_cpu_aff' undefined symbol 'ps__memory_maps'
"ps" package cannot build on OpenBSD 7.1