Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring incomplete, errors occurred! #6066

Closed
navdeepghai1 opened this issue Feb 3, 2018 · 1 comment
Closed

Configuring incomplete, errors occurred! #6066

navdeepghai1 opened this issue Feb 3, 2018 · 1 comment
Labels
no-issue Better asked in one of our support channels

Comments

@navdeepghai1
Copy link

I am getting errors while installing building Icinga Package from Github.

I followed these step to create user and user groups.

addgroup -S icinga

addgroup -S icingacmd

adduser -S -D -H -h /var/spool/icinga2 -s /sbin/nologin -G icinga -g icinga icinga

adduser icinga icingacmd

But I don't know how to use below command to replace www-data with your web-server user.
I don't what's name of my web server user is.
usermod -a -G icingacmd www-data
Make sure to replace "www-data" with the name of the user your web server is running as.

Now I am getting errors while building packages.
Building Icinga 2

Once you have installed all the necessary build requirements you can build Icinga 2 using the following commands:

$ mkdir build && cd build
$ cmake ..
$ make
$ make install

While executing cmake .. command I am getting this error.
-- Configuring incomplete, errors occurred!
See also "/home/icinga/icinga/icinga2/build/CMakeFiles/CMakeOutput.log".
See also "/home/icinga/icinga/icinga2/build/CMakeFiles/CMakeError.log".

Please also check the attached errors logs for failure

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_b3b4c/fast"
/usr/bin/make -f CMakeFiles/cmTC_b3b4c.dir/build.make CMakeFiles/cmTC_b3b4c.dir/build
make[1]: Entering directory '/home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_b3b4c.dir/CheckSymbolExists.c.o
/usr/bin/cc     -o CMakeFiles/cmTC_b3b4c.dir/CheckSymbolExists.c.o   -c /home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_b3b4c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b3b4c.dir/link.txt --verbose=1
/usr/bin/cc       CMakeFiles/cmTC_b3b4c.dir/CheckSymbolExists.c.o  -o cmTC_b3b4c -rdynamic 
CMakeFiles/cmTC_b3b4c.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_b3b4c.dir/build.make:97: recipe for target 'cmTC_b3b4c' failed
make[1]: *** [cmTC_b3b4c] Error 1
make[1]: Leaving directory '/home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_b3b4c/fast' failed
make: *** [cmTC_b3b4c/fast] Error 2

File /home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_570a9/fast"
/usr/bin/make -f CMakeFiles/cmTC_570a9.dir/build.make CMakeFiles/cmTC_570a9.dir/build
make[1]: Entering directory '/home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_570a9.dir/CheckFunctionExists.c.o
/usr/bin/cc    -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_570a9.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_570a9
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_570a9.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTC_570a9.dir/CheckFunctionExists.c.o  -o cmTC_570a9 -rdynamic -lpthreads 
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_570a9.dir/build.make:97: recipe for target 'cmTC_570a9' failed
make[1]: *** [cmTC_570a9] Error 1
make[1]: Leaving directory '/home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_570a9/fast' failed
make: *** [cmTC_570a9/fast] Error 2


Determining if the function backtrace_symbols exists in the execinfo failed with the following output:
Change Dir: /home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_1b4d2/fast"
/usr/bin/make -f CMakeFiles/cmTC_1b4d2.dir/build.make CMakeFiles/cmTC_1b4d2.dir/build
make[1]: Entering directory '/home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_1b4d2.dir/CheckFunctionExists.c.o
/usr/bin/cc    -g -pthread -Winvalid-pch -DCHECK_FUNCTION_EXISTS=backtrace_symbols   -o CMakeFiles/cmTC_1b4d2.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_1b4d2
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1b4d2.dir/link.txt --verbose=1
/usr/bin/cc   -g -pthread -Winvalid-pch -DCHECK_FUNCTION_EXISTS=backtrace_symbols    CMakeFiles/cmTC_1b4d2.dir/CheckFunctionExists.c.o  -o cmTC_1b4d2 -rdynamic -lexecinfo 
/usr/bin/ld: cannot find -lexecinfo
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_1b4d2.dir/build.make:97: recipe for target 'cmTC_1b4d2' failed
make[1]: *** [cmTC_1b4d2] Error 1
make[1]: Leaving directory '/home/icinga/icinga/icinga2/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_1b4d2/fast' failed
make: *** [cmTC_1b4d2/fast] Error 2
@gunnarbeutner
Copy link
Contributor

Consider using packages. The Icinga documentation has a chapter which explains how to install Icinga: https://www.icinga.com/docs/icinga2/latest/doc/02-getting-started/

@gunnarbeutner gunnarbeutner added the no-issue Better asked in one of our support channels label Feb 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-issue Better asked in one of our support channels
Projects
None yet
Development

No branches or pull requests

2 participants