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
getting an error while install kamailio5.1 on ubuntu 18.4 #1602
Comments
We are building master branch every night for bionic with no problems.
And there are no related changes on db_mysql AFAICT I would say you are missing dev libraries |
- mysql 8.0.1 removed my_bool and suggests use of bool: * https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-1.html - use stdbool.h, it defines bool in C99, which should be old enough to be everywhere, otherwise it may require some ifdefs to get it for older but still alive systems - reported by GH #1602
I guess it was used with mysql 8.0.1, where my_bool type was removed -- patch above should be the fix, but it would require C99 compatible compiler. If master gets compiled/packaged without issues on the systems we build, then it should be ok. |
I am closing it, if something new appears and still a problem, reopen. |
Just for reference: the fix referenced above caused a similar issue for MariaDB, it is now fixed in commit 9f459dc in master. |
- mysql 8.0.1 removed my_bool and suggests use of bool: * https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-1.html - use stdbool.h, it defines bool in C99, which should be old enough to be everywhere, otherwise it may require some ifdefs to get it for older but still alive systems - reported by GH #1602 (cherry picked from commit 1736723)
- mysql 8.0.1 removed my_bool and suggests use of bool: * https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-1.html - use stdbool.h, it defines bool in C99, which should be old enough to be everywhere, otherwise it may require some ifdefs to get it for older but still alive systems - reported by GH #1602 (cherry picked from commit 1736723)
flex -o core/lex.yy.c core/cfg.lex
CC (gcc) [kamailio] core/lex.yy.o
CC (gcc) [kamailio] core/cfg.tab.o
LD (gcc) [kamailio] kamailio
CC (gcc) [M db_mysql.so] km_val.o
CC (gcc) [M db_mysql.so] my_fld.o
In file included from my_fld.c:22:0:
my_fld.h:37:2: error: unknown type name ‘my_bool’
my_bool is_null;
^~~~~~~
../../Makefile.rules:100: recipe for target 'my_fld.o' failed
make[2]: *** [my_fld.o] Error 1
Makefile:511: recipe for target 'modules' failed
make[1]: *** [modules] Error 1
make[1]: Leaving directory '/usr/local/src/kamailio-5.1/kamailio/src'
Makefile:27: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: