Jump to content

ужас с Store_mysql


Recommended Posts

никак не могу скомпилить mod_mysql_store.

 

Пробовал все (ну вроде все - просматривал несколько раз :blink: ), что есть в темах:

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

Хм... при попытке собрать отдельно

[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 ? Только что? :blink:

Link to post
Share on other sites

[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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...