grayich Posted March 12, 2008 Posted March 12, 2008 Приветы всем! Хелп у кого имеется пачтик для сборки сабжа под фрюху, желательно FreeBSD-7? вообще ужасная сборка, то ему подавай библиотеки тока в /usr/lib то баш то еще чегото.. последнее на чем я остановился это: /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib/libstg_common.so: undefined reference to `Blowfish_Init(BLOWFISH_CTX*, unsigned char*, int)' /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib/libstg_common.so: undefined reference to `Blowfish_Encrypt(BLOWFISH_CTX*, unsigned int*, unsigned int*)' /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib/libstg_common.so: undefined reference to `Blowfish_Decrypt(BLOWFISH_CTX*, unsigned int*, unsigned int*)' gmake: *** [sgconf] Ошибка 1 у кого был удачный опыт сборки stg-2.404 под фрёй отпишите манипуляции с бубном плиз.
madf Posted March 12, 2008 Posted March 12, 2008 Про /usr/local: FHS По логу: а можно привести побольше строчек сверху?
grayich Posted March 12, 2008 Author Posted March 12, 2008 Про /usr/local: FHS Рекомендации мало кто выполняет, а вот сделать автопоиск библиотек например через ldconfig явно непомешалобы, или чтоб можно было явно указывать CFLAGS и LDFLAGS По логу: а можно привести побольше строчек сверху? ./build ############################################################################# Building sgconf for FreeBSD 7 ############################################################################# Checking for -lexpat... yes gmake -C /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../stglibs includes gmake[1]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs' gmake includes -C conffiles.lib gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/conffiles.lib' cp conffiles.h /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/conffiles.lib' gmake includes -C crypto.lib gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/crypto.lib' cp ag_md5.h blowfish.h /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/crypto.lib' gmake includes -C common.lib gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/common.lib' cp debug.h stg_error.h common.h /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/common.lib' gmake includes -C srvconf.lib gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/srvconf.lib' cp servconf.h netunit.h /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/srvconf.lib' gmake[1]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs' gmake -C /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../stglibs gmake[1]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs' gmake -C conffiles.lib gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/conffiles.lib' gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/conffiles.lib' gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/conffiles.lib' g++ -O2 -Wall -fPIC -I /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include -I ./ -DFREE_BSD5 -c conffiles.cpp g++ -shared -Wl,-rpath,//usr/lib/stg -Wl,-soname,libconffiles.so conffiles.o -o libconffiles.so -L /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib ar rc libconffiles.a conffiles.o ranlib libconffiles.a cp *.so /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib cp *.a /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/conffiles.lib' gmake -C crypto.lib gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/crypto.lib' gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/crypto.lib' gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/crypto.lib' gmake[2]: Цель `all' не требует выполнения команд. gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/crypto.lib' gmake -C common.lib gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/common.lib' gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/common.lib' gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/common.lib' g++ -O2 -Wall -fPIC -I /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include -I ./ -DFREE_BSD5 -c common.cpp g++ -shared -Wl,-rpath,//usr/lib/stg -Wl,-soname,libstg_common.so debug.o stg_error.o common.o stg_strptime.o -lstg_crypto -o libstg_common.so -L /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib ar rc libstg_common.a debug.o stg_error.o common.o stg_strptime.o ranlib libstg_common.a cp *.so /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib cp *.a /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/common.lib' gmake -C srvconf.lib gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/srvconf.lib' gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/srvconf.lib' gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/srvconf.lib' g++ -O2 -Wall -fPIC -I /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include -I ./ -DFREE_BSD5 -c netunit.cpp g++ -O2 -Wall -fPIC -I /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include -I ./ -DFREE_BSD5 -c parser.cpp g++ -O2 -Wall -fPIC -I /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include -I ./ -DFREE_BSD5 -c servconf.cpp g++ -shared -Wl,-rpath,//usr/lib/stg -Wl,-soname,libsrvconf.so netunit.o parser.o servconf.o -o libsrvconf.so -L /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib ar rc libsrvconf.a netunit.o parser.o servconf.o ranlib libsrvconf.a cp *.so /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib cp *.a /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/srvconf.lib' gmake[1]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs' g++ -c main.cpp -O2 -Wall -I /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include -DFREE_BSD5 g++ -c parser.cpp -O2 -Wall -I /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include -DFREE_BSD5 g++ main.o parser.o /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib/libconffiles.so /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib/libstg_common.so /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib/libsrvconf.so /usr/lib/libexpat.so /usr/lib/libc_r.so /usr/lib/libc.so -Wl,-E -L/usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib -Wl,-rpath,//usr/lib/stg -o sgconf /usr/bin/ld: warning: libstg_crypto.so, needed by /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib/libstg_common.so, not found (try using -rpath or -rpath-link) /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib/libstg_common.so: undefined reference to `Blowfish_Init(BLOWFISH_CTX*, unsigned char*, int)' /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib/libstg_common.so: undefined reference to `Blowfish_Encrypt(BLOWFISH_CTX*, unsigned int*, unsigned int*)' /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib/libstg_common.so: undefined reference to `Blowfish_Decrypt(BLOWFISH_CTX*, unsigned int*, unsigned int*)' gmake: *** [sgconf] Ошибка 1
madf Posted March 12, 2008 Posted March 12, 2008 ...Рекомендации мало кто выполняет, а вот сделать автопоиск библиотек например через ldconfig явно непомешалобы, или чтоб можно было явно указывать CFLAGS и LDFLAGS ... ./build ############################################################################# Building sgconf for FreeBSD 7 ############################################################################# Checking for -lexpat... yes gmake -C /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../stglibs includes gmake[1]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs' gmake includes -C conffiles.lib gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/conffiles.lib' cp conffiles.h /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/conffiles.lib' gmake includes -C crypto.lib gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/crypto.lib' cp ag_md5.h blowfish.h /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/crypto.lib' gmake includes -C common.lib gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/common.lib' cp debug.h stg_error.h common.h /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/common.lib' gmake includes -C srvconf.lib gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/srvconf.lib' cp servconf.h netunit.h /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/srvconf.lib' gmake[1]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs' gmake -C /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../stglibs gmake[1]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs' gmake -C conffiles.lib gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/conffiles.lib' gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/conffiles.lib' gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/conffiles.lib' g++ -O2 -Wall -fPIC -I /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include -I ./ -DFREE_BSD5 -c conffiles.cpp g++ -shared -Wl,-rpath,//usr/lib/stg -Wl,-soname,libconffiles.so conffiles.o -o libconffiles.so -L /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib ar rc libconffiles.a conffiles.o ranlib libconffiles.a cp *.so /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib cp *.a /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/conffiles.lib' gmake -C crypto.lib gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/crypto.lib' gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/crypto.lib' gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/crypto.lib' gmake[2]: Цель `all' не требует выполнения команд. gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/crypto.lib' gmake -C common.lib gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/common.lib' gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/common.lib' gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/common.lib' g++ -O2 -Wall -fPIC -I /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include -I ./ -DFREE_BSD5 -c common.cpp g++ -shared -Wl,-rpath,//usr/lib/stg -Wl,-soname,libstg_common.so debug.o stg_error.o common.o stg_strptime.o -lstg_crypto -o libstg_common.so -L /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib ar rc libstg_common.a debug.o stg_error.o common.o stg_strptime.o ranlib libstg_common.a cp *.so /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib cp *.a /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/common.lib' gmake -C srvconf.lib gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/srvconf.lib' gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/srvconf.lib' gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/srvconf.lib' g++ -O2 -Wall -fPIC -I /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include -I ./ -DFREE_BSD5 -c netunit.cpp g++ -O2 -Wall -fPIC -I /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include -I ./ -DFREE_BSD5 -c parser.cpp g++ -O2 -Wall -fPIC -I /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include -I ./ -DFREE_BSD5 -c servconf.cpp g++ -shared -Wl,-rpath,//usr/lib/stg -Wl,-soname,libsrvconf.so netunit.o parser.o servconf.o -o libsrvconf.so -L /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib ar rc libsrvconf.a netunit.o parser.o servconf.o ranlib libsrvconf.a cp *.so /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib cp *.a /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/srvconf.lib' gmake[1]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs' g++ -c main.cpp -O2 -Wall -I /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include -DFREE_BSD5 g++ -c parser.cpp -O2 -Wall -I /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../include -DFREE_BSD5 g++ main.o parser.o /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib/libconffiles.so /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib/libstg_common.so /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib/libsrvconf.so /usr/lib/libexpat.so /usr/lib/libc_r.so /usr/lib/libc.so -Wl,-E -L/usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib -Wl,-rpath,//usr/lib/stg -o sgconf /usr/bin/ld: warning: libstg_crypto.so, needed by /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib/libstg_common.so, not found (try using -rpath or -rpath-link) /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib/libstg_common.so: undefined reference to `Blowfish_Init(BLOWFISH_CTX*, unsigned char*, int)' /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib/libstg_common.so: undefined reference to `Blowfish_Encrypt(BLOWFISH_CTX*, unsigned int*, unsigned int*)' /usr/tmp/stg-2.404.9.7/projects/sgconf_xml/../../lib/libstg_common.so: undefined reference to `Blowfish_Decrypt(BLOWFISH_CTX*, unsigned int*, unsigned int*)' gmake: *** [sgconf] Ошибка 1 По первому: можешь проверить, ldconfig не видит того, что лежит в /usr/local. Иначе его бы видел ld и никаких проблем бы не возникало. В принципе, я работаю над этой проблемой. По второму: к моменту компоновки не собралась libstg_crypto.so. Покажи содержимое ./build из каталога sgconf_xml, плз.
grayich Posted March 12, 2008 Author Posted March 12, 2008 1. например ldconfig -r|grep lexpat 100:-lexpat.6 => /usr/local/lib/libexpat.so.6 вроде как видит, а вот ld ругается 2. #!/bin/sh # $Author: nobunaga $ # $Revision: 1.2 $ # $Date: 2008/01/05 12:11:02 $ ###################################################### OS=unknown sys=`uname -s` release=`uname -r | cut -b1` BUILD_DIR=`pwd` CONFFILE="../../Makefile.conf" PREFIX="/" BIN_MODE=0755 DATA_MODE=0644 OWNER=root if [ -z $1 ] then MAKEOPTS="-j1" CFLAGS="-O2" else if [ "$1" = "debug" ] then DEFS="-DDEBUG" MAKEOPTS="-j1" CFLAGS="-g3" else MAKEOPTS="-j1" CFLAGS="-O2" fi fi if [ "$sys" = "Linux" ] then OS=linux release="" ETC_DIR="./inst/linux/etc/stargazer" fi if [ "$sys" = "FreeBSD" ] then case $release in 4) OS=bsd;; 5) OS=bsd5;; 6) OS=bsd5;; 7) OS=bsd5;; *) OS=unknown;; esac ETC_DIR="./inst/freebsd/etc/stargazer" fi if [ "$OS" = "unknown" ] then echo "#############################################################################" echo "# Sorry, but sgconf currently supported by Linux, FreeBSD 4.x, 5.x, 6.x #" echo "#############################################################################" exit 1 fi echo "#############################################################################" echo " Building sgconf for $sys $release" echo "#############################################################################" STG_LIBS="conffiles.lib crypto.lib common.lib srvconf.lib" if [ "$OS" = "linux" ] then DEFS="$DEFS -DLINUX" LIB_THREAD=-lpthread SHELL="/bin/bash" else if [ "$OS" = "bsd" ] then DEFS="$DEFS -DFREE_BSD" else DEFS="$DEFS -DFREE_BSD5" fi SHELL="/usr/local/bin/bash" LIB_THREAD=-lc_r fi echo -n "Checking for -lexpat... " echo "int main() { return 0; }" > build_check.c gcc build_check.c -lexpat -o fake > /dev/null 2> /dev/null if [ $? != 0 ] then CHECK_EXPAT=no echo "no" else CHECK_EXPAT=yes echo "yes" fi rm -f fake rm -f build_check.c if [ "$CHECK_EXPAT" != "yes" ] then echo "-lexpat not found!" exit 1 fi echo "OS=$OS" > $CONFFILE echo "STG_TIME=no" >> $CONFFILE echo "DIR_BUILD=$BUILD_DIR" >> $CONFFILE echo "DIR_LIB=\$(DIR_BUILD)/../../lib" >> $CONFFILE echo "DIR_LIBSRC=\$(DIR_BUILD)/../../stglibs" >> $CONFFILE echo "DIR_INCLUDE=\$(DIR_BUILD)/../../include" >> $CONFFILE echo "CHECK_EXPAT=$CHECK_EXPAT" >> $CONFFILE echo "DEFS=$DEFS" >> $CONFFILE echo -n "STG_LIBS=" >> $CONFFILE for lib in $STG_LIBS do echo -n "$lib " >> $CONFFILE done echo "" >> $CONFFILE echo "SHELL=$SHELL" >> $CONFFILE echo "CFLAGS=$CFLAGS" >> $CONFFILE echo "PREFIX=$PREFIX" >> $CONFFILE echo "BIN_MODE=$BIN_MODE" >> $CONFFILE echo "DATA_MODE=$DATA_MODE" >> $CONFFILE echo "OWNER=$OWNER" >> $CONFFILE echo "ETC_DIR=$ETC_DIR" >> $CONFFILE gmake $MAKEOPTS
madf Posted March 12, 2008 Posted March 12, 2008 1.например ldconfig -r|grep lexpat 100:-lexpat.6 => /usr/local/lib/libexpat.so.6 вроде как видит, а вот ld ругается 2. 1. Хм, странно. Тогда я вобще перестаю понимать устройство FreeBSD. 2. Попробуй сделать gmake clean перед сборкой.
grayich Posted March 12, 2008 Author Posted March 12, 2008 тоже самое, и не одной 6-той не осталось чтоб проверить
madf Posted March 12, 2008 Posted March 12, 2008 Больше всего настораживает вот это: ... gmake -C crypto.lib gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/crypto.lib' gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/crypto.lib' gmake[2]: Entering directory `/usr/tmp/stg-2.404.9.7/stglibs/crypto.lib' gmake[2]: Цель `all' не требует выполнения команд. gmake[2]: Leaving directory `/usr/tmp/stg-2.404.9.7/stglibs/crypto.lib' ... Библиотека вроде бы как бы и собрана, и в то-же время ее нету. Попробуй зайти в этот каталог и удалить все .o и .so файлы.
grayich Posted March 12, 2008 Author Posted March 12, 2008 на всякий случай, стоят compat5x-i386-5.4.0.8_9 A convenience package to install the compat5x libraries compat6x-i386-6.3.603000.200801 A convenience package to install the compat6x libraries
canny Posted March 13, 2008 Posted March 13, 2008 каким то чудом собрался последний релиз на FreeBSD 7.0 amd64, запустился, начинаем тесты.... Манипуляции бубном для сборки: симлинки: ln -s /usr/local/include/expat.h /usr/include/expat.h ln -s /usr/local/lib/libexpat.so /usr/lib/libexpat.so для модуля mysql: ln -s /usr/local/lib/mysql/libmysqlclient.so /usr/lib/mysql/libmysqlclient.so.15 ln -s /usr/local/lib/mysql/libmysqlclient_r.so /usr/lib/mysql/libmysqlclient_r.so.15 и чтобы СТГ не боялся неизвестной версии FreeBSD 7.0 добавить в ./build строкой № 88 " 7) OS=bsd5;;"
grayich Posted March 13, 2008 Author Posted March 13, 2008 stg-2.404.9.7/projects/stargazer -- собирается не собирается -- stg-2.404.9.7/projects/sgconf_xml
canny Posted March 13, 2008 Posted March 13, 2008 stg-2.404.9.7/projects/stargazer -- собирается не собирается -- stg-2.404.9.7/projects/sgconf_xml с первого раза тоже не скомпилилось. сделал ln -s /usr/local/include/expat_external.h /usr/include/expat_external.h и сё!
canny Posted March 13, 2008 Posted March 13, 2008 какие еще линковки были сделаны? Понятно стало. Перед сборкой sgconf_xml проект stargazer не просто должен быть уже собран, но и либы "stg-2.404.9.7/lib/*.so" должны быть установлены в "/usr/lib/stg/" Видимо, sgconf_xml ищет их уже там.
Neutron Posted March 23, 2008 Posted March 23, 2008 Я тоже долго парился с установкой на FreeBSD 7.0 Оказывается c_r больше не подерживается в 7 версии Здесь так что необходимо заменить LIB_THREAD=-lc_r на LIB_THREAD=-lpthread Expat я собирал из исходников. после ./build нужно использовать команду gmake, а не make Правда с базами данных не получилось ничего, но я с ними пока не заморачивался, если все это хозяйство настрою тогда можно подумать. ЗЫ: Базу данных fbclient устанавливал из пакетов. Сервер работает так как подключался к ней с помощью команды isql, а ./build не видет ее.
madf Posted March 23, 2008 Posted March 23, 2008 Я тоже долго парился с установкой на FreeBSD 7.0Оказывается c_r больше не подерживается в 7 версии Здесь так что необходимо заменить LIB_THREAD=-lc_r на LIB_THREAD=-lpthread Expat я собирал из исходников. после ./build нужно использовать команду gmake, а не make Правда с базами данных не получилось ничего, но я с ними пока не заморачивался, если все это хозяйство настрою тогда можно подумать. ЗЫ: Базу данных fbclient устанавливал из пакетов. Сервер работает так как подключался к ней с помощью команды isql, а ./build не видет ее. Про -lc_r - спасибо. Учтем. Про Firebird: чтобы билд его "увидел" libfbclient.so должен быть в пределах "видимости" компоновщика. Например, в /usr/lib. По умолчанию он скорее всего лежит в /usr/local/lib
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now