Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./configure gets version mismatch if lpeg and lua are different versions #1231

Open
Nomarian opened this issue Feb 1, 2025 · 3 comments
Open

Comments

@Nomarian
Copy link
Contributor

Nomarian commented Feb 1, 2025

Problem

./configure tries to guess the latest versions of lua and lpeg, but if latest lua is 5.4 and lpeg is for 5.3 you get a version mismatch with the error message and a failure in running vis itself.

for now the fix is going into config.mk and modifying the file by hand and setting equal versions

Steps to reproduce

./configure and your lpeg is not the same as your lua version.

vis version (vis -v)

0.9

Terminal name/version

No response

$TERM environment variable

No response

@mcepl
Copy link
Contributor

mcepl commented Feb 1, 2025 via email

@Nomarian
Copy link
Contributor Author

Nomarian commented Feb 1, 2025

I don't think so, the error message of "version mismatch" is not set anywhere in vis itself (rudimentary search via rg), so this might be an error message of lua/lpeg itself?

Frankly, I don't know why lpeg is even a build requirement, the lexers is entirely handled by a lua script no?

@mcepl
Copy link
Contributor

mcepl commented Feb 6, 2025

Frankly, I don't know why lpeg is even a build requirement, the lexers is entirely handled by a lua script no?

LPEG is not a building requirement: vis can work (in limited capacity) without it, and liblpeg is not dynamically linked to the vis binary.

We are talking about the configure option --enable-lpeg-static (build with LPeg static linking), which obviously requires lpeg to link it statically in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants