Hi folks,
I'm playing around with getting 3.6.7 to compile on my server that I current run 3.3.720 on (yes, huge leap) just to see what's amiss with my system, what needs upgrading, etc.
The first error I cam across was with gnu99 mode in my gcc, which was fixed by adding -std=gnu99 to my Makefile to CFLAGS. (using gcc 4.8.5, probably need to update that)
The current problem, which I don't see an easy fix for, is bison. Using version 3.0.4 on CentOS 7.9.2009 x64:
rm -f lang.y
./mkfunc lang
bison --defines=lang.h -o lang.c lang.y
lang.y:2.9-25: error: %define variable 'api.location.type' is not used
%define api.location.type {code_location_t}
^^^^^^^^^^^^^^^^^
make: *** [lang.h] Error 1
The first 10 lines of lang.y:
%define lr.type ielr
%define api.location.type {code_location_t}
%{
/* DO NOT EDIT!
*
* This file is created automatically by make_func from
* the template prolang.y according to the specs in func_spec.
*/
Just deleting the line that defines api.location.type leads to other errors, which I figured, but thought I would try.
Any ideas? configure and make output attached. I'm sure this will boil down to something being outdated, but I'm trying to be careful what I upgrade to just be the minimum because this server runs other production code. So if I can narrow down exactly the culprit, so much the better!
Thanks,
Malc