Bug #79262 ERROR 1126 (HY000): Can't open shared library 'Enc.so'

Submitted: 13 Nov 2015 7:55 Modified: 20 Jun 2018 11:13
Reporter: yazan Houshieh Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version: OS:Linux (Mint)
Assigned to: CPU Architecture:Any

[13 Nov 2015 7:55] yazan Houshieh
Description:
I am trying to create a function via 
'CREATE FUNCTION Enc RETURNS STRING SONAME "Enc.so";'

and I am getting the following error 

ERROR 1126 (HY000): Can't open shared library 'Enc.so' (errno: 0 /usr/lib/mysql/plugin/Enc.so: undefined symbol: __gmpz_tdiv_q)

I am using gmp library in my code but can't get why this problem happening !
The next command is what I use when I compile my c file.

gcc $(mysql_config --cflags)  -shared -lgmp -fPIC -o Enc.so Enc.c

How to repeat:
The bug seems to happen to matter what command I used in compiling though it seems a linking problem but nothing is changed for example when I use 

gcc $(mysql_config --cflags) -I/usr/local/mysql/include -L/usr/local/mysql/lib -lmysqlclient -lz  -shared -lgmp -fPIC -o Enc.so Enc.c
[20 Jun 2018 11:13] MySQL Verification Team
Please provide a complete test case and checked against latest release. Thanks.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.050 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.