cactid compile error

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

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

Post by TheWitness »

Code: Select all

autoconf;./configure;make clean;make install
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?
jkstraw
Posts: 34
Joined: Tue Aug 01, 2006 10:24 am
Contact:

Post by jkstraw »

Results:

Code: Select all

root# autoconf;./configure;make clean;make install
configure: error: cannot run /bin/sh config/config.sub
make: *** No rule to make target `clean'.  Stop.
make: *** No rule to make target `install'.  Stop.
Listing of the directory contents (taken from BRANCH_0_8_6):

Code: Select all

-rw-r--r--   1 root root  31691 Jul  4 08:31 aclocal.m4
-rw-r--r--   1 root root      0 Jul  4 08:31 AUTHORS
-rw-r--r--   1 root root     97 Jul  4 08:31 bootstrap
drwxr-xr-x   4 root root   4096 Jul  4 08:42 cactid
-rw-r--r--   1 root root  21632 Jul  4 08:31 cactid.c
-rw-r--r--   1 root root   2494 Jul  4 08:31 cactid.conf.dist
-rw-r--r--   1 root root  14614 Jul  4 08:31 cactid.h
-rw-r--r--   1 root root 468827 Jul  6 09:07 cactid.zip
-rw-r--r--   1 root root   8384 Jul  4 08:31 ChangeLog
-rw-r--r--   1 root root   3862 Jul  4 08:31 common.h
drwxr-xr-x   3 root root   4096 Jul  6 11:03 config
-rw-r--r--   1 root root   8322 Jul  6 09:08 configure.ac
-rw-r--r--   1 root root  18332 Jul  4 08:31 COPYING
-rw-r--r--   1 root root   4934 Jul  4 08:31 error.c
-rw-r--r--   1 root root   2339 Jul  4 08:31 error.h
-rw-r--r--   1 root root    802 Jul  4 08:31 INSTALL
-rw-r--r--   1 root root   6754 Jul  4 08:31 keywords.c
-rw-r--r--   1 root root   2554 Jul  4 08:31 keywords.h
-rw-r--r--   1 root root   2270 Jul  4 08:31 LICENSE
-rw-r--r--   1 root root  26944 Jul  4 08:31 LICENSE.LGPL
-rw-r--r--   1 root root   7400 Jul  4 08:31 locks.c
-rw-r--r--   1 root root   2528 Jul  4 08:31 locks.h
-rw-r--r--   1 root root    259 Jul  4 08:31 Makefile.am
-rw-r--r--   1 root root  15351 Jul  4 08:31 Makefile.in
-rw-r--r--   1 root root      0 Jul  4 08:31 NEWS
-rw-r--r--   1 root root  11009 Jul  4 08:31 nft_popen.c
-rw-r--r--   1 root root   2553 Jul  4 08:31 nft_popen.h
-rw-r--r--   1 root root  16543 Jul  4 08:31 php.c
-rw-r--r--   1 root root   2497 Jul  4 08:31 php.h
-rw-r--r--   1 root root  25585 Jul  4 08:31 ping.c
-rw-r--r--   1 root root   2825 Jul  4 08:31 ping.h
-rw-r--r--   1 root root  41729 Jul  4 08:31 poller.c
-rw-r--r--   1 root root   2446 Jul  4 08:31 poller.h
-rw-r--r--   1 root root    350 Jul  4 08:31 README
-rw-r--r--   1 root root    943 Jul  4 08:31 README-WINDOWS
-rw-r--r--   1 root root  17629 Jul  4 08:31 snmp.c
-rw-r--r--   1 root root   2790 Jul  4 08:31 snmp.h
-rw-r--r--   1 root root   8211 Jul  4 08:31 sql.c
-rw-r--r--   1 root root   2558 Jul  4 08:31 sql.h
-rw-r--r--   1 root root  27642 Jul  4 08:31 util.c
-rw-r--r--   1 root root   3496 Jul  4 08:31 util.h
I looked at the following post regarding this error: http://forums.cacti.net/about15014.html
However I did not find any ^M instances in the files.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Sorry, you need to run the following:

cd /usr/src/cactid
dos2unix *.h *.c
cd config
dos2unix *

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?
jkstraw
Posts: 34
Joined: Tue Aug 01, 2006 10:24 am
Contact:

Post by jkstraw »

Here are the results - from a fresh copy of the BRANCH_0_8_6

Code: Select all

[root@server]# vi configure.ac

<snip>
#  MYSQL_LIB_CHK($i/lib)
  MYSQL_LIB_CHK($i/lib64)
#  MYSQL_LIB_CHK($i/lib/mysql)
  MYSQL_LIB_CHK($i/lib64/mysql)
<snip>
Then the dos2unix

Code: Select all

[root@server]# dos2unix *.h *.c
dos2unix: converting file cactid.h to UNIX format ...
dos2unix: converting file common.h to UNIX format ...
dos2unix: converting file error.h to UNIX format ...
dos2unix: converting file keywords.h to UNIX format ...
dos2unix: converting file locks.h to UNIX format ...
dos2unix: converting file nft_popen.h to UNIX format ...
dos2unix: converting file php.h to UNIX format ...
dos2unix: converting file ping.h to UNIX format ...
dos2unix: converting file poller.h to UNIX format ...
dos2unix: converting file snmp.h to UNIX format ...
dos2unix: converting file sql.h to UNIX format ...
dos2unix: converting file util.h to UNIX format ...
dos2unix: converting file cactid.c to UNIX format ...
dos2unix: converting file error.c to UNIX format ...
dos2unix: converting file keywords.c to UNIX format ...
dos2unix: converting file locks.c to UNIX format ...
dos2unix: converting file nft_popen.c to UNIX format ...
dos2unix: converting file php.c to UNIX format ...
dos2unix: converting file ping.c to UNIX format ...
dos2unix: converting file poller.c to UNIX format ...
dos2unix: converting file snmp.c to UNIX format ...
dos2unix: converting file sql.c to UNIX format ...
dos2unix: converting file util.c to UNIX format ...
[root@server]# cd config
[root@server]# dos2unix *
dos2unix: converting file config.guess to UNIX format ...
dos2unix: converting file config.h.in to UNIX format ...
dos2unix: converting file config.sub to UNIX format ...
dos2unix: converting file depcomp to UNIX format ...
dos2unix: converting file install-sh to UNIX format ...
dos2unix: converting file missing to UNIX format ...
dos2unix: converting file mkinstalldirs to UNIX format ...
dos2unix: converting file stamp-h to UNIX format ...
dos2unix: converting file stamp-h.in to UNIX format ...
[root@server]# cd ..
I have attached the output from the autoconf;./configure;make clean;make install

But here is the failure:

Code: Select all

config.status: executing depfiles commands
Makefile:204: .deps/cactid.Po: No such file or directory
Makefile:205: .deps/keywords.Po: No such file or directory
Makefile:206: .deps/locks.Po: No such file or directory
Makefile:207: .deps/nft_popen.Po: No such file or directory
Makefile:208: .deps/php.Po: No such file or directory
Makefile:209: .deps/ping.Po: No such file or directory
Makefile:210: .deps/poller.Po: No such file or directory
Makefile:211: .deps/snmp.Po: No such file or directory
Makefile:212: .deps/sql.Po: No such file or directory
Makefile:213: .deps/util.Po: No such file or directory
make: *** No rule to make target `.deps/util.Po'.  Stop.
Makefile:204: .deps/cactid.Po: No such file or directory
Makefile:205: .deps/keywords.Po: No such file or directory
Makefile:206: .deps/locks.Po: No such file or directory
Makefile:207: .deps/nft_popen.Po: No such file or directory
Makefile:208: .deps/php.Po: No such file or directory
Makefile:209: .deps/ping.Po: No such file or directory
Makefile:210: .deps/poller.Po: No such file or directory
Makefile:211: .deps/snmp.Po: No such file or directory
Makefile:212: .deps/sql.Po: No such file or directory
Makefile:213: .deps/util.Po: No such file or directory
make: *** No rule to make target `.deps/util.Po'.  Stop.
Attachments
cactid_2.txt
(5.45 KiB) Downloaded 166 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Try this then:

Code: Select all

aclocal
autoheader
automake
autoconf
./configure
make
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?
jkstraw
Posts: 34
Joined: Tue Aug 01, 2006 10:24 am
Contact:

Post by jkstraw »

Well TheWitness I have to hand it to you! Looks like things compiled perfectly and I have graphs being updated via the cactid poller we worked on! Thank you very much for the your patience and hard work - you are certainly a great asset to this community. Kudos to you.

Here is the final run through I used to get things working:

1. Use the BRANCH_0_8_6 build


2. Edit the configure.ac file

Code: Select all

[root@server]# vi configure.ac

<snip>
#  MYSQL_LIB_CHK($i/lib)
  MYSQL_LIB_CHK($i/lib64)
#  MYSQL_LIB_CHK($i/lib/mysql)
  MYSQL_LIB_CHK($i/lib64/mysql)
<snip> 
3. Run dos2unix

Code: Select all

[root@server]# dos2unix *.h *.c
...
[root@server]# cd config
[root@server]# dos2unix *
...
4. Delete the cactid sub-directory that comes in the BRANCH_0_8_6 root

Code: Select all

[root@server]#rm  -Rf cactid
5. Create, compile, make, install

Code: Select all

[root@server]#aclocal
[root@server]#autoheader
[root@server]#automake
[root@server]#autoconf
[root@server]#./configure
[root@server]#make 
[root@server]#make install
6. Edit the /etc/cactid.conf file

7. Update the poller to cactid in the Setting of Cacti Web GUI

From exiting after 292 seconds to a complete run in 26 seconds!! Nice!!

Thanks again TheWitness! Awesome work!

Notes for TheWitness:
- Step 4. During the "make" it threw an error because this directory existed. I removed it as I didn't see it referenced anywhere.

Code: Select all

<snip>
if gcc -DHAVE_CONFIG_H -I. -I. -I./config     -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT error.o -MD -MP -MF ".deps/error.Tpo" -c -o error.o error.c; \
then mv -f ".deps/error.Tpo" ".deps/error.Po"; else rm -f ".deps/error.Tpo"; exit 1; fi
rm: cannot remove `cactid': Is a directory
make: *** [cactid] Error 1
-Step 5. Looks like an error. I just ignored it and moved on. This was present in the build that was successful. Just an fyi.

Code: Select all

[root@server]# aclocal
/usr/share/aclocal/libgcrypt.m4:23: warning: underquoted definition of AM_PATH_LIBGCRYPT
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/ao.m4:9: warning: underquoted definition of XIPH_PATH_AO
thomasammon
Posts: 4
Joined: Tue Jul 10, 2007 2:17 pm

Post by thomasammon »

Is there a 64-bit package available for cactid yet? I know these issues were just spotted a little while ago. I am trying to get cactid running on a 64 bit system and wanted to make sure that a 64 bit package wasn't available before I tried to retrace the steps that are defined above to try to make it work for me.

Is there a timeline for when a 64bit version will be available?
thomasammon
Posts: 4
Joined: Tue Jul 10, 2007 2:17 pm

Post by thomasammon »

I just finished getting cactid compiled, and jkstraws instructions worked fine for me. One thing I didn't do, however, was delete the cactid directory that was referred to. I'm guessing that it was removed from the branch before I checked it out.

jkstraw, thanks for taking the time to summarize what you did to get it to work- I was able to make it work in just a couple of minutes. Without your summary, I would have had to retrace your steps from the forum.

Thanks again,

Tom
jkstraw
Posts: 34
Joined: Tue Aug 01, 2006 10:24 am
Contact:

Post by jkstraw »

Great I was hoping someone would find that useful - all props to TheWitness for walking me through each step.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests