n0la / rcon

Source RCON client for command line
BSD 2-Clause "Simplified" License
140 stars 18 forks source link

"-- No package 'libbsd' found" in debian bullseye #24

Closed kiven7e closed 3 years ago

kiven7e commented 3 years ago

terminal says

 -- Checking for module 'libbsd'
--   No package 'libbsd' found
CMake Error at /home/linuxbrew/.linuxbrew/Cellar/cmake/3.20.2/share/cmake/Modules/FindPkgConfig.cmake:556 (message):
  A required package was not found
Call Stack (most recent call first):
  /home/linuxbrew/.linuxbrew/Cellar/cmake/3.20.2/share/cmake/Modules/FindPkgConfig.cmake:778 (_pkg_check_modules_internal)
  CMakeLists.txt:44 (PKG_CHECK_MODULES)

-- Configuring incomplete, errors occurred!
See also "/home/kiven/Downloads/rcon-master/build/CMakeFiles/CMakeOutput.log".
See also "/home/kiven/Downloads/rcon-master/build/CMakeFiles/CMakeError.log".

and CMakeError.log says

Determining if the function pledge exists failed with the following output:
Change Dir: /home/kiven/Downloads/rcon-master/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_42d1c/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_42d1c.dir/build.make C>
gmake[1]: Entering directory '/home/kiven/Downloads/rcon-master/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_42d1c.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pledge -o CMakeFiles/cmTC_42d1c.dir/CheckFunctionExists.c.o -c /home/linuxbrew/.linuxb>
Linking C executable cmTC_42d1c
/home/linuxbrew/.linuxbrew/Cellar/cmake/3.20.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_42d1c.dir/link.txt --verbose=1
/usr/bin/cc  -DCHECK_FUNCTION_EXISTS=pledge -rdynamic CMakeFiles/cmTC_42d1c.dir/CheckFunctionExists.c.o -o cmTC_42d1c
/usr/bin/ld: CMakeFiles/cmTC_42d1c.dir/CheckFunctionExists.c.o: in function `main':
CheckFunctionExists.c:(.text+0x10): undefined reference to `pledge'
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_42d1c.dir/build.make:99: cmTC_42d1c] Error 1
gmake[1]: Leaving directory '/home/kiven/Downloads/rcon-master/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_42d1c/fast] Error 2

but twice for some reson idk whats going on theres not mutch to mess up i even tried the home brew and that did not work, update/upgrade, and sudo apt-get install -y libbsd-dev still did not work

n0la commented 3 years ago

The package libbsd-dev does exist in bullseye, so I am not sure why you are having this problem. Heck I developed rcon under OpenBSD and Debian bullseye.

What does the following command say?

pkg-config --list-all | grep bsd

?

n0la commented 3 years ago

No reply for 18 days, so I consider this closed.