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
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

pestilence wrote: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.
This worked for me on CactiEZ 2b server (CentOs 4.5 final)
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
zentigger
Posts: 5
Joined: Tue Feb 05, 2002 7:00 pm

I too could use that fix!

Post by zentigger »

TheWitness wrote:It's actually a ip_icmp.h structure formatting issue. It's troubling, but I might just have the fix.

TheWitness
zadrim
Posts: 2
Joined: Thu Nov 08, 2007 6:28 pm
Contact:

Spine, cactiid under freebsd6.2

Post by zadrim »

Spine and cactiid cannot be compiled under Freebsd 6.2
at ./configure I get for both spine and cactiid.

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

kindly help with a fix on this.
znapel
Posts: 9
Joined: Fri Nov 09, 2007 3:50 am

Same problem, Solaris 9

Post by znapel »

I'm in the same boat as many others. After squashing 3-4 other problems I now am left with the ip.h and ip_icmp.h issues... If I comment them out of the config the configure completes, but I would like a real fix. Besides, the actual compilation fails, though I am unsure if its related.

Many people seem eager for a fix...

Znapel
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Edit configure.ac line 99 and then change to:

Code: Select all

AC_CHECK_HEADERS(sys/types.h netinet/in.h netinet/in_systm.h netinet/ip.h netinet/ip_icmp.h)
Let me know how it goes. Don't have FreeBSD.

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?
zadrim
Posts: 2
Joined: Thu Nov 08, 2007 6:28 pm
Contact:

Post by zadrim »

i think it's the same:
line 99
#AC_CHECK_HEADERS(netinet/in.h netinet/ip.h netinet/ip_icmp.h)
AC_CHECK_HEADERS(sys/types.h netinet/in.h netinet/in_systm.h netinet/ip.h netinet/ip_icmp.h)

at configure:
...
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: ## ------------------------------------ ##
...

at make:
checking for snmp_timeout in -lnetsnmp... yes
checking whether we are using nifty popen... no
configure: creating ./config.status
/usr/local/bin/bash ./config.status
config.status: creating Makefile
config.status: creating config/config.h
config.status: config/config.h is unchanged
config.status: executing depfiles commands
if gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -g -O2 -MT sql.o -MD -MP -MF ".deps/sql.Tpo" -c -o sql.o sql.c; then mv -f ".deps/sql.Tpo" ".deps/sql.Po"; else rm -f ".deps/sql.Tpo"; exit 1; fi
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

Stop in /usr/local/share/cacti/cacti-spine-0.8.7.
[root@FIRE /usr/local/share/cacti/cacti-spine-0.8.7]#
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yea, doing some research. It would appear that freebsd has some idiosyncrasies associated with the netinet headers. I will look at this further later sometime this weekend. Even go so far as to install FreeBSD on a VM.

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?
znapel
Posts: 9
Joined: Fri Nov 09, 2007 3:50 am

Still fails...

Post by znapel »

Interesting.... I am having a similar failure, but my output is different from zadrim's... Probably Solaris 9 vs FreeBSD

ping.c: In function `ping_icmp':
ping.c:266: error: dereferencing pointer to incomplete type
ping.c:267: error: dereferencing pointer to incomplete type
ping.c:268: error: dereferencing pointer to incomplete type
ping.c:272: error: dereferencing pointer to incomplete type
ping.c:275: error: invalid use of undefined type `struct icmphdr'
ping.c:279: error: dereferencing pointer to incomplete type
ping.c:281: error: dereferencing pointer to incomplete type
ping.c:336: error: dereferencing pointer to incomplete type
ping.c:339: error: dereferencing pointer to incomplete type
ping.c:339: error: `ICMP_ECHOREPLY' undeclared (first use in this function)
ping.c:339: error: (Each undeclared identifier is reported only once
ping.c:339: error: for each function it appears in.)
make: *** [ping.o] Error 1

This is after I had commented out the ip.h and ip_icmp.h checks...

Znapel
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

All monitoring this post. Please try the SVN copy of Spine 0.8.7 and provide feedback. I think I have it nailed.

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?
znapel
Posts: 9
Joined: Fri Nov 09, 2007 3:50 am

Post by znapel »

I tried tonight, same as before....

checking netinet/in_systm.h usability... yes
checking netinet/in_systm.h presence... yes
checking for netinet/in_systm.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/ip.h usability... no
checking netinet/ip.h presence... yes
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: ## ------------------------------------ ##
checking for netinet/ip_icmp.h... yes

I've not used SVN before, but I downloaded new copies of ping.h, configure.ac, ping.c, common.h via the subversion site. I ran autoconf, and the above messages appeared when I ran configure. Solaris 9 box...
dagonet
Cacti User
Posts: 90
Joined: Sat Oct 29, 2005 4:05 pm
Location: Wuerzburg

Post by dagonet »

TheWitness wrote:All monitoring this post. Please try the SVN copy of Spine 0.8.7 and provide feedback. I think I have it nailed.

TheWitness
Hello,
how do I checkout the svn version of spine?
If I do a "marcus@ollowain:~/cacti/svn->svn checkout svn://svn.cacti.net/var/svnroot/spine"
I get this error:
"svn: No repository found in 'svn://svn.cacti.net/var/svnroot/spine'"

Regards
Dagonet
znapel
Posts: 9
Joined: Fri Nov 09, 2007 3:50 am

Wait,no, it worked...

Post by znapel »

Let me backtrack... When I run configure, I do indeed still get the errors in the ip.h and ip_icmp.h files, however I just tried running make anyways. Spine compiled all of the way through. I'm hesitant to leave it running as my primary poller because it's so bleeding edge, but I did run it a couple of times and it seemed to work....

Znapel
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The Warning messages can be ignored in this case. It is an autoconf option that is not relevant as we are searching for only the presence of the headers.

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?
znapel
Posts: 9
Joined: Fri Nov 09, 2007 3:50 am

Post by znapel »

Well I thank you for your work this weekend TheWitness... I will likely soon be using Spine, after I have a chance to kick it around the block.
zentigger
Posts: 5
Joined: Tue Feb 05, 2002 7:00 pm

New ping.*

Post by zentigger »

Well, I can build now using the new ping.h and ping.c. The poller runs, but doesn't seem to be working completely. It is also timing out--the php poller came close, but could usually squeeze in under 5 min...

Unfortunately other projects are screaming for my attention right now, so I will have to slide this to the back burner for now. If I have a chance, I will post more details...
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests