Jump to content

Не собирается на Mandriva 2006!


Recommended Posts

Не получается собрать на Mandriva 2006

вот сообщения компилятора

 

[root@inet-srv stargazer]# ./build

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

      Building STG 2.4 for Linux

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

Makeing stg_logger.lib

cp stg_logger.h ../../include/

cp libstg_logger.a ../../lib/

Makeing crypto.lib

cp ag_md5.h blowfish.h ../../include/

cp libcrypto.a ../../lib/

Makeing common.lib

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 script_executer.lib

g++ -g -Wall -I ../../include/ -I ./ -DLINUX -DSTG_TIME -c script_executer.cpp

ar rc libscript_executer.a script_executer.o

ranlib libscript_executer.a

cp script_executer.h ../../include/

cp libscript_executer.a ../../lib/

Makeing conffiles.lib

cp conffiles.h ../../include/

cp libconffiles.a ../../lib/

Makeing hostallow.lib

cp hostallow.h ../../include/

cp libhostallow.a ../../lib/

Makeing pinger.lib

cp pinger.h ../../include/

cp libstg_pinger.a ../../lib/

Makeing dotconfpp.lib

cp dotconfpp.h mempool.h ../../include/

cp libdotconfpp.a ../../lib/

Makefile:103: 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/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/stl_construct.h: In function 'void std::_Destroy(_ForwardIterator, _ForwardIterator, _Allocator) [with _ForwardIterator = RESETABLE<std::string>*, _Allocator = std::allocator<RESETABLE<std::string> >]':

/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/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/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/stl_construct.h:174: error: no matching function for call to 'std::allocator<RESETABLE<std::string> >::destroy(std::string*)'

/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/ext/new_allocator.h:107: note: candidates are: void __gnu_cxx::new_allocator<_Tp>::destroy(_Tp*) [with _Tp = RESETABLE<std::string>]

/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/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/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/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/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/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/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/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/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/stl_construct.h:174: error: no matching function for call to 'std::allocator<RESETABLE<std::string> >::destroy(std::string*)'

/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/ext/new_allocator.h:107: note: candidates are: void __gnu_cxx::new_allocator<_Tp>::destroy(_Tp*) [with _Tp = RESETABLE<std::string>]

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

 

stargazer stg-2.402.9.7

gcc version 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0)

 

Уважаемый разработчики, подскажите что можно сделать, в changelog укзано, что ошибки сборки на gcc4 исправлены!

Link to post
Share on other sites

Makefile:103: deps: No such file or directory

Я бы посоветовал посмотреть, есть ли такая папка/файла в каталоге с сырцами стг.

Link to post
Share on other sites

To XoRe:

 

Makefile:103: deps: No such file or directory

Я бы посоветовал посмотреть, есть ли такая папка/файла в каталоге с сырцами стг.

 

Попробовал собрать на другой системе

 

[root@ns stargazer]#
gcc -vns stargazer]#
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.1/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java,pascal --host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)

 

все собралось прекрасно, так что, имхо, дело не в этом.

Link to post
Share on other sites
  • 3 months later...

И у меня почти так же. Только файлы все находит, но спотыкается тоже на этих строках:

 

/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/stl_construct.h:174: error: no matching function for call to 'std::allocator<RESETABLE<std::string> >::destroy(std::string*)'

/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/ext/new_allocator.h:107: note: candidates are: void __gnu_cxx::new_allocator<_Tp>::destroy(_Tp*) [with _Tp = RESETABLE<std::string>]

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

[root@z stargazer]#

 

Неужели тоже из-за 64 бит? Или в версии gcc? У меня gcc 4.0.1-5mdk . Как это решается?

Link to post
Share on other sites

Попробуйте обновить ГСС до последней или скомпилить где нить на машине 32-х битной можно даже с ГСС = 3.х.х. На 64 битах компиляция может не проходить.

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...