jeffreykegler / libmarpa

Marpa parse engine C library -- STABLE
MIT License
97 stars 11 forks source link

MARPA_LINKAGE seems to break many installations #125

Closed jeffreykegler closed 1 year ago

jeffreykegler commented 1 year ago

@jddurand I brought the latest Libmarpa into Marpa::R2 developer's version and the MARPA_LINKAGE change seems to break things on a lot of systems. An example is in this log. Maybe I should back this change out. Suggestions?

jddurand commented 1 year ago

@jeffreykegler this is because the generated sources are missing extern keywords, i.e.:

const int marpa_major_version= 9; const int marpa_minor_version= 0; const int marpa_micro_version= 3;

jeffreykegler commented 1 year ago

@jddurand The change happens in one of your commits: https://github.com/jeffreykegler/libmarpa/commit/85001583fda9b4f90490ed5e131e1ddee84fa297.

Any suggestions what to do here? It's tempting to just back the whole thing out, as too high-risk. You did warn me that the change was experimental.

jddurand commented 1 year ago

I made a comment in this commit. This is experimental, sure, though IMHO if you look at a marpa.c generated with a marpa.w that takes into account my comment, and find that the only difference are those "extern" thingy, this ought to work.

Still, this remain experimental, as you said.

jeffreykegler commented 1 year ago

I think, regretfully, I will back this commit out. A CPANtesters release can take weeks or even months to go on obscure systems, making experiments of this kind a real problem. The cost-benefit ratio just doesn't work for this one. Sorry.

jeffreykegler commented 1 year ago

I did the back-out in commits https://github.com/jeffreykegler/libmarpa/commit/4d4bf0959cfb542b726cb8b3990f9d046e92393f, https://github.com/jeffreykegler/libmarpa/commit/d02ef9090be85fe7668c72e70a24b739fa3940b7, and https://github.com/jeffreykegler/libmarpa/commit/2ee0c21999714901a0d852943110baad65512454. Testing looks a lot better. I will wait a few days, and if the testing continues to look good, schedule this issue for closing.

jeffreykegler commented 1 year ago

Testing looks good. Absent feedback to the contrary, I will close this issue after a couple of days.

jeffreykegler commented 1 year ago

Closed per https://github.com/jeffreykegler/libmarpa/issues/125#issuecomment-1358115456.