sergmursk 0 Posted 2008-09-09 09:27:53 Share Posted 2008-09-09 09:27:53 никак не могу скомпилить mod_mysql_store. Пробовал все (ну вроде все - просматривал несколько раз ), что есть в темах: http://local.com.ua/forum/index.php?showtopic=11883 http://local.com.ua/forum/index.php?showtopic=10593&st=20 http://local.com.ua/forum/index.php?showtopic=11340 Пути для libmysqlclient подставлял свои. И все равно не компилится. Link to post Share on other sites
sergmursk 0 Posted 2008-09-09 09:30:38 Author Share Posted 2008-09-09 09:30:38 Хм... при попытке собрать отдельно [root@avs stargazer]# cd plugins/store/mysql [root@avs mysql]# make вот что "узрел" [root@avs stargazer]# cd plugins/store/mysql [root@avs mysql]# make ../../Makefile.in:35: deps: Нет такого файла или каталога g++ -c mysql_store.cpp -O2 -I/usr/local/include -Wall -fPIC -I /tmp/stg/projects/stargazer/../../include -I /usr/include/mysql -DLINUX In file included from mysql_store.cpp:9: /tmp/stg/projects/stargazer/../../include/user_ips.h: In function ‘const USER_IPS StrToIPS(const std::string&)’: /tmp/stg/projects/stargazer/../../include/user_ips.h:209: ошибка: нет декларации ‘strcpy’ в этой области видимости /tmp/stg/projects/stargazer/../../include/user_ips.h:211: ошибка: нет декларации ‘strtok’ в этой области видимости /tmp/stg/projects/stargazer/../../include/user_ips.h:225: ошибка: нет декларации ‘strtok’ в этой области видимости make: *** [mysql_store.o] Ошибка 1 [root@avs mysql]# Я так думаю, над что-то править в user_ips.h ? Только что? Link to post Share on other sites
madf 279 Posted 2008-09-09 12:12:55 Share Posted 2008-09-09 12:12:55 #include <cstring> Link to post Share on other sites
sergmursk 0 Posted 2008-09-09 14:59:07 Author Share Posted 2008-09-09 14:59:07 #include <cstring> в ips.h ? Link to post Share on other sites
madf 279 Posted 2008-09-09 15:02:23 Share Posted 2008-09-09 15:02:23 include/user_ips.h Link to post Share on other sites
sergmursk 0 Posted 2008-09-09 15:08:34 Author Share Posted 2008-09-09 15:08:34 Продолжение.... g++: -E or -x required when input is from standard input make: *** [mod_store_mysql.so] Ошибка 1 Link to post Share on other sites
madf 279 Posted 2008-09-10 07:22:09 Share Posted 2008-09-10 07:22:09 Ыыы?! Это откуда? Link to post Share on other sites
sergmursk 0 Posted 2008-09-10 09:28:11 Author Share Posted 2008-09-10 09:28:11 Это откуда? Сделал #include <cstring> в ips.h И при make модуля выдается это! =) Link to post Share on other sites
madf 279 Posted 2008-09-10 09:36:10 Share Posted 2008-09-10 09:36:10 $ ls include/ips.h ls: невозможно получить доступ к include/ips.h: No such file or directory И полный лог, плиз. Link to post Share on other sites
sergmursk 0 Posted 2008-09-10 11:45:39 Author Share Posted 2008-09-10 11:45:39 [root@avs stargazer]# cd plugins/store/mysql [root@avs mysql]# make g++ mysql_store.o -L/usr/local/lib -shared -L/tmp/stg/projects/stargazer/../../lib -Wl,-rpath,/usr/lib/stg - /usr/lib/mysql/libmysqlclient.so.15.0.0 -L /usr/lib/mysql -o mod_store_mysql.so g++: -E or -x required when input is from standard input make: *** [mod_store_mysql.so] Ошибка 1 [root@avs mysql]# [root@avs stg]# ls include/user_ips.h include/user_ips.h [root@avs stg]# Link to post Share on other sites
madf 279 Posted 2008-09-10 11:50:01 Share Posted 2008-09-10 11:50:01 ...-Wl,-rpath,/usr/lib/stg - /usr/lib/mysql/libmysqlclient.so.15.0.0... "-" - откуда? Ключ пропустил? Link to post Share on other sites
sergmursk 0 Posted 2008-09-10 11:52:00 Author Share Posted 2008-09-10 11:52:00 не знаю, я вообще никаких ключей не указывал Link to post Share on other sites
madf 279 Posted 2008-09-10 11:55:27 Share Posted 2008-09-10 11:55:27 Покажи Makefile Link to post Share on other sites
sergmursk 0 Posted 2008-09-10 11:58:02 Author Share Posted 2008-09-10 11:58:02 include ../../../../../Makefile.conf PROG = mod_store_mysql.so SRCS = ./mysql_store.cpp #LIBS = -lconffiles -lstg_common #LIBS = -lmysqlclient include ../../Makefile.in SEARCH_DIRS += -I /usr/include/mysql LDFLAGS += - /usr/lib/mysql/libmysqlclient.so.15.0.0 -L /usr/lib/mysql сейчас сработал такой makefile include ../../../../../Makefile.conf PROG = mod_store_mysql.so SRCS = ./mysql_store.cpp LIBS = -lconffiles -lstg_common #LIBS = -lmysqlclient include ../../Makefile.in Тока все равно не пашет Storage plugin loading failed: /usr/lib/stg/mod_store_mysql.so: undefined symbol: mysql_select_db Но я где-т видел решение этой проблемы, сейчас поищу! ) Link to post Share on other sites
sergmursk 0 Posted 2008-09-10 12:19:30 Author Share Posted 2008-09-10 12:19:30 Все, разобрался! Стг уже заполнил таблицы. Спасибо за помощь! P.S.: теперь бы еще с iptables разобратьcя... :-)) Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now