LDMud 3.6.7 bison error

33 views
Skip to first unread message

Malcolm Tester

unread,
Aug 18, 2024, 6:08:59 PM8/18/24
to LDMud Talk
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
tmp_configure_output.txt
tmp_make_output.txt

Aloy

unread,
Aug 19, 2024, 12:37:53 PM8/19/24
to LDMud Talk
 hi,


i would upgrade to a supported current os. check, that all packages are installed, compile ldmud and migrate the mudlib. way better than hackfixing and messing aroung on this old os. do the migration now and not delay it to the future. delaying leads to more work in the future.


Aloy

Malcolm Tester

unread,
Aug 19, 2024, 8:10:26 PM8/19/24
to LDMud Talk
Obviously, that would be the easy answer. However, production environments don't always work that way, and that's not an option right now.

Zesstra

unread,
Aug 20, 2024, 2:57:13 AM8/20/24
to ldmud...@googlegroups.com
Dear Malcom,

this was also reported as an issue:
https://mantis.ldmud.eu/view.php?id=909

However, Gnomi already answered there, that api.location.type is supported
starting with Bison 3.4.
So I think, you need to update bison (maybe a copy local for the user or
generate at least the necessary files externally).

Good luck,
Zesstra

--
MorgenGrauen -
1 Welt, mehr als 200 Programmierer , mehr als 16000 Raeume,
viel mehr als 7000 unterschiedliche Figuren, 90 Quests, 13 Gilden,
ueber 5000 Waffen und Ruestungen, keine Umlaute und ein Haufen Verrueckter.
Existenz: mehr als 25 Jahre
http://mg.mud.de/

Malcolm Tester

unread,
Aug 22, 2024, 9:54:36 AM8/22/24
to LDMud Talk
Thanks Zesstra. Luckily, that was the only thing I needed to get it to finish building!
Malc

Reply all
Reply to author
Forward
0 new messages