PerseusDL / morpheus

Morpheus parser
26 stars 24 forks source link

some fixes for further bitrot #24

Open bcrowell opened 7 months ago

bcrowell commented 7 months ago

a.txt As of a few years ago, the default for gcc became -fno-common. This causes the code no longer to compile. To fix this, I added the following to the main makefile:

export MORE_CFLAGS := -fcommon -Wno-implicit-int -Wno-format-overflow -Wno-implicit-function-declaration \ -Wno-return-type -Wno-format -Wno-builtin-declaration-mismatch

Then I edited each of the makefiles like this:

CFLAGS= -O2 -I${INCLUDE} ${MORE_CFLAGS}

I've attached a patch file.

Other linux users will also probably find, like me, that -lfl doesn't work unless you install a special package. For me, on linux mint, although I already had the flex package installed, it turned out that I also needed to install libfl-dev or else -lfl wouldn't work.

This still does not fix the problem with the missing ending files in stemlib/Latin and stemlib/Greek, as described here by Lutetiensis: https://github.com/PerseusDL/morpheus/issues/23