Giter Site home page Giter Site logo

Comments (5)

platinumvoid avatar platinumvoid commented on July 24, 2024 1

@7homasSutter Found a solution: sudo apt install libmariadbd-dev (embedded DB libraries)
But got another error, now I am assuming because the /usr/include/mariadb/server/private is still missing

I will update on solution!!!

from lib_mysqludf_sys.

bmalynovytch avatar bmalynovytch commented on July 24, 2024

@eugeneYWang You might need to edit Makefile and replace:

gcc -Wall -I/usr/include/mysql -I. -shared lib_mysqludf_sys.c -o $(LIBDIR)/lib_mysqludf_sys.so

by

gcc -Wall -I/usr/include/mysql/server -I. -shared lib_mysqludf_sys.c -o $(LIBDIR)/lib_mysqludf_sys.so

from lib_mysqludf_sys.

mrwiora avatar mrwiora commented on July 24, 2024

trying to compile lib_mysqludf_sys.c with mariadb-server 10.3 you need
gcc -Wall -I/usr/include/mariadb/server/ -I. -shared lib_mysqludf_sys.c -o /usr/lib/x86_64-linux-gnu/mariadb19/plugin/lib_mysqludf_sys.so

otherwise you get
root@debian:~/lib_mysqludf_sys# gcc -Wall -I/usr/include/mysql/server -I. -shared lib_mysqludf_sys.c -o $(LIBDIR)/lib_mysqludf_sys.so bash: LIBDIR: command not found lib_mysqludf_sys.c:40:10: fatal error: my_global.h: No such file or directory #include ^~~~~~~~~~~~~ compilation terminated.

from lib_mysqludf_sys.

7homasSutter avatar 7homasSutter commented on July 24, 2024

Does anyone has a working Makefile example for MariaDB 10.6.7?

On Kali MariaDb does not have the folder (/usr/include/mariadb/server/) and the build fails with the following error:

gcc -fPIC -m64 -Wall -I/usr/include/mariadb/server/ -I/usr/include/mariadb/ -I/usr/include/mariadb/mysql/ -I. -shared ./lib_mysqludf_sys.c -o ./lib_mysqludf_sys.so
In file included from ./lib_mysqludf_sys.c:40:
/usr/include/mariadb/my_global.h:3:2: warning: #warning This file should not be included by clients, include only <mysql.h> [-Wcpp]
    3 | #warning This file should not be included by clients, include only <mysql.h>
      |  ^~~~~~~
In file included from ./lib_mysqludf_sys.c:41:
/usr/include/mariadb/my_sys.h:3:2: warning: #warning This file should not be included by clients, include only <mysql.h> [-Wcpp]
    3 | #warning This file should not be included by clients, include only <mysql.h>
      |  ^~~~~~~
./lib_mysqludf_sys.c:44:10: fatal error: m_ctype.h: No such file or directory
   44 | #include <m_ctype.h>
      |          ^~~~~~~~~~~
compilation terminated.
make: *** [Makefile:4: install] Error 1

Does anyone know what my installation is missing or how to reference the missing m_ctype.h file?

from lib_mysqludf_sys.

Xitro01 avatar Xitro01 commented on July 24, 2024

Any updates on this? Still not working for me.

from lib_mysqludf_sys.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.