{"action":"opened","issue":{"url":"https://api.github.com/repos/renecannao/proxysql/issues/71","labels_url":"https://api.github.com/repos/renecannao/proxysql/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/renecannao/proxysql/issues/71/comments","events_url":"https://api.github.com/repos/renecannao/proxysql/issues/71/events","html_url":"https://github.com/renecannao/proxysql/issues/71","id":68598973,"number":71,"title":"Compilation problem ","user":{"login":"lenineto","id":4887359,"avatar_url":"https://avatars.githubusercontent.com/u/4887359?v=3","gravatar_id":"","url":"https://api.github.com/users/lenineto","html_url":"https://github.com/lenineto","followers_url":"https://api.github.com/users/lenineto/followers","following_url":"https://api.github.com/users/lenineto/following{/other_user}","gists_url":"https://api.github.com/users/lenineto/gists{/gist_id}","starred_url":"https://api.github.com/users/lenineto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenineto/subscriptions","organizations_url":"https://api.github.com/users/lenineto/orgs","repos_url":"https://api.github.com/users/lenineto/repos","events_url":"https://api.github.com/users/lenineto/events{/privacy}","received_events_url":"https://api.github.com/users/lenineto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-15T07:20:49Z","updated_at":"2015-04-15T07:20:49Z","closed_at":null,"body":"Hi Rene,\r\n\r\nI tried to compile proxysql after we talked and I did get past the library dependencies, but now I'm facing a new problem, with mysql_protocol.h\r\n\r\nPlease see the output from make below:\r\n\r\ngcc -c -o obj/mysql_session.o mysql_session.c -I../include -I../sqlite3 -I../../mariadb-native-client/include -I../../libdaemon-0.14 -I../../jemalloc-3.6.0/include -I../../glib-2.40.0 -I../../glib-2.40.0/glib -O0 -ggdb -DDEBUG -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/mysql  -Wall\r\nIn file included from ../include/proxysql.h:45:0,\r\n                 from mysql_session.c:1:\r\n../include/mysql_protocol.h:23:55: warning: ‘struct rand_struct’ declared inside parameter list [enabled by default]\r\n void proxy_create_random_string(char *, uint , struct rand_struct *);\r\n                                                       ^\r\n../include/mysql_protocol.h:23:55: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]\r\n../include/mysql_protocol.h:24:28: warning: ‘struct rand_struct’ declared inside parameter list [enabled by default]\r\n double proxy_my_rnd(struct rand_struct *);\r\n                            ^\r\nmysql_session.c: In function ‘process_server_pkts’:\r\nmysql_session.c:310:9: error: ‘MYSQL_COM_QUIT’ undeclared (first use in this function)\r\n    case MYSQL_COM_QUIT:\r\n         ^\r\nmysql_session.c:310:9: note: each undeclared identifier is reported only once for each function it appears in\r\nmysql_session.c:313:9: error: ‘MYSQL_COM_INIT_DB’ undeclared (first use in this function)\r\n    case MYSQL_COM_INIT_DB:\r\n         ^\r\nmysql_session.c:316:9: error: ‘MYSQL_COM_STATISTICS’ undeclared (first use in this function)\r\n    case MYSQL_COM_STATISTICS:\r\n         ^\r\nmysql_session.c:319:9: error: ‘MYSQL_COM_QUERY’ undeclared (first use in this function)\r\n    case MYSQL_COM_QUERY:\r\n         ^\r\nmysql_session.c: In function ‘client_COM_QUERY’:\r\nmysql_session.c:631:24: error: ‘MYSQL_COM_END’ undeclared (first use in this function)\r\n   sess->client_command=MYSQL_COM_END;\r\n                        ^\r\nmysql_session.c:656:27: error: ‘MYSQL_COM_QUERY’ undeclared (first use in this function)\r\n    (sess->client_command==MYSQL_COM_QUERY) &&\r\n                           ^\r\nmysql_session.c: In function ‘process_client_pkts’:\r\nmysql_session.c:698:10: error: ‘MYSQL_COM_INIT_DB’ undeclared (first use in this function)\r\n     case MYSQL_COM_INIT_DB:\r\n          ^\r\nmysql_session.c:699:10: error: ‘MYSQL_COM_QUERY’ undeclared (first use in this function)\r\n     case MYSQL_COM_QUERY:\r\n          ^\r\nmysql_session.c:700:10: error: ‘MYSQL_COM_STATISTICS’ undeclared (first use in this function)\r\n     case MYSQL_COM_STATISTICS:\r\n          ^\r\nmysql_session.c:712:9: error: ‘MYSQL_COM_QUIT’ undeclared (first use in this function)\r\n    case MYSQL_COM_QUIT:\r\n         ^\r\nmysql_session.c:732:9: error: ‘MYSQL_COM_CHANGE_USER’ undeclared (first use in this function)\r\n    case MYSQL_COM_CHANGE_USER:\r\n         ^\r\nmysql_session.c:764:9: error: ‘MYSQL_COM_STMT_PREPARE’ undeclared (first use in this function)\r\n    case MYSQL_COM_STMT_PREPARE:\r\n         ^\r\nmysql_session.c:765:9: error: ‘MYSQL_COM_STMT_EXECUTE’ undeclared (first use in this function)\r\n    case MYSQL_COM_STMT_EXECUTE:\r\n         ^\r\nmysql_session.c:766:9: error: ‘MYSQL_COM_STMT_CLOSE’ undeclared (first use in this function)\r\n    case MYSQL_COM_STMT_CLOSE:\r\n         ^\r\nmysql_session.c:767:9: error: ‘MYSQL_COM_STMT_RESET’ undeclared (first use in this function)\r\n    case MYSQL_COM_STMT_RESET:\r\n         ^\r\nmysql_session.c:768:9: error: ‘MYSQL_COM_STMT_SEND_LONG_DATA’ undeclared (first use in this function)\r\n    case MYSQL_COM_STMT_SEND_LONG_DATA:\r\n         ^\r\nmysql_session.c: In function ‘mysql_session_new’:\r\nmysql_session.c:1099:23: error: ‘MYSQL_COM_END’ undeclared (first use in this function)\r\n  sess->client_command=MYSQL_COM_END;  // always reset this\r\n                       ^\r\nmake: *** [obj/mysql_session.o] Error 1\r\n\r\nBest regards,"}}