Build error #1
Open
Build error #1
Comments
hey btw, I know it's a 4 months old issue but I got it working by editing the Makefile. Had to include two new parameters in the gcc call -fPIC and -DMYSQL_DYNAMIC_PLUGIN so it looked like this: gcc -DMYSQL_DYNAMIC_PLUGIN -fPIC -Wall -I/usr/include/mysql -I. -shared lib_mysqludf_sys.c -o $(LIBDIR)/lib_mysqludf_sys.so Just in case somebody else has this problem too. |
Same thing under Debian Wheezy 64. Mahrton fix works. |
In addition to mahrton solution I had to update LIBDIR in Makefile too, like this: Thanks mahrton |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First off, thank you for writing this. I look forward to it working.
I'm getting a build error when trying to "make":
gcc -Wall -I/usr/include/mysql -I. -shared lib_mysqludf_sys.c -o /usr/lib/lib_mysqludf_sys.so /usr/bin/ld: /tmp/ccqmuRkb.o: relocation R_X86_64_32 against
.rodata' can not be used when making a shared object; recompile with -fPIC/tmp/ccqmuRkb.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [install] Error 1`
I'm trying to build this on RHEL 6.3, with the Percona server (devel packages included). Any ideas?
The text was updated successfully, but these errors were encountered: