Levenshtein icon indicating copy to clipboard operation
Levenshtein copied to clipboard

1127 - Can't find symbol 'damlev' in library [SOLVED]

Open sahannn opened this issue 4 years ago • 13 comments

CREATE FUNCTION damlev RETURNS INTEGER SONAME 'libdamlev.dll'

1127 - Can't find symbol 'damlev' in library Time: 0,004s

does not find any

sahannn avatar Jan 26 '21 12:01 sahannn

show variables like 'plugin_dir';

C:\Program Files\MySQL\MySQL Server 8.0\lib\plugin\

sahannn avatar Jan 26 '21 12:01 sahannn

After building, install the shared library libdamlev.so to the plugins directory of your MySQL installation.

Does the file libdamlev.dll exist in your plugin directory?

rljacobson avatar Apr 26 '21 23:04 rljacobson

Yes there is in the plugin directory I tried the release Version 1.0 Beta download. I'm trying for windows.

sahannn avatar Apr 27 '21 08:04 sahannn

Yes there is in the plugin directory I tried the release Version 1.0 Beta download. I'm trying for windows.

I created and tried the new version. It didn't work either.

sahannn avatar Apr 27 '21 08:04 sahannn

Same problem here, on two different Windows (7 & 10) machines.

  • Drop libdamlev.dll into C:\Program Files\MySQL\MySQL Server 8.0\lib\plugin
  • Issue any of the CREATE FUNCTION damlev... commands
  • Get ERROR 1127 (HY000): Can't find symbol 'damlev...' in library

ebaldino avatar May 05 '21 16:05 ebaldino

Same problem here, on two different Windows (7 & 10) machines.

  • Drop libdamlev.dll into C:\Program Files\MySQL\MySQL Server 8.0\lib\plugin
  • Issue any of the CREATE FUNCTION damlev... commands
  • Get ERROR 1127 (HY000): Can't find symbol 'damlev...' in library

do you know what is the solution?

sahannn avatar May 05 '21 18:05 sahannn

Sorry, no. Will try to take a look at the code and compile it, but probably won`t have the time to do so this week...

ebaldino avatar May 05 '21 18:05 ebaldino

Sorry, no. Will try to take a look at the code and compile it, but probably won`t have the time to do so this week...

If you find a solution, please let me know

sahannn avatar May 05 '21 18:05 sahannn

Hi Sahann,

Well, I got it working! The function names weren't being exported, so I had to add __declspec(dllexport) and __cdecl to each function declaration in the extern "C" {} groups, in each class. Then I compiled under Visual Studio, and everything worked.

Here's a copy of the dll file I'm using, Works great under MySQL 8.0! https://tinyurl.com/bepjkk6h

ebaldino avatar May 10 '21 22:05 ebaldino

Hi Sahann,

Well, I got it working! The function names weren't being exported, so I had to add __declspec(dllexport) and __cdecl to each function declaration in the extern "C" {} groups, in each class. Then I compiled under Visual Studio, and everything worked.

Here's a copy of the dll file I'm using, Works great under MySQL 8.0! https://tinyurl.com/bepjkk6h

Thank you, can you share the revised source code as well virtual studio

sahannn avatar May 13 '21 19:05 sahannn

The link does not work anymore. Maybe you can submit the file to the project so they replace the one in the Releases section

golimarrrr avatar Apr 13 '22 10:04 golimarrrr

Hi. I fixed the link (https://tinyurl.com/bepjkk6h). It doesn't work (for me) if you click on it inside Github, but if you copy the link to the address line, it will download the file. I can't guarantee how long the file will be available, although it should be at least a few months. And I'm sorry, I no longer have the source code. I ended up not using this library for my application, and the source code eventually got lost. Also, here's the file, attached to this comment: libdamlev.zip .

ebaldino avatar Apr 13 '22 13:04 ebaldino

It'd be awesome if you could make a pull request with your fix. Unfortunately I do not have access to that platform to do it myself.

rljacobson avatar Jun 10 '22 06:06 rljacobson