Новости | FAQ | Авторы | Документация | В действии | Библиотека |
Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
stur 07.04.2011 12:10 / 07.04.2011 12:42
FreeBSD 8.2-RELEASE amd64./configure --prefix=/home/stur/parser3install "--with-sendmail=/usr/sbin/sendmail -i -t -f postmaster" --with-static-gc=/usr/home/stur/SERVER_APPS/parser/gc/lib --with-static-pcre=/usr/home/stur/SERVER_APPS/parser/pcre --with-static-xml=/usr/home/stur/SERVER_APPS/parser/gnome --with-curl=/usr/local/include/curl --with-apache=/usr/local/apache/bin/apxs --disable-safe-mode --with-pgsql-client=/usr/local/lib/libpq.so --silentВ итоге:
gcc -shared -o mod_parser3.so -Wl,--whole-archive libmod_parser3.a ../../classes/libclasses.a ../../types/libtypes.a ../../main/libmain.a ../../lib/gd/libgd.a ../../lib/cord/libcord.a ../../lib/md5/libmd5.a ../../lib/sdbm/libsdbm.a ../../lib/smtp/libsmtp.a ../../lib/json/libjson.a ../../../src/lib/ltdl/libltdlc.a -Wl,--no-whole-archive \ /usr/home/stur/SERVER_APPS/parser/gc/lib/libgc.a /usr/home/stur/SERVER_APPS/parser/pcre/lib/libpcre.a /usr/home/stur/SERVER_APPS/parser/gnome/lib/libxslt.a /usr/home/stur/SERVER_APPS/parser/gnome/lib/libexslt.a /usr/home/stur/SERVER_APPS/parser/gnome/lib/libxml2.a -lstdc++ /usr/bin/ld: libmod_parser3.a(pa_threads.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC libmod_parser3.a(pa_threads.o): could not read symbols: Bad value gmake[3]: *** [parser3module] Ошибка 1 gmake[3]: Leaving directory `/usr/home/stur/SERVER_APPS/parser/parser3/src/targets/apache' gmake[2]: *** [all-recursive] Ошибка 1 gmake[2]: Leaving directory `/usr/home/stur/SERVER_APPS/parser/parser3/src/targets' gmake[1]: *** [all-recursive] Ошибка 1 gmake[1]: Leaving directory `/usr/home/stur/SERVER_APPS/parser/parser3/src' gmake: *** [all-recursive] Ошибка 1Пробовал --with-dynamic-stdcpp, ошибка таже :(
./configure --prefix=/home/stur/parser3install --silent --with-pgsql-inc=/usr/local/include gmake rm -fr .libs/libparser3pgsql.la .libs/libparser3pgsql.* .libs/libparser3pgsql.* (cd . && ln -s parser3pgsql.lo parser3pgsql.o) gcc -shared parser3pgsql.lo -Wl,--whole-archive ./libltdl/.libs/libltdlc.al -Wl,--no-whole-archive -Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic -Wl,-soname -Wl,libparser3pgsql.so.0.0 -o .libs/libparser3pgsql.so.0.0 /usr/bin/ld: /usr/lib/libstdc++.a(eh_personality.o): relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC /usr/lib/libstdc++.a: could not read symbols: Bad value *** Error code 1 Stop in /usr/home/stur/SERVER_APPS/parser/sql/pgsql. *** Error code 1 Stop in /usr/home/stur/SERVER_APPS/parser/sql/pgsql. *** Error code 1 Stop in /usr/home/stur/SERVER_APPS/parser/sql/pgsql.С опцией --with-dynamic-stdcpp драйвер к пг собрался.