On Sun, Jun 18, 2006 at 12:59:35PM +0400, Kirill Maslinsky wrote: > Всем привет! > > Я тут взялся за сборку одного замшелого, но лингвистически интересного > проекта -- emdros -- и, естественно, тут же натолкнулся на проблемы > при сборке, скорее всего вызванные линковкой с --as-needed. Короче, вот минимальный набор исправлений, с которым оно у меня собралось (autoreconf -fisv; ./configure --with-sqlite): --- ./MQL/Makefile.am- 2006-06-18 14:22:11 +0400 +++ ./MQL/Makefile.am 2006-06-18 15:46:27 +0400 @@ -61,7 +61,7 @@ pkglib_LTLIBRARIES = libmql.la # libmql_la_SOURCES = $(mqllib_src) -libmql_la_LIBADD = @EMDFDEPS@ +libmql_la_LIBADD = @PCRE_DEP@ @EMDFDEPS@ libmql_la_DEPENDENCIES = @PCRE_DEP@ @EMDFDEPS@ libmql_la_LDFLAGS = -version-info \ @LIB_MQL_CURRENT@:@LIB_MQL_REVISION@:@LIB_MQL_AGE@ \ --- ./include/smart_vector.h- 2006-06-18 14:22:11 +0400 +++ ./include/smart_vector.h 2006-06-18 15:37:28 +0400 @@ -126,7 +126,7 @@ private: std::vector m_vec; bool m_bDelete; public: - static const short int no_element; + static const short int no_element = -1; SmartVector(bool bDelete) : m_bDelete(bDelete) {}; ~SmartVector(void); // Returns index of value @@ -137,7 +137,7 @@ public: short int size(void) const { return m_vec.size(); }; }; -template const short int SmartVector::no_element = -1; +//template const short int SmartVector::no_element = -1; template SmartVector::~SmartVector(void) { --- ./include/pennflex.h- 2006-06-18 15:38:25 +0400 +++ ./include/pennflex.h 2006-06-18 15:49:17 +0400 @@ -57,7 +57,7 @@ #include # ifndef FLEX_STD -# define FLEX_STD std:: +# define FLEX_STD # endif extern "C++" { Дальше надо думать, как оторвать libpcre, которую он с собой таскает. Но для /usr/local сойдет.