Перейти до

Не устанавливается сервер


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

Здравствуйте.

Подскажите пожалуйста почему при компиляции сервера stg-2.402.9.7 на Suse 10.0 Linux выдает ошибки? Библиотека libexpat установлена в /usr/lib/.

 

inetsrv:/home/diman/2006.11.01/server/stg-2.402.9.7/projects/stargazer # ./build

#############################################################################

Building STG 2.4 for Linux

#############################################################################

Makeing stg_logger.lib

../Makefile.in:74: deps: No such file or directory

g++ -g -Wall -I ../../include/ -I ./ -DLINUX -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 ./ -DLINUX -DSTG_TIME -c ag_md5.c

g++ -g -Wall -I ../../include/ -I ./ -DLINUX -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 ./ -DLINUX -DSTG_TIME -c debug.c

g++ -g -Wall -I ../../include/ -I ./ -DLINUX -DSTG_TIME -c stg_error.c

g++ -g -Wall -I ../../include/ -I ./ -DLINUX -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 ./ -DLINUX -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 ./ -DLINUX -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 ./ -DLINUX -DSTG_TIME -c pinger.cpp

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 ./ -DLINUX -DSTG_TIME -c dotconfpp.cpp

g++ -g -Wall -I ../../include/ -I ./ -DLINUX -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:95: deps: No such file or directory

g++ -c admin.cpp -g3 -Wall -I ../../include -DLINUX

../../include/base_store.h:25: warning: ‘class BASE_STORE’ has virtual functions but non-virtual destructor

/usr/include/c++/4.0.2/bits/stl_construct.h: In function ‘void std::_Destroy(_ForwardIterator, _ForwardIterator, _Allocator) [with _ForwardIterator = RESETABLE<std::string>*, _Allocator = std::allocator<RESETABLE<std::string> >]’:

/usr/include/c++/4.0.2/bits/stl_vector.h:273: instantiated from ‘std::vector<_Tp, _Alloc>::~vector() [with _Tp = RESETABLE<std::string>, _Alloc = std::allocator<RESETABLE<std::string> >]’

../../include/user_conf.h:74: instantiated from here

/usr/include/c++/4.0.2/bits/stl_construct.h:174: error: no matching function for call to ‘std::allocator<RESETABLE<std::string> >::destroy(std::string*)’

/usr/include/c++/4.0.2/ext/new_allocator.h:109: note: candidates are: void __gnu_cxx::new_allocator<_Tp>::destroy(_Tp*) [with _Tp = RESETABLE<std::string>]

/usr/include/c++/4.0.2/bits/stl_construct.h: In function ‘void std::_Destroy(_ForwardIterator, _ForwardIterator, _Allocator) [with _ForwardIterator = __gnu_cxx::__normal_iterator<RESETABLE<std::string>*, std::vector<RESETABLE<std::string>, std::allocator<RESETABLE<std::string> > > >, _Allocator = std::allocator<RESETABLE<std::string> >]’:

/usr/include/c++/4.0.2/bits/vector.tcc:125: instantiated from ‘typename std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(__gnu_cxx::__normal_iterator<typename _Alloc::pointer, std::vector<_Tp, _Alloc> >, __gnu_cxx::__normal_iterator<typename _Alloc::pointer, std::vector<_Tp, _Alloc> >) [with _Tp = RESETABLE<std::string>, _Alloc = std::allocator<RESETABLE<std::string> >]’

/usr/include/c++/4.0.2/bits/stl_vector.h:425: instantiated from ‘void std::vector<_Tp, _Alloc>::resize(size_t, const _Tp&) [with _Tp = RESETABLE<std::string>, _Alloc = std::allocator<RESETABLE<std::string> >]’

/usr/include/c++/4.0.2/bits/stl_vector.h:442: instantiated from ‘void std::vector<_Tp, _Alloc>::resize(size_t) [with _Tp = RESETABLE<std::string>, _Alloc = std::allocator<RESETABLE<std::string> >]’

../../include/user_conf.h:75: instantiated from here

/usr/include/c++/4.0.2/bits/stl_construct.h:174: error: no matching function for call to ‘std::allocator<RESETABLE<std::string> >::destroy(std::string*)’

/usr/include/c++/4.0.2/ext/new_allocator.h:109: note: candidates are: void __gnu_cxx::new_allocator<_Tp>::destroy(_Tp*) [with _Tp = RESETABLE<std::string>]

gmake: *** [admin.o] Ошибка 1

inetsrv:/home/diman/2006.11.01/server/stg-2.402.9.7/projects/stargazer #

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

И что теперь с этими файлами делать? Проинсталить с варнингами, а потом заменить? или в инсталяторе заменить? Каков порядок действия??

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

egor2fsys, скажи все таки, как ставить с нуля на SuSE 10. Сначала сделать ./Build и не обращая внимания на warning (g++ -c admin.cpp -g3 -Wall -I ../../include -DLINUX

../../include/base_store.h:25: warning: 'BASE_STORE' has virtual functions but non-virtual destructor

g++ -c admins.cpp -g3 -Wall -I ../../include -DLINUX

../../include/base_store.h:25: warning: 'BASE_STORE' has virtual functions but non-virtual destructor

g++ -c main.cpp -g3 -Wall -I ../../include -DLINUX) сделать ./install. А потом заменить из архива http://shareua.com/files/5e410f/stg_2.402.tar.bz2.html демона в /usr/sbin/, а библиотеки в /usr/lib/stg/ .

А таким образом StarGazer работать будет правильно? не уверен. Скомпиленные файлы библиотек, с учетом warning, весят в 2 раза больше чем в архиве.

Что же все таки делать??

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

Учили бы програмирование...

А заодно английский.

 

'BASE_STORE' has virtual functions but non-virtual destructor:

означает "'BASE_STORE' имеет виртуальные функции, но не виртуальный деструктор".

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

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

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

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

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

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

Вхід

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

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

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

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