Перейти до

Отсутствует модуль mod_conf_sg (((


Рекомендованные сообщения

Система FreeBSD 6.0

Поставил Stg v2.4 (./build && ./install) После попытки запуска в логах отображается следующее:

2006-03-25 12:04:53 -- Stg v. Stg 2.4
2006-03-25 12:04:53 -- Timer thread started successfully.
2006-03-25 12:04:53 -- Storage plugin: file_store v.1.01. Loading successfull.
2006-03-25 12:04:54 -- Error: Plugin loading failed. Cannot open "/usr/lib/stg/mod_conf_sg.so"
2006-03-25 12:04:54 -- Traffcounter: Stop successfull.
2006-03-25 12:04:54 -- Users: Stop successfull.
2006-03-25 12:04:56 -- Queue removed successfully.
2006-03-25 12:04:56 -- StgTimer: Stop successfull.
2006-03-25 12:04:56 -- Stg stopped successfully.
2006-03-25 12:04:56 -- ---------------------------------------------

 

Перехожу в директорию ..../plugins/configuration/sgconfig/ Пытаюсь запустить Makefile. Выдает следующее:

"Makefile", line 6: Missing dependency operator
"Makefile", line 8: Need an operator
"Makefile", line 10: Missing dependency operator
"Makefile", line 12: Need an operator
"Makefile", line 40: Need an operator
Error expanding embedded variable.

 

Вот первые строчки Makefile.

DEFS = -DLINUX

ifeq ($(OS),bsd)
DEFS = -DFREE_BSD
endif

ifeq ($(OS),bsd5)
DEFS = -DFREE_BSD5
endif

 

Правлю Makefile. Получается следующее.

#DEFS = -DLINUX

#ifeq ($(OS),bsd)
#DEFS = -DFREE_BSD
#endif

#ifeq ($(OS),bsd5)
DEFS = -DFREE_BSD5
#endif

После пытаюсь скомпилить и выдается ошибка.

"Makefile", line 40: Need an operator
Error expanding embedded variable.

 

Сам Makefile выглядит так.

###############################################################################
# $Id: Makefile,v 1.4 2006/02/17 20:38:47 nobunaga Exp $
###############################################################################
DEFS = -DLINUX

ifeq ($(OS),bsd)
DEFS = -DFREE_BSD
endif

ifeq ($(OS),bsd5)
DEFS = -DFREE_BSD5
endif


DIR_INCLUDE = ../../../../../include
DIR_LIB = ../../../../../lib

PROG = mod_conf_sg.so

SRCS = ./stgconfig.cpp \
      ./rsconf.cpp \
      ./configproto.cpp \
      ./parser.cpp \
      ./parser_tariff.cpp \
      ./parser_admin.cpp


LIBS = 

SEARCH_DIRS = -I $(DIR_INCLUDE)

OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))

CC = g++

CFLAGS = -g3 -Wall -fPIC
LDFLAGS = -g3 -shared


vpath %.a $(DIR_LIB)


all: $(PROG)

$(PROG): $(OBJS) $(LIBS)
$(CC) $^ $(LDFLAGS) -o $(PROG)

clean:
rm -f deps $(PROG) *.o tags *.*~


install:
echo TODO

uninstall:
echo TODO

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),uninstall)
include deps
endif
endif

deps:	$(SRCS)
@>deps;\
for file in $(SRCS); do\
  echo "`$(CC) $(CFLAGS) $(DEFS) $(SEARCH_DIRS) -MM $$file` Makefile" >> deps;\
  echo -e '\t$$(CC) -c $$< $(CFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps;\
done


 

Подскажите, как дальше быть? Откуда взять mod_conf_sg или как его скомпилить???

 

Спасибо!!!

Ссылка на сообщение
Поделиться на других сайтах

При выполнении команды make clean выдается следующее:

# make clean
"Makefile", line 39: Missing dependency operator
"Makefile", line 45: Need an operator
"Makefile", line 47: Missing dependency operator
"Makefile", line 53: Need an operator
"Makefile", line 55: Missing dependency operator
"Makefile", line 61: Need an operator
"Makefile", line 74: Need an operator
Error expanding embedded variable.

 

Как команда ./build выполнилась сам не знаю. Вот как это было:

# ./build
#############################################################################
      Building STG 2.4 for FreeBSD 6
#############################################################################
Makeing stg_logger.lib
../Makefile.in:74: deps: No such file or directory
g++ -g -Wall -I ../../include/ -I ./ -DFREE_BSD5 -DSTG_TIME -c stg_logger.cpp
ar rc libstg_logger.a stg_logger.o
ranlib libstg_logger.a
cp stg_logger.h ../../include/
cp libstg_logger.a ../../lib/
Makeing crypto.lib
../Makefile.in:74: deps: No such file or directory
g++ -g -Wall -I ../../include/ -I ./ -DFREE_BSD5 -DSTG_TIME -c ag_md5.c
ag_md5.c: In function `char* make_ag_hash(time_t, const char*)':
ag_md5.c:434: warning: long unsigned int format, time_t arg (arg 3)
g++ -g -Wall -I ../../include/ -I ./ -DFREE_BSD5 -DSTG_TIME -c blowfish.cpp
ar rc libcrypto.a ag_md5.o blowfish.o
ranlib libcrypto.a
cp ag_md5.h blowfish.h ../../include/
cp libcrypto.a ../../lib/
Makeing common.lib
../Makefile.in:74: deps: No such file or directory
g++ -g -Wall -I ../../include/ -I ./ -DFREE_BSD5 -DSTG_TIME -c debug.c
g++ -g -Wall -I ../../include/ -I ./ -DFREE_BSD5 -DSTG_TIME -c stg_error.c
g++ -g -Wall -I ../../include/ -I ./ -DFREE_BSD5 -DSTG_TIME -c common.cpp
ar rc libstg_common.a debug.o stg_error.o common.o
ranlib libstg_common.a
cp debug.h stg_error.h common.h ../../include/
cp libstg_common.a ../../lib/
Makeing conffiles.lib
../Makefile.in:74: deps: No such file or directory
g++ -g -Wall -I ../../include/ -I ./ -DFREE_BSD5 -DSTG_TIME -c conffiles.cpp
ar rc libconffiles.a conffiles.o
ranlib libconffiles.a
cp conffiles.h ../../include/
cp libconffiles.a ../../lib/
Makeing hostallow.lib
../Makefile.in:74: deps: No such file or directory
g++ -g -Wall -I ../../include/ -I ./ -DFREE_BSD5 -DSTG_TIME -c hostallow.cpp
ar rc libhostallow.a hostallow.o
ranlib libhostallow.a
cp hostallow.h ../../include/
cp libhostallow.a ../../lib/
Makeing pinger.lib
../Makefile.in:74: deps: No such file or directory
g++ -g -Wall -I ../../include/ -I ./ -DFREE_BSD5 -DSTG_TIME -c pinger.cpp
pinger.cpp: In member function `void STG_PINGER::PrintAllIP()':
pinger.cpp:191: warning: long unsigned int format, time_t arg (arg 3)
ar rc libstg_pinger.a pinger.o
ranlib libstg_pinger.a
cp pinger.h ../../include/
cp libstg_pinger.a ../../lib/
Makeing dotconfpp.lib
../Makefile.in:74: deps: No such file or directory
g++ -g -Wall -I ../../include/ -I ./ -DFREE_BSD5 -DSTG_TIME -c dotconfpp.cpp
g++ -g -Wall -I ../../include/ -I ./ -DFREE_BSD5 -DSTG_TIME -c mempool.cpp
ar rc libdotconfpp.a dotconfpp.o mempool.o
ranlib libdotconfpp.a
cp dotconfpp.h mempool.h ../../include/
cp libdotconfpp.a ../../lib/
Makefile:94: deps: No such file or directory
g++ -c admin.cpp -g3 -Wall -I ../../include -DFREE_BSD5
g++ -c admins.cpp -g3 -Wall -I ../../include -DFREE_BSD5
g++ -c main.cpp -g3 -Wall -I ../../include -DFREE_BSD5
g++ -c curr_ip.cpp -g3 -Wall -I ../../include -DFREE_BSD5
g++ -c settings.cpp -g3 -Wall -I ../../include -DFREE_BSD5
g++ -c stg_timer.cpp -g3 -Wall -I ../../include -DFREE_BSD5
g++ -c tariff2.cpp -g3 -Wall -I ../../include -DFREE_BSD5
g++ -c traffcounter.cpp -g3 -Wall -I ../../include -DFREE_BSD5
g++ -c user.cpp -g3 -Wall -I ../../include -DFREE_BSD5
g++ -c user_property.cpp -g3 -Wall -I ../../include -DFREE_BSD5
g++ -c users.cpp -g3 -Wall -I ../../include -DFREE_BSD5
g++ -c plugin_runner.cpp -g3 -Wall -I ../../include -DFREE_BSD5
g++ -c script_executer.cpp -g3 -Wall -I ../../include -DFREE_BSD5
g++ admin.o admins.o main.o curr_ip.o settings.o stg_timer.o tariff2.o traffcounter.o user.o user_property.o users.o plugin_runner.o script_executer.o ../../lib/libconffiles.a ../../lib/libstg_common.a ../../lib/libcrypto.a ../../lib/libstg_logger.a ../../lib/libdotconfpp.a ../../lib/libstg_pinger.a /usr/local/lib/libexpat.so /usr/lib/libc_r.so /usr/lib/libc.so -g3 -Wl,-E -o stargazer
for plugin in ./plugins/authorization/ao ./plugins/authorization/inetaccess ./plugins/store/files ./plugins/configuration/sgconfig ./plugins/other/ping ./plugins/capture/ether_freebsd; do \
gmake OS=bsd5 -C $plugin; \
done
gmake[1]: Entering directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/authorization/ao'
Makefile:54: deps: No such file or directory
gmake[1]: Leaving directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/authorization/ao'
gmake[1]: Entering directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/authorization/ao'
g++ -c ao.cpp -g3 -Wall -fPIC -I ../../../../../include -DFREE_BSD5
g++ ao.o -g3 -shared -o mod_auth_ao.so
gmake[1]: Leaving directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/authorization/ao'
gmake[1]: Entering directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/authorization/inetaccess'
Makefile:54: deps: No such file or directory
gmake[1]: Leaving directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/authorization/inetaccess'
gmake[1]: Entering directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/authorization/inetaccess'
g++ -c inetaccess.cpp -g3 -Wall -fPIC -I ../../../../../include -DFREE_BSD5
g++ inetaccess.o -g3 -shared -o mod_auth_ia.so
gmake[1]: Leaving directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/authorization/inetaccess'
gmake[1]: Entering directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/store/files'
Makefile:53: deps: No such file or directory
gmake[1]: Leaving directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/store/files'
gmake[1]: Entering directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/store/files'
g++ -c file_store.cpp -g3 -Wall -fPIC -I ../../../../../include -DFREE_BSD5
g++ file_store.o -g3 -shared -o mod_store_files.so
gmake[1]: Leaving directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/store/files'
gmake[1]: Entering directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/configuration/sgconfig'
Makefile:60: deps: No such file or directory
In file included from ./stgconfig.h:5,
                from ./stgconfig.cpp:5:
./configproto.h:30:19: expat.h: No such file or directory
In file included from ./rsconf.cpp:65:
./configproto.h:30:19: expat.h: No such file or directory
In file included from ./configproto.cpp:35:
./configproto.h:30:19: expat.h: No such file or directory
gmake[1]: Leaving directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/configuration/sgconfig'
gmake[1]: Entering directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/configuration/sgconfig'
deps:1: *** пропущен разделитель.  Останов.
gmake[1]: Leaving directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/configuration/sgconfig'
gmake[1]: Entering directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/other/ping'
Makefile:55: deps: No such file or directory
gmake[1]: Leaving directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/other/ping'
gmake[1]: Entering directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/other/ping'
g++ -c ping.cpp -g3 -Wall -fPIC -I ../../../../../include -DFREE_BSD5
g++ ping.o -g3 -shared -o mod_ping.so
gmake[1]: Leaving directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/other/ping'
gmake[1]: Entering directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/capture/ether_freebsd'
Makefile:51: deps: No such file or directory
gmake[1]: Leaving directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/capture/ether_freebsd'
gmake[1]: Entering directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/capture/ether_freebsd'
g++ -c ether_cap.cpp -g3 -Wall -fPIC -I ../../../../../include -DFREE_BSD5
g++ ether_cap.o -g3 -shared -o mod_cap_bpf.so
gmake[1]: Leaving directory `/usr/home/soner/stg-2.4.8.6/projects/stargazer/plugins/capture/ether_freebsd'

 

Makefile естественно не изменялся. Все действия выполняются под рутом(ssh + su).

 

Что делать?

Ссылка на сообщение
Поделиться на других сайтах

./configproto.h:30:19: expat.h: No such file or directory

In file included from ./rsconf.cpp:65:

./configproto.h:30:19: expat.h: No such file or directory

In file included from ./configproto.cpp:35:

./configproto.h:30:19: expat.h: No such file or directory

 

вот ответ ! :argh:

 

у тебя не стоит библиотека expat - http://expat.sourceforge.net/

она должна быть установлена строго в /usr

а стоит наверно в /usr/local или же вообще не стоит

Ссылка на сообщение
Поделиться на других сайтах
  • 8 months later...

Система FreeBSD 5.4

Поставил Stg v2.4

 

Такая же проблема:

 

(./build && ./install) После попытки запуска в логах отображается следующее:

2006-03-25 12:04:53 -- Stg v. Stg 2.4

2006-03-25 12:04:53 -- Timer thread started successfully.

2006-03-25 12:04:53 -- Storage plugin: file_store v.1.01. Loading successfull.

2006-03-25 12:04:54 -- Error: Plugin loading failed. Cannot open "/usr/lib/stg/mod_conf_sg.so"

2006-03-25 12:04:54 -- Traffcounter: Stop successfull.

2006-03-25 12:04:54 -- Users: Stop successfull.

2006-03-25 12:04:56 -- Queue removed successfully.

2006-03-25 12:04:56 -- StgTimer: Stop successfull.

2006-03-25 12:04:56 -- Stg stopped successfully.

2006-03-25 12:04:56 -- --------------------------------------------

 

Поставил expat-2.0.0.tar.gz сложил в /usr, подскажите плиз, как эта проблема еще лечится?

Ссылка на сообщение
Поделиться на других сайтах

Создайте аккаунт или войдите в него для комментирования

Вы должны быть пользователем, чтобы оставить комментарий

Создать аккаунт

Зарегистрируйтесь для получения аккаунта. Это просто!

Зарегистрировать аккаунт

Вхід

Уже зарегистрированы? Войдите здесь.

Войти сейчас
  • Зараз на сторінці   0 користувачів

    Немає користувачів, що переглядають цю сторінку.

×
×
  • Створити нове...