Spine Compile Issues Here

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

Moderators: Developers, Moderators

Post Reply
dagonet
Cacti User
Posts: 90
Joined: Sat Oct 29, 2005 4:05 pm
Location: Wuerzburg

Post by dagonet »

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
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
Doing very little research, try this instead. Let me know how it goes:

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
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?
super-hornet
Cacti User
Posts: 175
Joined: Sun May 27, 2007 5:42 pm

Post by super-hornet »

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
jacauc
Posts: 34
Joined: Sun Sep 10, 2006 1:05 am

Post by jacauc »

rony wrote:
cd wrote:The download link for Spine (windows) appears to be broken.
Looks broken, yes, but it's not, Spine Binaries should be released later today.
Where can I get this binaries? The link is still broken.
dagonet
Cacti User
Posts: 90
Joined: Sat Oct 29, 2005 4:05 pm
Location: Wuerzburg

Post by dagonet »

TheWitness wrote: Doing very little research, try this instead. Let me know how it goes:

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
TheWitness
Hi,
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
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

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...
[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]
super-hornet
Cacti User
Posts: 175
Joined: Sun May 27, 2007 5:42 pm

Post by super-hornet »

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
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

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)
[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]
super-hornet
Cacti User
Posts: 175
Joined: Sun May 27, 2007 5:42 pm

Post by super-hornet »

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
YoMarK
Cacti User
Posts: 89
Joined: Fri Feb 02, 2007 8:36 am
Location: Eindhoven/The Netherlands

Post by YoMarK »

I get the "MySQL libraries not found" error when ./configure-ing spine(In windows 2003/cygwin).

Code: Select all

checking for mysql_init in -lmysqlclient_r... no
configure: error: MySQL libraries not found
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:

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
Libraries MySQL(don't know if that are the correct files though):

Code: Select all

administrator@srvman /usr/local/lib/mysql
$ ls
libmysqlclient.a  libmysqlclient.la  libmystrings.a  libmysys.a

administrator@srvman /usr/local/lib/mysql
$
I've even tried to specify the MySQL library path and binary(same problem):

Code: Select all

./configure --with-mysql=/usr/local/bin/mysql --with-mysql-lib=/usr/local/lib/mysql/
Any ideas?
Thanks!
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

YoMarK wrote:I get the "MySQL libraries not found" error when ./configure-ing spine(In windows 2003/cygwin).

Code: Select all

checking for mysql_init in -lmysqlclient_r... no
configure: error: MySQL libraries not found
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:

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
Libraries MySQL(don't know if that are the correct files though):

Code: Select all

administrator@srvman /usr/local/lib/mysql
$ ls
libmysqlclient.a  libmysqlclient.la  libmystrings.a  libmysys.a

administrator@srvman /usr/local/lib/mysql
$
I've even tried to specify the MySQL library path and binary(same problem):

Code: Select all

./configure --with-mysql=/usr/local/bin/mysql --with-mysql-lib=/usr/local/lib/mysql/
Any ideas?
Thanks!
YoMark,

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?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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.

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?
YoMarK
Cacti User
Posts: 89
Joined: Fri Feb 02, 2007 8:36 am
Location: Eindhoven/The Netherlands

Post by YoMarK »

"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:

Code: Select all

$ uname -a
CYGWIN_NT-5.2 srvman 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin
(Windows 2003 SP1, with cygwin 1.5.24.
Last edited by YoMarK on Thu Oct 25, 2007 6:08 am, edited 4 times in total.
User avatar
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

Post by TheWitness »

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
Also, once you have libtool,

Code: Select all

libtoolize --force
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?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

dagonet wrote:
TheWitness wrote: Doing very little research, try this instead. Let me know how it goes:

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
TheWitness
Hi,
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
Post the output of your "./configure" command please. I will accomodate in the build script.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest