Rob Lahaye <[EMAIL PROTECTED]> writes: | Hi, > | There's a problem with threading since recent boost updates in CVS, | at least for my FreeBSD PC. > | My make ends with: > | [...] | /usr/local/bin/g++33 -g -O -fno-exceptions -W -Wall -o tex2lyx FloatList.o Floating.o counters.o lengthcommon.o lyxlayout.o lyxtextclass.o lyxlex.o lyxlex_pimpl.o boost.o context.o gettext.o lyxfont.o texparser.o tex2lyx.o preamble.o math.o table.o text.o -L/opt/lib -L/usr/local/lib ../support/.libs/libsupport.a ../../boost/libs/regex/src/.libs/libboostregex.a -lz | ../../boost/libs/regex/src/.libs/libboostregex.a(regex_synch.o): In function `boost::re_detail::re_init_threads()': | /home/lahaye/SOFTWARE/lyx-devel/boost/libs/regex/src/../../../../boost/boost/regex/v4/regex_synch.hpp:88: undefined reference to `pthread_mutex_init' | ../../boost/libs/regex/src/.libs/libboostregex.a(regex_synch.o): In function `boost::re_detail::re_free_threads()': | /home/lahaye/SOFTWARE/lyx-devel/boost/libs/regex/src/../../../../boost/boost/regex/v4/regex_synch.hpp:93: undefined reference to `pthread_mutex_destroy' | collect2: ld returned 1 exit status | gmake[4]: *** [tex2lyx] Error 1 > | On my FreeBSD PC, there should be something like this set before compilation: | setenv CXXFLAGS -D_THREAD_SAFE | setenv CFLAGS -D_THREAD_SAFE | setenv LDFLAGS -pthread > | I suppose this should be added somethere in the autoconf script.
I think the correct solution is to set the BOOST provided macro to just turn threading support off. I'll have a look. -- Lgb