Jump to content

byloki

Muggles
  • Posts

    8
  • Joined

  • Last visited

Everything posted by byloki

  1. Проблема решилась установкой SUSe 9.3 все пркрасно скомпилилось, для тех кто собирается ставить на linux SOHO server сразу говорю забудьте система безнадежно устарела и ее обновление встанет реальным гемором.
  2. вопрос такой возник кто нибудь использовал эту штуку на altlinux soho server ???
  3. >Почему экспат установлен в /usr/local ? Такое чувство, что документацию никто не читает. что по поводу expat: -------------------------------------------------------------- server:/home/loki/stg-2.4-2007.10.12-15.36.05/projects/sgconf # ./build ############################################################################# Building sgconf for Linux ############################################################################# Checking for -lexpat... yes ---cut--- -------------------------------------------------------------- а это то что относительно stg-2.4-2007.10.12-15.36.05 -------------------------------------------------------------- #make ---cut--- make[2]: Entering directory `/home/loki/stg-2.4-2007.10.12-15.36.05/projects/stargazer/plugins/authorization/ao' ../../Makefile.in:34: deps: No such file or directory make[2]: Leaving directory `/home/loki/stg-2.4-2007.10.12-15.36.05/projects/stargazer/plugins/authorization/ao' make[2]: Entering directory `/home/loki/stg-2.4-2007.10.12-15.36.05/projects/stargazer/plugins/authorization/ao' g++ -c ao.cpp -g3 -Wall -fPIC -I /home/loki/stg-2.4-2007.10.12-15.36.05/projects/stargazer/../../include -DLINUX /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> >]’ /home/loki/stg-2.4-2007.10.12-15.36.05/projects/stargazer/../../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> >]’ /home/loki/stg-2.4-2007.10.12-15.36.05/projects/stargazer/../../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>] make[2]: *** [ao.o] Ошибка 1 make[2]: Leaving directory `/home/loki/stg-2.4-2007.10.12-15.36.05/projects/stargazer/plugins/authorization/ao' make[1]: *** [authorization/ao] Ошибка 2 make[1]: Leaving directory `/home/loki/stg-2.4-2007.10.12-15.36.05/projects/stargazer/plugins' make: *** [plugins] Ошибка 2 -------------------------------------------------------------- ./build ---cut--- /home/loki/stg-2.4-2007.10.12-15.36.05/projects/stargazer/../../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 gmake: *** Ожидание завершения заданий... ---cut--- -------------------------------------------------------------- тут дело не в самой версии компилятора а в libstdc-devel, а точнее в наборе библиотек, и если я даже поставлю нужную версию то мне придется скорее всего возвращаться к предыдущей версии оси ))) отсутствие времени знакомая беда, а еще к этому прибавить требования совместимости ПО с более новыми версиями ОС вообще труба. офтоп: но 9.3 у меня накрылась придется искать другой дистриб что бы все работало.
  4. gcc version 4.0.2 20050901 (prerelease) (SUSE Linux) неп получится потому как очень много чего запитано именно от этой версии, если поменять то гемора будет на порядков 10 выше. видимо выход один ставить 9.3, либо изменять сами исходники (((
  5. >Почему экспат установлен в /usr/local ? Такое чувство, что документацию никто не читает. читает но система сама устанавливает на свое усмотрение, но симлинк сделать я думаю не проблема. >Что же касается отсуствия хеадеров - посмотрите файлы в каталоге include все ли впорядке в нем ? Собираете от какого пользователя ? а что с ними может быть не так??? я же сам ничего не редактирую от себя. > Попробуйте от рута. из под него и собираю и инсталю. вот кстати абослютно такая же проблема, может наоборот надо понизить версию gcc ??? http://local.com.ua/forum/index.php?act=ST&f=4&t=6338 самое последнее предположение то что те исходники не расчитаны на новые изменения.
  6. нет не патченый сборки взяты прямиком с сайта и все делается по инструкциям от и до права на католог 755 в случае с stg-2.402.9.7 все остается по старому, а вот stg-2.401.9.7 server:/home/loki/stg-2.401.9.7/projects/stargazer # make clean rm -f deps stargazer *.o tags *.*~ server:/home/loki/stg-2.401.9.7/projects/stargazer # make Makefile:95: deps: No such file or directory In file included from ../../include/user_conf.h:24, from ../../include/base_store.h:14, from ./admin.h:56, from ./admin.cpp:37: ../../include/user_ips.h:33:20: error: common.h: No such file or directory ./admin.cpp:38:20: error: common.h: No such file or directory In file included from ../../include/user_conf.h:24, from ../../include/base_store.h:14, from ./admin.h:56, from ./admins.h:38, from ./admins.cpp:48: ../../include/user_ips.h:33:20: error: common.h: No such file or directory ./admins.cpp:50:20: error: common.h: No such file or directory In file included from ./main.cpp:43: ./tariff2.h:41:20: error: common.h: No such file or directory In file included from ../../include/user_conf.h:24, from ../../include/base_store.h:14, from ./admin.h:56, from ./tariff2.h:42, from ./main.cpp:43: ../../include/user_ips.h:33:20: error: common.h: No such file or directory In file included from ./main.cpp:44: ./settings.h:41:23: error: dotconfpp.h: No such file or directory ./main.cpp:55:23: error: conffiles.h: No such file or directory ./main.cpp:73:20: error: pinger.h: No such file or directory ./curr_ip.cpp:2:20: error: common.h: No such file or directory In file included from ./settings.cpp:38: ./settings.h:41:23: error: dotconfpp.h: No such file or directory ./settings.h:43:20: error: common.h: No such file or directory ./stg_timer.cpp:6:20: error: common.h: No such file or directory In file included from ./tariff2.cpp:42: ./tariff2.h:41:20: error: common.h: No such file or directory In file included from ../../include/user_conf.h:24, from ../../include/base_store.h:14, from ./admin.h:56, from ./tariff2.h:42, from ./tariff2.cpp:42: ../../include/user_ips.h:33:20: error: common.h: No such file or directory ./tariff2.cpp:43:23: error: conffiles.h: No such file or directory In file included from ./tariff2.cpp:45: ./settings.h:41:23: error: dotconfpp.h: No such file or directory In file included from ./users.h:49, from ./traffcounter.h:34, from ./traffcounter.cpp:42: ./settings.h:41:23: error: dotconfpp.h: No such file or directory ./settings.h:43:20: error: common.h: No such file or directory In file included from ../../include/user_conf.h:24, from ../../include/base_store.h:14, from ./admin.h:56, from ./tariff2.h:42, from ./user.h:47, from ./users.h:50, from ./traffcounter.h:34, from ./traffcounter.cpp:42: ../../include/user_ips.h:33:20: error: common.h: No such file or directory In file included from ./user.h:47, from ./user.cpp:47: ./tariff2.h:41:20: error: common.h: No such file or directory In file included from ../../include/user_conf.h:24, from ../../include/base_store.h:14, from ./admin.h:56, from ./tariff2.h:42, from ./user.h:47, from ./user.cpp:47: ../../include/user_ips.h:33:20: error: common.h: No such file or directory In file included from ./user_property.h:23, from ./user.h:53, from ./user.cpp:47: ./settings.h:41:23: error: dotconfpp.h: No such file or directory ./user.cpp:51:23: error: conffiles.h: No such file or directory In file included from ../../include/user_conf.h:24, from ../../include/base_store.h:14, from ./admin.h:56, from ./user_property.h:21, from ./user_property.cpp:1: ../../include/user_ips.h:33:20: error: common.h: No such file or directory In file included from ./user_property.cpp:1: ./user_property.h:22:20: error: common.h: No such file or directory In file included from ./user_property.h:23, from ./user_property.cpp:1: ./settings.h:41:23: error: dotconfpp.h: No such file or directory In file included from ./users.cpp:45: ./settings.h:41:23: error: dotconfpp.h: No such file or directory ./settings.h:43:20: error: common.h: No such file or directory In file included from ../../include/user_conf.h:24, from ../../include/base_store.h:14, from ./admin.h:56, from ./tariff2.h:42, from ./user.h:47, from ./users.h:50, from ./users.cpp:46: ../../include/user_ips.h:33:20: error: common.h: No such file or directory In file included from ./users.h:49, from ./traffcounter.h:34, from ./plugin_runner.h:8, from ./plugin_runner.cpp:5: ./settings.h:41:23: error: dotconfpp.h: No such file or directory ./settings.h:43:20: error: common.h: No such file or directory In file included from ../../include/user_conf.h:24, from ../../include/base_store.h:14, from ./admin.h:56, from ./tariff2.h:42, from ./user.h:47, from ./users.h:50, from ./traffcounter.h:34, from ./plugin_runner.h:8, from ./plugin_runner.cpp:5: ../../include/user_ips.h:33:20: error: common.h: No such file or directory ./plugin_runner.cpp:7:23: error: conffiles.h: No such file or directory ./script_executer.cpp:12:20: error: common.h: No such file or directory deps:1: *** пропущен разделитель. Останов. после удаления и распаковки исходников ничего не изменилось кроме того что и stg-2.401.9.7 стала то же выдавать. у меня дурацкие ощущения что проблема в моих установленных пакетах может ли здесь быть причина в expat ??? server:/home/loki/expat-2.0.1 # make install /bin/sh ./conftools/mkinstalldirs /usr/local/lib /usr/local/include /bin/sh ./libtool --mode=install /usr/bin/install -c libexpat.la /usr/local/lib/libexpat.la /usr/bin/install -c .libs/libexpat.so.1.5.2 /usr/local/lib/libexpat.so.1.5.2 (cd /usr/local/lib && { ln -s -f libexpat.so.1.5.2 libexpat.so.1 || { rm -f libexpat.so.1 && ln -s libexpat.so.1.5.2 libexpat.so.1; }; }) (cd /usr/local/lib && { ln -s -f libexpat.so.1.5.2 libexpat.so || { rm -f libexpat.so && ln -s libexpat.so.1.5.2 libexpat.so; }; }) /usr/bin/install -c .libs/libexpat.lai /usr/local/lib/libexpat.la /usr/bin/install -c .libs/libexpat.a /usr/local/lib/libexpat.a chmod 644 /usr/local/lib/libexpat.a ranlib /usr/local/lib/libexpat.a PATH="$PATH:/sbin" ldconfig -n /usr/local/lib ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- for FN in ./lib/expat.h ./lib/expat_external.h ; do /usr/bin/install -c -m 644 $FN /usr/local/include ; done /bin/sh ./conftools/mkinstalldirs /usr/local/bin /usr/local/man/man1 /bin/sh ./libtool --mode=install /usr/bin/install -c xmlwf/xmlwf /usr/local/bin/xmlwf /usr/bin/install -c xmlwf/.libs/xmlwf /usr/local/bin/xmlwf /usr/bin/install -c -m 644 ./doc/xmlwf.1 /usr/local/man/man1
  7. а вот результат другой версии server:/home/loki/stg-2.401.9.7/projects/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 gmake: *** Нет правила для сборки цели `stg_logger.h', требуемой для `common.o'. Останов. может кто-нибудь подсказать куда копать ???
  8. server:/home/loki/stg-2.402.9.7/projects/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 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/ 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>] make: *** [admin.o] Ошибка 1 Ось SUSE 10.0
×
×
  • Create New...