unable to install Spine

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Moderators, Developers

Post Reply
Author
Message
mzarififar
Posts: 27
Joined: Thu Oct 10, 2019 8:15 am

unable to install Spine

#1 Post by mzarififar » Mon Oct 28, 2019 10:21 am

Hi everyone,

I want to install spine on my cacti but I get below error, can someone help me for this ?

[[email protected] cacti-spine-1.2.7]# ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gawk... (cached) gawk
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/cacti-spine-1.2.7':
configure: error: C compiler cannot create executables
See `config.log' for more details
[[email protected] cacti-spine-1.2.7]# make
make: *** No targets specified and no makefile found. Stop.

xdracco
Posts: 38
Joined: Fri Aug 17, 2012 10:19 am
Location: Long Beach, CA

Re: unable to install Spine

#2 Post by xdracco » Mon Oct 28, 2019 11:16 am

It would be helpful if you posted the contents of config.log.
The answer to life, the universe and everything is int main() { return 42; }

mzarififar
Posts: 27
Joined: Thu Oct 10, 2019 8:15 am

Re: unable to install Spine

#3 Post by mzarififar » Mon Oct 28, 2019 11:19 am

Thanks for the answer!

here is all I got after installing some repository :

[[email protected] cacti-spine-1.2.7]# ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gawk... (cached) gawk
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether to enable -Wall... no
checking for help2man... false // No help2man //
checking for help2man... false // No help2man //
./configure: line 12243: test: too many arguments
checking for threadsafe gethostbyname()... no
checking for gethostbyname_r in -lnls... no
checking for socket in -lsocket... no
checking for floor in -lm... yes
checking for dlclose in -ldl... yes
checking for pthread_exit in -lpthread... yes
checking for deflate in -lz... yes
checking for kstat_close in -lkstat... no
checking for CRYPTO_realloc in -lcrypto... yes
checking for library containing clock_gettime... none required
checking for ANSI C header files... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for signal.h... (cached) yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for netinet/in_systm.h... yes
checking for netinet/in.h... yes
checking for netinet/ip.h... yes
checking for netinet/ip_icmp.h... yes
checking for unsigned long long... yes
checking for long long... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking for malloc... yes
checking for calloc... yes
checking for gettimeofday... yes
checking for strerror... yes
checking for strtoll... yes
checking priv.h usability... no
checking priv.h presence... no
checking for priv.h... no
checking whether we are using Solaris privileges... no
checking sys/capability.h usability... no
checking sys/capability.h presence... no
checking for sys/capability.h... no
checking whether we are using Linux Capabilities... no
checking for mysql_init in -lmysqlclient... yes
checking if Net-SNMP needs crypto support... yes
checking for snmp_timeout in -lnetsnmp... yes
checking for the spine results buffer size... 2048 bytes
checking for the maximum simultaneous spine scripts... 20
checking for the maximum MySQL buffer size... 131072
checking whether we are using traditional popen... no
checking whether to verify net-snmp library vs header versions... no
checking for glibc gethostbyname_r... yes
checking for Solaris/Irix gethostbyname_r... no
checking for HP-UX gethostbyname_r... no
checking if we can support backtracing... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/config.h
config.status: config/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
[[email protected] cacti-spine-1.2.7]# make
false // No help2man // --output=spine.1 --name='Data Collector for Cacti' --no-info --version-option='--version' ./spine
make: *** [Makefile:974: spine.1] Error 1

mzarififar
Posts: 27
Joined: Thu Oct 10, 2019 8:15 am

Re: unable to install Spine

#4 Post by mzarififar » Mon Oct 28, 2019 11:27 am

I attached the config.log.
config.txt
(66.18 KiB) Downloaded 5 times

mzarififar
Posts: 27
Joined: Thu Oct 10, 2019 8:15 am

Re: unable to install Spine

#5 Post by mzarififar » Mon Oct 28, 2019 11:33 am

I used help2man to install but it can't find it.....

[[email protected] cacti-spine-1.2.7]# yum install help2man
Last metadata expiration check: 0:21:31 ago on Mon 28 Oct 2019 12:10:59 PM EDT.
No match for argument: help2man
Error: Unable to find a match
[[email protected] cacti-spine-1.2.7]#


mzarififar
Posts: 27
Joined: Thu Oct 10, 2019 8:15 am

Re: unable to install Spine

#7 Post by mzarififar » Mon Oct 28, 2019 12:53 pm

I am using centos 8 and I was able to install spine. My problem is right now stopping graph when I switch the poller to spine. any advise!
:cry:

mzarififar
Posts: 27
Joined: Thu Oct 10, 2019 8:15 am

Re: unable to install Spine

#8 Post by mzarififar » Mon Oct 28, 2019 1:30 pm

I installed again and here is the output :

[[email protected] cacti-spine-1.2.7]# make clean
rm -f spine
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
[[email protected] cacti-spine-1.2.7]# make
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT sql.o -MD -MP -MF .deps/sql.Tpo -c -o sql.o sql.c
sql.c: In function ‘db_escape’:
sql.c:386:3: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncpy(input_trimmed, input, input_size);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sql.c:380:15: note: length computed here
input_size = strlen(input);
^~~~~~~~~~~~~
mv -f .deps/sql.Tpo .deps/sql.Po
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT spine.o -MD -MP -MF .deps/spine.Tpo -c -o spine.o spine.c
mv -f .deps/spine.Tpo .deps/spine.Po
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c
util.c: In function ‘spine_log’:
util.c:1171:3: warning: ‘strncat’ specified bound 1 equals source length [-Wstringop-overflow=]
strncat(flogmessage, "\n", 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
util.c: In function ‘strncopy’:
util.c:1471:3: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncpy(dst, src, len);
^~~~~~~~~~~~~~~~~~~~~~
util.c:1466:8: note: length computed here
len = strlen(src);
^~~~~~~~~~~
mv -f .deps/util.Tpo .deps/util.Po
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT snmp.o -MD -MP -MF .deps/snmp.Tpo -c -o snmp.o snmp.c
snmp.c: In function ‘snmp_host_init’:
snmp.c:189:2: warning: ‘remote_port’ is deprecated [-Wdeprecated-declarations]
session.remote_port = snmp_port;
^~~~~~~
In file included from /usr/include/net-snmp/utilities.h:16,
from common.h:135,
from snmp.c:34:
/usr/include/net-snmp/types.h:345:21: note: declared here
u_short remote_port NETSNMP_ATTRIBUTE_DEPRECATED;
^~~~~~~~~~~
mv -f .deps/snmp.Tpo .deps/snmp.Po
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT locks.o -MD -MP -MF .deps/locks.Tpo -c -o locks.o locks.c
mv -f .deps/locks.Tpo .deps/locks.Po
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT poller.o -MD -MP -MF .deps/poller.Tpo -c -o poller.o poller.c
poller.c: In function ‘poll_host’:
poller.c:1562:3: warning: ‘strncat’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncat(query3, query8, strlen(query8));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poller.c:1572:4: warning: ‘strncat’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncat(query12, query11, strlen(query11));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poller.c:1597:5: warning: ‘strncat’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncat(query3, posuffix, strlen(posuffix));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poller.c:1604:5: warning: ‘strncat’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncat(query3, query8, strlen(query8));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poller.c:1609:6: warning: ‘strncat’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncat(query12, posuffix, strlen(posuffix));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poller.c:1614:6: warning: ‘strncat’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncat(query12, query11, strlen(query11));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poller.c:1631:4: warning: ‘strncat’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncat(query3, result_string, strlen(result_string));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poller.c:1634:5: warning: ‘strncat’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncat(query12, result_string, strlen(result_string));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poller.c:1645:4: warning: ‘strncat’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncat(query3, posuffix, strlen(posuffix));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poller.c:1653:5: warning: ‘strncat’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncat(query12, posuffix, strlen(posuffix));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mv -f .deps/poller.Tpo .deps/poller.Po
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT nft_popen.o -MD -MP -MF .deps/nft_popen.Tpo -c -o nft_popen.o nft_popen.c
mv -f .deps/nft_popen.Tpo .deps/nft_popen.Po
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT php.o -MD -MP -MF .deps/php.Tpo -c -o php.o php.c
mv -f .deps/php.Tpo .deps/php.Po
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT ping.o -MD -MP -MF .deps/ping.Tpo -c -o ping.o ping.c
mv -f .deps/ping.Tpo .deps/ping.Po
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT keywords.o -MD -MP -MF .deps/keywords.Tpo -c -o keywords.o keywords.c
mv -f .deps/keywords.Tpo .deps/keywords.Po
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT error.o -MD -MP -MF .deps/error.Tpo -c -o error.o error.c
mv -f .deps/error.Tpo .deps/error.Po
/bin/sh ./libtool --tag=CC --mode=link gcc -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -L/usr/lib64 -L/usr/lib64/mysql -lpthread -lssl -lm -o spine sql.o spine.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o -lnetsnmp -lmysqlclient -lm -ldl -lmysqlclient -lm -ldl -lcrypto -lz -lpthread -ldl -lm
libtool: link: gcc -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -o spine sql.o spine.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o -L/usr/lib64 -L/usr/lib64/mysql -lssl -lnetsnmp -lmysqlclient -lcrypto -lz -lpthread -ldl -lm
/usr/bin/help2man --output=spine.1 --name='Data Collector for Cacti' --no-info --version-option='--version' ./spine
[[email protected] cacti-spine-1.2.7]# make install
make[1]: Entering directory '/tmp/cacti-spine-1.2.7'
/usr/bin/mkdir -p '/usr/local/spine/bin'
/bin/sh ./libtool --mode=install /usr/bin/install -c spine '/usr/local/spine/bin'
libtool: install: /usr/bin/install -c spine /usr/local/spine/bin/spine
/usr/bin/mkdir -p '/usr/local/spine/etc'
/usr/bin/install -c -m 644 spine.conf.dist '/usr/local/spine/etc'
/usr/bin/mkdir -p '/usr/local/spine/share/man/man1'
/usr/bin/install -c -m 644 spine.1 '/usr/local/spine/share/man/man1'
make[1]: Leaving directory '/tmp/cacti-spine-1.2.7'
[[email protected] cacti-spine-1.2.7]#


can someone helps ?!

mzarififar
Posts: 27
Joined: Thu Oct 10, 2019 8:15 am

Re: unable to install Spine

#9 Post by mzarififar » Mon Oct 28, 2019 1:32 pm

help2man can be installed by this on centos 8

dnf --enablerepo=PowerTools install help2man

mzarififar
Posts: 27
Joined: Thu Oct 10, 2019 8:15 am

Re: unable to install Spine

#10 Post by mzarififar » Mon Oct 28, 2019 4:51 pm

I get these error when I run spine :

2019/10/28 17:48:54 - SPINE: Poller[Main Poller] PID[21222] ERROR: Spine Timed Out While Waiting for 1 Threads to End
2019/10/28 17:48:53 - SPINE: Poller[Main Poller] PID[21222] ERROR: Spine Timed Out While Processing Devices Internal :roll: :roll: :roll: :roll: :roll:

anybody knows what is problem ?!!! :wink: :wink: :wink: :wink:

Post Reply