-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Undefined references inside lib/odbc/c_src with libei development files installed #8244
Comments
I can confirm this issue. Here is a build log. |
This seems to be a name clash issue. I am not really sure what is the best way to solve it. Maybe it would be to use a absolute path somehow for odbc to find the OTP ei-libary. A PR would be welcome. |
find-internal-libei-before-system-libei.patch.txt I am not sure this is the proper way to handle but applying this patch makes the compilation succeed for me.
instead of:
|
I cannot access the patch so I include it here:
|
It seems from the documentation that when multiple https://www.linuxtopia.org/online_books/an_introduction_to_gcc/gccintro_24.html |
@zazaho You suggestion is much apricated, we would be even more happy if you cold provide it as a pull request, it would make possible inclusion much more efficient. |
Describe the bug
This is more a warning than a bug. I tried compiling a recent version of erlang (26.2.3) on my linux (fedora) machine and it failed with several undefined references to ei_* when linking odbcserver.
I inspected what happened and it seems the linker is picking up libei.so from https://gitlab.freedesktop.org/libinput/libei when installed.
I think the latter in not yet widely used but given that is part of the wayland stack, we could anticipate this to happen more often.
To Reproduce
Compile while having libei development files installed.
Expected behavior
Compilation succeeds
Affected versions
I tested with 26.2.2 and 26.2.3
Additional context
I am not completely sure about the fix. Removing libei from my machine solves the issues. Also removing
-L/usr/lib64
prior to-lodbc
in the linker command make linking succeed.The text was updated successfully, but these errors were encountered: