ryzom / ryzomcore

Ryzom Core is the open-source project related to the Ryzom game. This community repository is synchronized with the Ryzom Forge repository, based on the Core branch.
https://wiki.ryzom.dev
GNU Affero General Public License v3.0
331 stars 89 forks source link

Cant build on manjaro linux #618

Closed LinuxDonald closed 3 years ago

LinuxDonald commented 3 years ago

Hey guys im trying to update the aur package for Arch Linux/Manjaro. But if i want to build i get that error:

[ 8%] Building CXX object nel/src/misc/CMakeFiles/nelmisc.dir/system_info.cpp.o /home/schatzi/Downloads/ryzom-hg/src/ryzomcore/code/nel/src/misc/system_info.cpp:182:11: fatal error: sys/sysctl.h: No such file or directory 182 | # include <sys/sysctl.h> | ^~~~~~ compilation terminated. make[2]: [nel/src/misc/CMakeFiles/nelmisc.dir/build.make:1265: nel/src/misc/CMakeFiles/nelmisc.dir/system_info.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... make[1]: [CMakeFiles/Makefile2:3504: nel/src/misc/CMakeFiles/nelmisc.dir/all] Error 2 make: [Makefile:182: all] Error 2

nimetu commented 3 years ago

you are missing kernel headers. nothing to do with ryzom

LinuxDonald commented 3 years ago

On Arch linux the include path is maybe wrong? usr/lib/modules/5.8.11-arch1-1/build/include/linux/sysctl.h

nimetu commented 3 years ago

Unless you script completely replaces include directories, you do not need to specify system include dirs.

LinuxDonald commented 3 years ago

https://lwn.net/Articles/795164/

/sys/sysctl.h is deprecated.

glibc don't have this include file anymore.

nimetu commented 3 years ago

Thanks. I fixed it in develop branch. Atys branch is a bit behind and I dont know when develop is merged into atys.

If aur package supports patches, then you need to apply the patch into atys branch (simply delete that include line).

LinuxDonald commented 3 years ago

Thank you