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

getting an error while install kamailio5.1 on ubuntu 18.4 #1602

Closed
limitall opened this issue Jul 26, 2018 · 5 comments
Closed

getting an error while install kamailio5.1 on ubuntu 18.4 #1602

limitall opened this issue Jul 26, 2018 · 5 comments

Comments

@limitall
Copy link

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

@limitall limitall changed the title getting an error while install kamailio5.1 on ubntu 18.4 getting an error while install kamailio5.1 on ubuntu 18.4 Jul 26, 2018
@linuxmaniac
Copy link
Member

We are building master branch every night for bionic with no problems.

/usr/bin/make -C src/ every-module 
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev6+0~20180726010658.1165+bionic/src'
CC (gcc) [M db_mysql.so]		km_dbase.o
CC (gcc) [M db_mysql.so]		km_my_con.o
CC (gcc) [M db_mysql.so]		km_val.o
CC (gcc) [M db_mysql.so]		my_fld.o
CC (gcc) [M db_mysql.so]		km_row.o
CC (gcc) [M db_mysql.so]		my_con.o
CC (gcc) [M db_mysql.so]		km_res.o
CC (gcc) [M db_mysql.so]		my_cmd.o
CC (gcc) [M db_mysql.so]		db_mysql.o
CC (gcc) [M db_mysql.so]		my_res.o
CC (gcc) [M db_mysql.so]		my_uri.o
CC (gcc) [M db_mysql.so]		km_db_mysql.o
make[4]: 'libsrdb2.so.1.0' is up to date.
make[4]: 'libsrdb1.so.1.0' is up to date.
LD (gcc) [M db_mysql.so]		db_mysql.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev6+0~20180726010658.1165+bionic/src'

And there are no related changes on db_mysql AFAICT I would say you are missing dev libraries

miconda added a commit that referenced this issue Aug 2, 2018
- 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
@miconda
Copy link
Member

miconda commented Aug 2, 2018

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.

@sergey-safarov
Copy link
Member

@limitall could you test commit 1736723 or current master
if now master builds correctly, then please close ticket.

@miconda
Copy link
Member

miconda commented Aug 14, 2018

I am closing it, if something new appears and still a problem, reopen.

@miconda miconda closed this as completed Aug 14, 2018
@henningw
Copy link
Contributor

Just for reference: the fix referenced above caused a similar issue for MariaDB, it is now fixed in commit 9f459dc in master.

henningw pushed a commit that referenced this issue Aug 15, 2018
- 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)
henningw pushed a commit that referenced this issue Aug 15, 2018
- 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants