- - - - - - - - - - - - - - - - - - - - - - - - - - - - Name: ooptimum Subject: Re: Проблема с парсером HTML
[quote]Возможно для вашего шела устанавливать переменные окружения нужно по-другому. [/quote] Обычный bash. Переменные для запускаемого процесса устанавливаются именно так. Но даже если я их экспортирую(export CFLAGS=... LDFLAGS=...) перед вызовом configure, то результат не меняется. CFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe" LDFLAGS="-Wl,-O1,--hash-style=both" ./configure --with-gnu-ld --enable-googlegrp --disable-news --with-openssl --with-mysql --with-freetds=/usr --localstatedir=/var/dpsearch [pre]$ grep hash-style dpsearch-4.43-23102006/src/Makefile LDFLAGS = -Wl,-O1,--hash-style=both[/pre] Выдержки из вывода make: gcc -O2 -march=prescott -fomit-frame-pointer -pipe -DDPS_CONF_DIR=\"/usr/local/dpsearch/etc\" -DDPS_VAR_DIR=\"/var/dpsearch\" -DDPS_SHARE_DIR=\"/usr/local/dpsearch/share\" -Wl,-O1,--hash-style=both -o .libs/indexer indexer-main.o .libs/libdpsearch.so -lpthread -L/usr/local/lib -lrt -lm -lz -laspell -lstdc++ -L/usr/lib/mysql -lmysqlclient -L/usr/lib -lct -ldl -lssl -lcrypto .libs/libdpcharset.so -lrt -lm -lz -laspell-lstdc++ -lmysqlclient -lct -ldl -lssl -lcrypto -lpthread -L/usr/local/lib -lrt -lm -lz -laspell -lstdc++ -L/usr/lib/mysql -lmysqlclient -L/usr/lib -lct -ldl -L/usr/lib -lssl -lcrypto -Wl,--rpath -Wl,/usr/local/dpsearch/lib Как видим, переданное значение LDFLAGS использовалось при сборке indexer'а. А вот при сборке libdpsearch-4.so нет: gcc -shared -Wl,--rpath -Wl,/usr/local/dpsearch/lib куча_.lo_пропущена -lpthread -L/usr/local/lib -lrt -lm -lz -laspell -lstdc++ -L/usr/lib/mysql -lmysqlclient -L/usr/lib -lct -ldl -lssl -lcrypto -lc -Wl,-soname -Wl,libdpsearch-4.so -o .libs/libdpsearch-4.so Как результат имеем: [pre]$ readelf -a dpsearch-4.43-23102006/src/.libs/indexer | grep GNU_HASH [ 4] .gnu.hash GNU_HASH 08048714 000714 000114 04 A 5 0 4 0x6ffffef5 (GNU_HASH) 0x8048714 $ readelf -a dpsearch-4.43-23102006/src/.libs/libdpsearch-4.so | grep GNU_HASH $[/pre] [quote]С c-ares скорее всего будет работать, если создать символьный линк libares.a с libcares.a[/quote] К сожалению, нет. [pre]agent.c: In function 'DpsAgentInit': agent.c:332: error: too many arguments to function 'ares_strerror' make[2]: *** [libdpsearch_la-agent.lo] Error 1 make[2]: Leaving directory `/home/igor/dpsearch-4.43-23102006/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/igor/dpsearch-4.43-23102006/src' make: *** [all-recursive] Error 1 [/pre] - - - - - - - - - - - - - - - - - - - - - - - - - - - - Read the full topic here: http://www.dataparksearch.org/cgi-bin/simpleforum.cgi?fid=06;topic_id=1161581882;page=2
