spine compile issue (RHEL2.1)

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

Moderators: Developers, Moderators

Post Reply
pgrishkov
Posts: 2
Joined: Tue Nov 17, 2009 5:26 am

spine compile issue (RHEL2.1)

Post by pgrishkov »

Hi all,

I've got an error when running ./bootstrap script on RHEL2.1AS for cacti-spine-0.8.7e (incl. latest patches):

#./bootstrap
INFO: Starting Spine build process
INFO: Removing cache directories
INFO: Setting permissions
INFO: Running auto-tools to verify buildability
Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL'
You should update your `aclocal.m4' by running aclocal.
/usr/bin/m4: configure.in: No such file or directory
automake: configure.ac: installing `config/mkinstalldirs'
autoconf: configure.in: No such file or directory
ERROR: 'autoconf' exited with errors

May be the versions are too old? Any thoughts?

Autoconf version 2.13
automake (GNU automake) 1.4-p5
aclocal (GNU automake) 1.4-p5
libtoolize (GNU libtool) 1.4

The same result when running them manually:
#aclocal
#libtoolize --force
Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL'
You should update your `aclocal.m4' by running aclocal.
#autoheader
/usr/bin/m4: configure.in: No such file or directory
#autoconf
autoconf: configure.in: No such file or directory
#automake
#

Thanks!

best regards,
Pavel
pgrishkov
Posts: 2
Joined: Tue Nov 17, 2009 5:26 am

Post by pgrishkov »

Just solved the issue by installing autoconf-2.53:

#make
gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/include/ucd-snmp -I/usr/include/ucd-snmp/.. -I/usr/include/mysql -g -O2 -c sql.c
sql.c: In function `db_connect':
sql.c:189: parse error before `reconnect'
sql.c:190: `MYSQL_OPT_RECONNECT' undeclared (first use in this function)
sql.c:190: (Each undeclared identifier is reported only once
sql.c:190: for each function it appears in.)
sql.c:190: `reconnect' undeclared (first use in this function)
make: *** [sql.o] Error 1

installed MySQL and UCD-SNMP versions are:
mysql-devel-3.23.58-1.72.1
ucd-snmp-cmaX-4.2.5-266
ucd-snmp-cmaX-devel-4.2.5-266
ucd-snmp-cmaX-utils-4.2.5-266

Looks very similar to http://bugs.cacti.net/view.php?id=1563 because it won't appear until mysql_client_reconnect.patch is aplied

However, no success yet: without the MySQL patch the error is different:

#make
gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/include/ucd-snmp -I/usr/include/ucd-snmp/.. -I/usr/include/mysql -g -O2 -c sql.c
gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/include/ucd-snmp -I/usr/include/ucd-snmp/.. -I/usr/include/mysql -g -O2 -c spine.c
gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/include/ucd-snmp -I/usr/include/ucd-snmp/.. -I/usr/include/mysql -g -O2 -c util.c
util.c: In function `strncopy':
util.c:930: parse error before `len'
util.c:932: `len' undeclared (first use in this function)
util.c:932: (Each undeclared identifier is reported only once
util.c:932: for each function it appears in.)
make: *** [util.o] Error 1
Post Reply

Who is online

Users browsing this forum: manuelx89 and 5 guests