cacti spine 1.1.2 make problem

Created on 3 Apr 2017  路  6Comments  路  Source: Cacti/cacti

OS : freebsd v11
net-snmpd v5.7.3

Problem during make command:
_# make
cc -DHAVE_CONFIG_H -I. -I./config -I/usr/local/include/mysql -g -O2 -MT sql.o -MD -MP -MF .deps/sql.Tpo -c -o sql.o sql.c
In file included from sql.c:34:
./common.h:134:10: fatal error: 'net-snmp/net-snmp-config.h' file not found

include

     ^

1 error generated.
* Error code 1

Stop.
make: stopped in /usr/home/amin/cacti-spine-1.1.2_

Most helpful comment

On FreeBSD first install GCC 4.9 and use this string:
./configure 'CC=gcc49' '--prefix=/usr/local/' '--exec-prefix=/usr/local/'

All 6 comments

On FreeBSD first install GCC 4.9 and use this string:
./configure 'CC=gcc49' '--prefix=/usr/local/' '--exec-prefix=/usr/local/'

Also, what is the output of the configure script? Who about when you ran bootstrap. Seems like some paths are buggered up.

Hmm. Well Pautiina, as you know, I'm not patient. So, I'll close after 3 days and no response.

The problem is that the standard clang compiler uses the FreeBSD source code and librery, and spine requires the libraries of the installed net-snmp package. To solve this and similar problems it is necessary to install the GCC compiler. It correctly uses include libraries.

aminli,

Once you have this resolved, if you would please create a pull request with updated documentation for FreeBSD that would be great. Just append it to the current readme.

Thanks for all,
I run this command after installing GCC6
./configure 'CC=gcc6' '--prefix=/usr/local/' '--exec-prefix=/usr/local/'
it is installed without any error.

Was this page helpful?
0 / 5 - 0 ratings