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

Issue while try to build my_bool #8

Open
racheliurui opened this issue Sep 11, 2018 · 4 comments
Open

Issue while try to build my_bool #8

racheliurui opened this issue Sep 11, 2018 · 4 comments

Comments

@racheliurui
Copy link

Hi, I have tried to test this plugin.
Have installed all the dependencies in a centos 7 environment , and I got below exception.
rabbitmq-server-3.7.7-1.el7.noarch.rpm
mysql80-community-release-el7-1.noarch.rpm
rabbitmq-c-0.9.0.tar.gz

Could you help have a look?

Thanks
Cheers
Rachel

[vagrant@localhost lib_mysqludf_amqp-2.0.0]$ make
make  all-am
make[1]: Entering directory `/home/vagrant/lib_mysqludf_amqp-2.0.0'
  CC       lib_mysqludf_amqp_la-lib_mysqludf_amqp_info.lo
In file included from lib_mysqludf_amqp_info.c:10:0:
lib_mysqludf_amqp.h:10:5: error: unknown type name ‘my_bool’
     extern my_bool lib_mysqludf_amqp_info_init(UDF_INIT *initid, UDF_ARGS *args, char *message);
     ^
In file included from lib_mysqludf_amqp_info.c:10:0:
lib_mysqludf_amqp.h:14:5: error: unknown type name ‘my_bool’
     extern my_bool lib_mysqludf_amqp_sendjson_init(UDF_INIT *initid, UDF_ARGS *args, char *message);
     ^
lib_mysqludf_amqp.h:18:5: error: unknown type name ‘my_bool’
     extern my_bool lib_mysqludf_amqp_sendstring_init(UDF_INIT *initid, UDF_ARGS *args, char *message);
     ^
lib_mysqludf_amqp_info.c:12:1: error: unknown type name ‘my_bool’
 my_bool
 ^
make[1]: *** [lib_mysqludf_amqp_la-lib_mysqludf_amqp_info.lo] Error 1
make[1]: Leaving directory `/home/vagrant/lib_mysqludf_amqp-2.0.0'
make: *** [all] Error 2
@tcort
Copy link
Member

tcort commented Sep 11, 2018

It looks like the my_bool type was removed from the MySQL headers in MySQL 8.0 (See compilation notes). I'll see if I can fix this in a way that is still compatible with MySQL 5.7

@racheliurui
Copy link
Author

racheliurui commented Sep 12, 2018

@tcort thanks for the reply.

Edited, I saw the other open ticket, looks the steps is missing libbsd.
And I will leave this issue to be related to mysql version

Thanks

@mrudang-vora
Copy link

mrudang-vora commented Apr 26, 2020

@tcort / @racheliurui : Are there any updates here?

When I tried to install the lib_mysqludf_amqp-2.0.0 on mysql 8.0, it is throwing the error:

lib_mysqludf_amqp-2.0.0]# make make all-am make[1]: Entering directory/tmp/lib_mysqludf_amqp_installer/lib_mysqludf_amqp-2.0.0'
CC lib_mysqludf_amqp_la-lib_mysqludf_amqp_info.lo
In file included from lib_mysqludf_amqp_info.c:10:0:
lib_mysqludf_amqp.h:10:12: error: unknown type name ‘my_bool’
extern my_bool lib_mysqludf_amqp_info_init(UDF_INIT *initid, UDF_ARGS *args, char *message);
^~~~~~~
In file included from lib_mysqludf_amqp_info.c:10:0:
lib_mysqludf_amqp.h:14:12: error: unknown type name ‘my_bool’
extern my_bool lib_mysqludf_amqp_sendjson_init(UDF_INIT *initid, UDF_ARGS *args, char *message);
^~~~~~~
lib_mysqludf_amqp.h:18:12: error: unknown type name ‘my_bool’
extern my_bool lib_mysqludf_amqp_sendstring_init(UDF_INIT *initid, UDF_ARGS *args, char *message);
^~~~~~~
lib_mysqludf_amqp_info.c:12:1: error: unknown type name ‘my_bool’; did you mean ‘_Bool’?
my_bool
^~~~~~~
_Bool
make[1]: *** [lib_mysqludf_amqp_la-lib_mysqludf_amqp_info.lo] Error 1
make[1]: Leaving directory /tmp/lib_mysqludf_amqp_installer/lib_mysqludf_amqp-2.0.0' make: *** [all] Error 2

Any suggestions or workaround to resolve this?

Thanks

@ikonopistsev
Copy link

ikonopistsev commented Sep 23, 2020

Try to add

#include <stdbool.h>
typedef bool my_bool;

to head of lib_mysqludf_amqp.h
I think it must help.

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

4 participants