-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Shared library is disabled when undefined versions produce errors #960
Comments
Seeing the same issue when cross-compiling with clang 17.x. Below is snippet from configure.log. Can you update the test or version script to resolve this issue?
|
13 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To check whether shared libraries are supported, the configure script tries to compile a test file. On Linux, GNU, Solaris, and BSD, this test file will be compiled with the version script. On some linkers, this produces an error, because that test file does not produce the symbols expected by the version script:
On other linkers, the undefined versions are just warnings, so compilation succeeds and the static library is built.
An easy way to reproduce this error if you don't have a linker that defaults to an error here is to run configure with
CC='clang -Wl,--no-undefined-version
.To fix this, the test file probably needs to be compiled without the version script, or with
-Wl,--undefined-version
or-Wl,--noinhibit-exec
.The text was updated successfully, but these errors were encountered: