-
Notifications
You must be signed in to change notification settings - Fork 35
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
Unable to create function after compiling library: Error: Can't find symbol 'levenshtein' in library #12
Comments
Okay, I figured it out - the suggested gcc line wasn't including the correct header files.
Score! |
@sdragnev thank you for the report and for the own solution! It will be helpful to other users; I highly appreciate your detailed documentation ! |
I am running in to the same issue. I ran the line I too am running Centos 7 and MariaDB 10.2 |
@PandyLegend two things:
|
Compiling was not generating levenshtein functions too. thank to your messages, i found why. |
It works for me too in Arch Linux as of today, just replacing |
Hi gcc -o levenshtein.so -shared levenshtein.c mysql_config --include after that when run CREATE FUNCTION levenshtein RETURNS INT SONAME 'levenshtein.so' Thanks In Advance |
I've tried all the options here and from the Internet, including all possible directories. Still have the error |
I'm trying to compile and install the library for MariaDB 10.2 but the compiled .so file appears to be missing the required symbols.
Compiling the source file appears to go through fine except for some warnings:
However after copying the file to the mysql plugin directory and trying to create the function with:
CREATE FUNCTION levenshtein RETURNS INT SONAME 'levenshtein.so';
I get the following error: Error: Can't find symbol 'levenshtein' in library
The library is compiled fine (it seems) and mariadb can search it but there is no sign of the levenshtein symbol.
Running
nm levenshtein.so
also makes no mention of any of the functions:Thoughts and prayers?
Thanks!
The text was updated successfully, but these errors were encountered: