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
User avatar
pestilence
Cacti User
Posts: 207
Joined: Fri Jul 25, 2003 10:37 am
Location: Athens/Greece
Contact:

Post by pestilence »

Spine problems here:

Code: Select all

configure: error:

*** [Gentoo] sanity check failed! ***
*** libtool.m4 and ltmain.sh have a version mismatch! ***
*** (libtool.m4 = 1.5.22, ltmain.sh = "1.5.22 Debian 1.5.22-4") ***
Thats when I run:

Code: Select all

./configure
for spine.
/* * Oops. The kernel tried to access some bad page. We'll have to * terminate things with extreme prejudice. */ die_if_kernel("Oops", regs, error_code);
User avatar
pestilence
Cacti User
Posts: 207
Joined: Fri Jul 25, 2003 10:37 am
Location: Athens/Greece
Contact:

Post by pestilence »

Ok I was able to temporary compile it by changing the version inside the ltmain.sh script.
/* * Oops. The kernel tried to access some bad page. We'll have to * terminate things with extreme prejudice. */ die_if_kernel("Oops", regs, error_code);
YoMarK
Cacti User
Posts: 89
Joined: Fri Feb 02, 2007 8:36 am
Location: Eindhoven/The Netherlands

Post by YoMarK »

Had the same problem(Windows 2003 - cygwin).
Solved it with "autoreconf --install --force".
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

I just did an upgrade from 0.8.6j to 0.8.7 on my test server, and it defaulted to No Auth, rather than Built-in, even though Built-in was the previous choice.

Easy to fix, obviously, but something not right?
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
dagonet
Cacti User
Posts: 90
Joined: Sat Oct 29, 2005 4:05 pm
Location: Wuerzburg

FreeBSD spine compile issue

Post by dagonet »

Hello community!
i have come over some compile issue with spine:
1. the links in the config directory should direct
to /usr/local/share/libtool/, at least on my box. Nevertheless on other
FreeBSD boxes it should be the same path.

2. after a successful configure run I got this compile error:
arcus@ollowain:~/cacti/cacti-spine-0.8.7->make
if gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/mysql/ini
In file included from common.h:86,
from sql.c:34:
/usr/include/netinet/ip_icmp.h:71: error: syntax error before "n_short"
/usr/include/netinet/ip_icmp.h:78: error: syntax error before "n_short"
/usr/include/netinet/ip_icmp.h:100: error: syntax error before "n_time"
/usr/include/netinet/ip_icmp.h:105: error: field `idi_ip' has incomplete type
*** Error code 1


Greetings
dagonet
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

pestilence wrote:Ok I was able to temporary compile it by changing the version inside the ltmain.sh script.
Run the following:

Code: Select all

aclocal
libtoolize --force
autoconf
autoheader
automake
./configure
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?
Marcelo
Posts: 48
Joined: Tue May 02, 2006 4:46 pm

0001048: Spine - wrong libtool symlinks on FreeBSD 6.1

Post by Marcelo »

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
Marcelo
Posts: 48
Joined: Tue May 02, 2006 4:46 pm

Spine compile error - FreeBSD 6.1

Post by Marcelo »

configure: WARNING: netinet/ip.h: present but cannot be compiled
configure: WARNING: netinet/ip.h: check for missing prerequisite headers?
configure: WARNING: netinet/ip.h: see the Autoconf documentation
configure: WARNING: netinet/ip.h: section "Present But Cannot Be Compiled"
configure: WARNING: netinet/ip.h: proceeding with the preprocessor's result
configure: WARNING: netinet/ip.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to http://bugs.cacti.net [^] ##
configure: WARNING: ## ------------------------------------ ##
checking for netinet/ip.h... yes
checking netinet/ip_icmp.h usability... no
checking netinet/ip_icmp.h presence... yes
configure: WARNING: netinet/ip_icmp.h: present but cannot be compiled
configure: WARNING: netinet/ip_icmp.h: check for missing prerequisite headers?
configure: WARNING: netinet/ip_icmp.h: see the Autoconf documentation
configure: WARNING: netinet/ip_icmp.h: section "Present But Cannot Be Compiled"
configure: WARNING: netinet/ip_icmp.h: proceeding with the preprocessor's result
configure: WARNING: netinet/ip_icmp.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to http://bugs.cacti.net [^] ##
configure: WARNING: ## ------------------------------------ ##


PS: http://bugs.cacti.net/view.php?id=1047
cd
Posts: 14
Joined: Fri Aug 17, 2007 8:41 am

Post by cd »

The download link for Spine (windows) appears to be broken.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Howie wrote:I just did an upgrade from 0.8.6j to 0.8.7 on my test server, and it defaulted to No Auth, rather than Built-in, even though Built-in was the previous choice.

Easy to fix, obviously, but something not right?
Um...

It will only default to "No Auth" if it can't figure things out.

Can you attach and export of your settings table to the bug that you added or will add?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
dagonet
Cacti User
Posts: 90
Joined: Sat Oct 29, 2005 4:05 pm
Location: Wuerzburg

Re: FreeBSD spine compile issue

Post by dagonet »

Hi,
did the change in common.h.
Now I get a different error message:
f gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/mysql/include/mysql -g -O2 -MT ping.o -MD -MP -MF ".deps/ping.Tpo" -c -o ping.o ping.c; then mv -f ".deps/ping.Tpo" ".deps/ping.Po"; else rm -f ".deps/ping.Tpo"; exit 1; fi
ping.c: In function `ping_icmp':
ping.c:266: error: structure has no member named `type'
ping.c:267: error: structure has no member named `code'
ping.c:268: error: structure has no member named `un'
ping.c:272: error: structure has no member named `un'
ping.c:279: error: structure has no member named `checksum'
ping.c:281: error: structure has no member named `checksum'
ping.c:336: error: dereferencing pointer to incomplete type
*** Error code 1

regards
dagonet
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

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.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
tinging
Posts: 15
Joined: Tue Apr 03, 2007 9:44 am

Re: 0001048: Spine - wrong libtool symlinks on FreeBSD 6.1

Post by tinging »

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
Marcelo
Posts: 48
Joined: Tue May 02, 2006 4:46 pm

Post by Marcelo »

Thanks...but libtool is correctly installed on my system, read the workaround ;)

cya.
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: FreeBSD spine compile issue

Post by TheWitness »

dagonet wrote:Hi,
did the change in common.h.
Now I get a different error message:
f gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/mysql/include/mysql -g -O2 -MT ping.o -MD -MP -MF ".deps/ping.Tpo" -c -o ping.o ping.c; then mv -f ".deps/ping.Tpo" ".deps/ping.Po"; else rm -f ".deps/ping.Tpo"; exit 1; fi
ping.c: In function `ping_icmp':
ping.c:266: error: structure has no member named `type'
ping.c:267: error: structure has no member named `code'
ping.c:268: error: structure has no member named `un'
ping.c:272: error: structure has no member named `un'
ping.c:279: error: structure has no member named `checksum'
ping.c:281: error: structure has no member named `checksum'
ping.c:336: error: dereferencing pointer to incomplete type
*** Error code 1

regards
dagonet
What is your OS Name version. Do a uname -a

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