Spine Compile Issues Here
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Doing very little research, try this instead. Let me know how it goes:dagonet wrote:Hi,
FreeBSD ollowain.rz-service.org 6.2-RELEASE-p6 FreeBSD 6.2-RELEASE-p6 #8: Sun Jul 22 15:39:15 CEST 2007 root@ollowain.rz-service.org:/usr/obj/usr/src/sys/OLLOWAIN i386
hope this helps.
Dagonet
Code: Select all
#if HAVE_NETINET_IN_H
#include <arpa/inet.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/in.h>
#include <netinet/ip_icmp.h>
#endif
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
-
- Cacti User
- Posts: 175
- Joined: Sun May 27, 2007 5:42 pm
Hi there. I did encounter problem when compiling spine in openSUSE 10.3 for the first time.
When doing ./configure, it encounter this:
configure: error: cannot run /bin/sh config/config.sub
upon checking the directory, notice that the config.sub is a symbolic link to /usr/share/libtool/config.sub
That mean in order to compile spine in openSUSE, I need to install libtool as well.
So for those who encounter such problem, please check whether do u have libtool install or not.
sh
When doing ./configure, it encounter this:
configure: error: cannot run /bin/sh config/config.sub
upon checking the directory, notice that the config.sub is a symbolic link to /usr/share/libtool/config.sub
That mean in order to compile spine in openSUSE, I need to install libtool as well.
So for those who encounter such problem, please check whether do u have libtool install or not.
sh
Hi,TheWitness wrote: Doing very little research, try this instead. Let me know how it goes:
TheWitnessCode: Select all
#if HAVE_NETINET_IN_H #include <arpa/inet.h> #include <netinet/in_systm.h> #include <netinet/ip.h> #include <netinet/in.h> #include <netinet/ip_icmp.h> #endif
I still get this error. I checked ping.c. Obviously the problem is icmphdr struct in line 264. I checked the corresponding header ip_icmp.h. There the icmphdr struct does not have an members like type, code, un.echo.id. But the one in ping.h has. So finaly I removed ip_icmp.h from the common.h file. Tweaked a little in ping.h and bingo! Spine compiled at last.
I have no idea if it is working right now. Just the compile run went through.
Dagonet
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi all
I've upgraded my server #3 to Cacti 0.8.7 + Spine 0.8.7 + PA 1.2, and everything works fine
Edit : same problem than Howie, authentication method switched to "None" during the upgrade...
I've upgraded my server #3 to Cacti 0.8.7 + Spine 0.8.7 + PA 1.2, and everything works fine
Edit : same problem than Howie, authentication method switched to "None" during the upgrade...
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
-
- Cacti User
- Posts: 175
- Joined: Sun May 27, 2007 5:42 pm
Hi all
I found out one script:
http://forums.cacti.net/viewtopic.php?t ... nmp+memory
cannot work in this 0.8.7 version due to the above application rely information from config.php. Now the 0.8.7 information is stored in global.php instead.
SH
I found out one script:
http://forums.cacti.net/viewtopic.php?t ... nmp+memory
cannot work in this 0.8.7 version due to the above application rely information from config.php. Now the 0.8.7 information is stored in global.php instead.
SH
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
On a CentOS 4.5 x86, I had to install the libstdc++-devel and gcc-c++ packages in order to compile Spine 0.8.7
(they were not needed for cactid 0.8.6j)
(they were not needed for cactid 0.8.6j)
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
-
- Cacti User
- Posts: 175
- Joined: Sun May 27, 2007 5:42 pm
Is it ok to intermittently get this error:
ERROR: SQL Assoc Failed!, Error:'1064', SQL:"select snmp_query_graph_rrd.snmp_field_name, data_template_rrd.id as data_template_rrd_id from (snmp_query_graph_rrd,data_template_rrd) where snmp_query_graph_rrd.data_template_rrd_id=data_template_rrd.local_data_template_rrd_id and snmp_query_graph_rrd.snmp_query_graph_id=Get Processor Utilization and snmp_query_graph_rrd.data_template_id=78 and data_template_rrd.local_data_id=50"
SH
ERROR: SQL Assoc Failed!, Error:'1064', SQL:"select snmp_query_graph_rrd.snmp_field_name, data_template_rrd.id as data_template_rrd_id from (snmp_query_graph_rrd,data_template_rrd) where snmp_query_graph_rrd.data_template_rrd_id=data_template_rrd.local_data_template_rrd_id and snmp_query_graph_rrd.snmp_query_graph_id=Get Processor Utilization and snmp_query_graph_rrd.data_template_id=78 and data_template_rrd.local_data_id=50"
SH
I get the "MySQL libraries not found" error when ./configure-ing spine(In windows 2003/cygwin).
I've compiled en installed MySQL client as mentioned here: http://www.cacti.net/spine_install_wincyg.php
It is also working, and can connect to the mysql server without problems:
Libraries MySQL(don't know if that are the correct files though):
I've even tried to specify the MySQL library path and binary(same problem):
Any ideas?
Thanks!
Code: Select all
checking for mysql_init in -lmysqlclient_r... no
configure: error: MySQL libraries not found
It is also working, and can connect to the mysql server without problems:
Code: Select all
administrator@srvman /src/cacti-spine-0.8.7
$ mysql --version
mysql Ver 14.12 Distrib 5.0.41, for pc-cygwin (i686) using EditLine wrapper
Code: Select all
administrator@srvman /usr/local/lib/mysql
$ ls
libmysqlclient.a libmysqlclient.la libmystrings.a libmysys.a
administrator@srvman /usr/local/lib/mysql
$
Code: Select all
./configure --with-mysql=/usr/local/bin/mysql --with-mysql-lib=/usr/local/lib/mysql/
Thanks!
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
YoMark,YoMarK wrote:I get the "MySQL libraries not found" error when ./configure-ing spine(In windows 2003/cygwin).I've compiled en installed MySQL client as mentioned here: http://www.cacti.net/spine_install_wincyg.phpCode: Select all
checking for mysql_init in -lmysqlclient_r... no configure: error: MySQL libraries not found
It is also working, and can connect to the mysql server without problems:Libraries MySQL(don't know if that are the correct files though):Code: Select all
administrator@srvman /src/cacti-spine-0.8.7 $ mysql --version mysql Ver 14.12 Distrib 5.0.41, for pc-cygwin (i686) using EditLine wrapper
I've even tried to specify the MySQL library path and binary(same problem):Code: Select all
administrator@srvman /usr/local/lib/mysql $ ls libmysqlclient.a libmysqlclient.la libmystrings.a libmysys.a administrator@srvman /usr/local/lib/mysql $
Any ideas?Code: Select all
./configure --with-mysql=/usr/local/bin/mysql --with-mysql-lib=/usr/local/lib/mysql/
Thanks!
You must use the thread safe version of MySQL client. It would appear that you do not have it installed. What is your OSNAME and OSVERSION? Did you install MySQL from Source? If so, you must use other config options to enable thread safe client.
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
This is not good. The code section appears in lib/utility.php. I have to address this to the author of the code. Hopefully you will here back soon.super-hornet wrote:Is it ok to intermittently get this error:
ERROR: SQL Assoc Failed!, Error:'1064', SQL:"select snmp_query_graph_rrd.snmp_field_name, data_template_rrd.id as data_template_rrd_id from (snmp_query_graph_rrd,data_template_rrd) where snmp_query_graph_rrd.data_template_rrd_id=data_template_rrd.local_data_template_rrd_id and snmp_query_graph_rrd.snmp_query_graph_id=Get Processor Utilization and snmp_query_graph_rrd.data_template_id=78 and data_template_rrd.local_data_id=50"
SH
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
"Solved" this error by symlinking libmysqlclient.a to libmysqlclient_r.a
and libmysqlclient.la to libmysqlclient_r.la.
TheWitness: I've configured an installed MySQL just as mentioned here: http://www.cacti.net/spine_install_wincyg.php, but is does not install the thread safe version of MySQL client libraries.
Normaly i use cactid with the native MySQL binary.
Will there be a Windows spine binary out anytime soon?
I don't like compiling/running net-snmp and MySQL-client in cygwin, when i have the native binaries also installed.
Edit, i'm using:
(Windows 2003 SP1, with cygwin 1.5.24.
and libmysqlclient.la to libmysqlclient_r.la.
TheWitness: I've configured an installed MySQL just as mentioned here: http://www.cacti.net/spine_install_wincyg.php, but is does not install the thread safe version of MySQL client libraries.
Normaly i use cactid with the native MySQL binary.
Will there be a Windows spine binary out anytime soon?
I don't like compiling/running net-snmp and MySQL-client in cygwin, when i have the native binaries also installed.
Edit, i'm using:
Code: Select all
$ uname -a
CYGWIN_NT-5.2 srvman 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin
Last edited by YoMarK on Thu Oct 25, 2007 6:08 am, edited 4 times in total.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: 0001048: Spine - wrong libtool symlinks on FreeBSD 6.1
Also, once you have libtool,tinging wrote:Marcelo wrote:By default, spine look for this files in /usr/share/libtool/ directory:
config.guess
configu.sub
ltmain.sh
The correct directory is /usr/local/share/libtool/
--
Workaround:
Just point the symlinks to the correct directory
Greetings,
PS: http://bugs.cacti.net/view.php?id=1048
you must install libtool.i think it's.
Code: Select all
yum -y install libtool
Code: Select all
libtoolize --force
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Post the output of your "./configure" command please. I will accomodate in the build script.dagonet wrote:Hi,TheWitness wrote: Doing very little research, try this instead. Let me know how it goes:
TheWitnessCode: Select all
#if HAVE_NETINET_IN_H #include <arpa/inet.h> #include <netinet/in_systm.h> #include <netinet/ip.h> #include <netinet/in.h> #include <netinet/ip_icmp.h> #endif
I still get this error. I checked ping.c. Obviously the problem is icmphdr struct in line 264. I checked the corresponding header ip_icmp.h. There the icmphdr struct does not have an members like type, code, un.echo.id. But the one in ping.h has. So finaly I removed ip_icmp.h from the common.h file. Tweaked a little in ping.h and bingo! Spine compiled at last.
I have no idea if it is working right now. Just the compile run went through.
Dagonet
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Who is online
Users browsing this forum: No registered users and 1 guest