Skip to content
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

fatal error: my_atomic.h: No such file or directory #28

Open
Benjamin-Hofftoth opened this issue Feb 7, 2020 · 2 comments
Open

fatal error: my_atomic.h: No such file or directory #28

Benjamin-Hofftoth opened this issue Feb 7, 2020 · 2 comments

Comments

@Benjamin-Hofftoth
Copy link

./install.sh Compiling the MySQL UDF gcc -Wall -I/usr/include/mysql/server -I. -shared lib_mysqludf_sys.c -o /usr/lib/lib_mysqludf_sys.so In file included from /usr/include/mysql/server/my_sys.h:34, from lib_mysqludf_sys.c:41: /usr/include/mysql/server/my_pthread.h:26:10: fatal error: my_atomic.h: No such file or directory #include <my_atomic.h> ^~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:6: install] Error 1 ERROR: You need libmysqlclient development software installed to be able to compile this UDF, on Debian/Ubuntu just run: apt-get install libmysqlclient15-dev

the following libs are already installed:

dpkg -l|grep --color libmysql ii default-libmysqlclient-dev:amd64 1.0.5 amd64 MySQL d atabase development files (metapackage) ii libmysqlclient18 1:10.4.11+maria~buster amd64 Virtual package to satisfy external libmysqlclient18 depends ii libmysqlcppconn-dev:amd64 1.1.9-4+b1 amd64 MySQL C onnector for C++ (development files) ii libmysqlcppconn7v5:amd64 1.1.9-4+b1 amd64 MySQL C onnector for C++ (library)

@Jeremy-CB
Copy link

Jeremy-CB commented May 20, 2020

Hi, I had the same problem and I uses this code

gcc -m64 -Wall -I/usr/include/mariadb/server/ -I/usr/include/mariadb/server/private -I. -shared lib_mysqludf_sys.c -o /usr/lib/x86_64-linux-gnu/mariadb19/plugin/lib_mysqludf_sys.so

path /usr/include/mariadb/server/private contains "my_atomic.h" file

@ljr55555
Copy link

ljr55555 commented Aug 1, 2020

I experienced the same problem on Fedora 31, and my resolution was the same as Jeremy-CB's:

gcc -m64 -Wall -I/usr/include/mariadb/server/ -I/usr/include/mariadb/server/private -I. -shared lib_mysqludf_sys.c -o /usr/lib/x86_64-linux-gnu/mariadb19/plugin/lib_mysqludf_sys.so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants