tony2001 / pinba_engine

Pinba - MySQL plugin and storage engine
http://pinba.org
GNU General Public License v2.0
475 stars 41 forks source link

mysql 5.7.20 #61

Open sveneld opened 6 years ago

sveneld commented 6 years ago

When i'm run make install I receive such error

In file included from ha_pinba.cc:36:0:
/home/sveneld/pinba/mysql_source/mysql-5.7-5.7.20/sql/field.h:24:73: fatal error: binary_log_funcs.h: No such file or directory
compilation terminated.
Makefile:508: recipe for target 'ha_pinba.lo' failed
make[1]: *** [ha_pinba.lo] Error 1
make[1]: Leaving directory '/home/sveneld/pinba/pinba_engine-master/src'
Makefile:442: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
deeravenger commented 6 years ago

I had the same error (pinba 1.2 + mysql-5.7.19 + centos-release-6-9.el6.12.3.x86_64)

I downloaded binary_log_funcs.h from https://github.com/mysql/mysql-server/tree/5.7/libbinlogevents/export

And now I'm with errors:

/tmp/source_mysql/sql/field.h:27:56: error: mysqld_error.h: No such file or directory In file included from /tmp/source_mysql/sql/field.h:30, from ha_pinba.cc:36: /tmp/source_mysql/sql/table.h:30:39: error: table_id.h: No such file or directory ha_pinba.cc:37:26: error: sql/structs.h: No such file or directory ha_pinba.cc:45:24: error: my_pthread.h: No such file or directory ha_pinba.cc:609:102: error: macro "my_hash_init" requires 9 arguments, but only 8 given In file included from /tmp/source_mysql/sql/field.h:30, from ha_pinba.cc:36: /tmp/source_mysql/sql/table.h:678: error: 'Table_id' does not name a type /tmp/source_mysql/sql/table.h: In member function 'ulonglong TABLE_SHARE::get_table_def_version()': /tmp/source_mysql/sql/table.h:795: error: 'table_map_id' was not declared in this scope /tmp/source_mysql/sql/table.h: In member function 'ulonglong TABLE_SHARE::get_table_ref_version() const': /tmp/source_mysql/sql/table.h:880: error: 'table_map_id' was not declared in this scope /tmp/source_mysql/sql/table.h: At global scope: /tmp/source_mysql/sql/table.h:2306: error: 'Table_id' does not name a type In file included from ha_pinba.cc:36: /tmp/source_mysql/sql/field.h: In member function 'bool Field_blob::copy()': /tmp/source_mysql/sql/field.h:3854: error: 'ER_OUTOFMEMORY' was not declared in this scope /tmp/source_mysql/sql/field.h: In member function 'void Field_json::invalid_text(const char, size_t) const': /tmp/source_mysql/sql/field.h:4051: error: 'ER_INVALID_JSON_TEXT' was not declared in this scope ha_pinba.cc: In function 'int pinba_engine_init(void)': ha_pinba.cc:64: error: 'my_hash_init' was not declared in this scope ha_pinba.cc: In function 'PINBA_SHARE get_share(const char, TABLE*)': ha_pinba.cc:1878: error: invalid conversion from 'PINBA_SHARE' to 'myf' ha_pinba.cc:1878: error: initializing argument 2 of 'void my_multi_malloc(PSI_memory_key, myf, ...)' make[2]: [ha_pinba.lo] Error 1 make[2]: Leaving directory /tmp/pinba_engine-1.2.0/src' make[1]: *** [all] Error 2 make[1]: Leaving directory/tmp/pinba_engine-1.2.0/src' make: *** [all-recursive] Error 1

zakachkin commented 3 years ago

When trying to compile under mariadb-10.2, it gives the same error. There is a solution?