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

Missing link library tinfo on arm64 #32

Open
leetonidas opened this issue Apr 5, 2024 · 1 comment · May be fixed by #33
Open

Missing link library tinfo on arm64 #32

leetonidas opened this issue Apr 5, 2024 · 1 comment · May be fixed by #33

Comments

@leetonidas
Copy link

I crosscompiled to arm64 debian bookworm and came across a linker error:
ld.lld: error: undefined symbol: tputs

some other symbols were missing as well. Adding tinfo as a target link libarary fixes these compile errors.

I added target_link_libraries(lua PUBLIC tinfo) just below target_link_libraries(lua PUBLIC readline).

I can create a pull request if you prefer it that way.

@walterschell
Copy link
Owner

Thank you for the feedback! Go ahead and create the PR so the CI can run on it

@leetonidas leetonidas linked a pull request Apr 26, 2024 that will close this issue
leetonidas added a commit to leetonidas/Lua that referenced this issue Apr 27, 2024
- switched from CHECK_INCLUDE_FILE to CHECK_LIBRARY_EXISTS
	fixes detection issue of readline on archlinux due to
	missing imports (unknown type FILE)
- discovering tinfo using CHECK_LIBRARY_EXISTS
	the result is used in the discovery of readline as the same
	error as discussed in walterschell#32 prevented the
	detection of readline
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

Successfully merging a pull request may close this issue.

2 participants