Cacti / spine

Spine C Based Poller for Cacti
GNU Lesser General Public License v2.1
80 stars 45 forks source link

Failed build against MariaDB 10.6.4 #239

Closed dsclassen closed 2 years ago

dsclassen commented 2 years ago

Describe the bug make produces an error:

 make
gcc -DHAVE_CONFIG_H -I. -I./config     -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT sql.o -MD -MP -MF .deps/sql.Tpo -c -o sql.o sql.c
In file included from spine.h:602:0,
                 from sql.c:35:
locks.h:39:77: error: expected ‘;’, ‘,’ or ‘)’ before ‘abstime’
 extern int thread_cond_timedwait(int mutex, const struct timespec *restrict abstime);
                                                                             ^

To Reproduce Steps to reproduce the behavior:

  1. install MariaDB 10.6.4 from community repo
  2. attempt to build spine.
    cd /usr/local/src
    git clone https://github.com/Cacti/spine.git
    cd spine/
    sh bootstrap 
    ./configure
    make

Expected behavior I was hoping it would complete and produce a binary

Server (please complete the following information):

Compiling (please complete the following information):

netniV commented 2 years ago

This is an old issue that has already been resolved. Ensure you have the latest sources from the 1.2.x branch.

dsclassen commented 2 years ago

Aha... I had forgotten that I should be on the 1.2.x branch. That fixed it. Thanks.

netniV commented 2 years ago

Will get around to merging the latest changes into develop/master