Database Security. Database Auditing. Database Caching. Database Masking. Get it now

Complie bug on gentoo

in

Hello!

GreenSQL don't complie on gentoo:


Backup-Gentoo greensql-fw-1.0.0 # make
rm -rf greensql-fw src/greensql-fw
cd src; make; cp greensql-fw ../
make[1]: Entering directory `/root/greensql-fw-1.0.0/src'
g++ -g -Wno-deprecated -Wall -I/usr/include/mysql/ -I/usr/local/include/ -I/usr/local/include/mysql/ -c -o main.o main.cpp
main.cpp:23:19: error: event.h: No such file or directory
In file included from main.cpp:25:
config.hpp:17:19: error: mysql.h: No such file or directory
In file included from connection.hpp:22,
from greensql.hpp:11,
from main.cpp:26:
patterns.hpp:12:18: error: pcre.h: No such file or directory
config.hpp:32: error: 'MYSQL' does not name a type
patterns.hpp:34: error: 'pcre' has not been declared
patterns.hpp:34: error: 'pcre_extra' has not been declared
patterns.hpp:49: error: ISO C++ forbids declaration of 'pcre' with no type
patterns.hpp:49: error: expected ';' before '*' token
patterns.hpp:50: error: ISO C++ forbids declaration of 'pcre' with no type
patterns.hpp:50: error: expected ';' before '*' token
patterns.hpp:51: error: ISO C++ forbids declaration of 'pcre' with no type
patterns.hpp:51: error: expected ';' before '*' token
patterns.hpp:52: error: ISO C++ forbids declaration of 'pcre' with no type
patterns.hpp:52: error: expected ';' before '*' token
patterns.hpp:53: error: ISO C++ forbids declaration of 'pcre' with no type
patterns.hpp:53: error: expected ';' before '*' token
patterns.hpp:54: error: ISO C++ forbids declaration of 'pcre' with no type
patterns.hpp:54: error: expected ';' before '*' token
patterns.hpp:55: error: ISO C++ forbids declaration of 'pcre' with no type
patterns.hpp:55: error: expected ';' before '*' token
patterns.hpp:56: error: ISO C++ forbids declaration of 'pcre' with no type
patterns.hpp:56: error: expected ';' before '*' token
patterns.hpp:57: error: ISO C++ forbids declaration of 'pcre' with no type
patterns.hpp:57: error: expected ';' before '*' token
patterns.hpp:58: error: ISO C++ forbids declaration of 'pcre' with no type
patterns.hpp:58: error: expected ';' before '*' token
patterns.hpp:60: error: ISO C++ forbids declaration of 'pcre_extra' with no type
patterns.hpp:60: error: expected ';' before '*' token
patterns.hpp:61: error: ISO C++ forbids declaration of 'pcre_extra' with no type
patterns.hpp:61: error: expected ';' before '*' token
patterns.hpp:62: error: ISO C++ forbids declaration of 'pcre_extra' with no type
patterns.hpp:62: error: expected ';' before '*' token
patterns.hpp:63: error: ISO C++ forbids declaration of 'pcre_extra' with no type
patterns.hpp:63: error: expected ';' before '*' token
patterns.hpp:64: error: ISO C++ forbids declaration of 'pcre_extra' with no type
patterns.hpp:64: error: expected ';' before '*' token
patterns.hpp:65: error: ISO C++ forbids declaration of 'pcre_extra' with no type
patterns.hpp:65: error: expected ';' before '*' token
patterns.hpp:66: error: ISO C++ forbids declaration of 'pcre_extra' with no type
patterns.hpp:66: error: expected ';' before '*' token
patterns.hpp:67: error: ISO C++ forbids declaration of 'pcre_extra' with no type
patterns.hpp:67: error: expected ';' before '*' token
patterns.hpp:68: error: ISO C++ forbids declaration of 'pcre_extra' with no type
patterns.hpp:68: error: expected ';' before '*' token
patterns.hpp:69: error: ISO C++ forbids declaration of 'pcre_extra' with no type
patterns.hpp:69: error: expected ';' before '*' token
patterns.hpp: In member function 'bool SQLPatterns::HasTrueConstantPatterns()':
patterns.hpp:28: error: 'true_constants_re' was not declared in this scope
patterns.hpp: In member function 'bool SQLPatterns::HasBruteforcePatterns()':
patterns.hpp:29: error: 'bruteforce_functions_re' was not declared in this scope
connection.hpp: At global scope:
connection.hpp:33: error: field 'proxy_event' has incomplete type
connection.hpp:34: error: field 'backend_event' has incomplete type
greensql.hpp:73: error: field 'serverEvent' has incomplete type
main.cpp: In function 'int main(int, char**)':
main.cpp:145: error: 'event_init' was not declared in this scope
main.cpp:147: error: aggregate 'event tEvent' has incomplete type and cannot be defined
main.cpp:148: error: invalid application of 'sizeof' to incomplete type 'event'
main.cpp:152: error: 'evtimer_set' was not declared in this scope
main.cpp:153: error: 'evtimer_add' was not declared in this scope
main.cpp:159: error: 'event_loop' was not declared in this scope
main.cpp: In function 'void clb_timeout(int, short int, void*)':
main.cpp:222: error: 'event_del' was not declared in this scope
main.cpp:231: error: 'evtimer_set' was not declared in this scope
main.cpp:232: error: 'evtimer_add' was not declared in this scope
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/root/greensql-fw-1.0.0/src'
cp: cannot stat `greensql-fw': No such file or directory
make: *** [greensql-fw] Error 1

Comments

Hi It looks like you need to

Hi

It looks like you need to install libevent and mysql devel packages. I do not know the name of the mysql devel package in gentoo - it must provide mysql.h.

Please check,
Yuli

You are right, libevent

You are right, libevent missed :)

Back to top