Re: [Quickfix-users] Unix version compile under FreeBSD
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2005-07-28 22:23:18
|
Looks like there is a problem with the configure.in used to generate the build scripts. I'm seeing the following: freebsd2*|freebsd3*|freebsd4*) LIBS="-pthread $LIBS" AC_MSG_RESULT([-pthread]) ;; freebsdelf4*) LIBS="-pthread $LIBS" AC_MSG_RESULT([-pthread]) ;; This should probably be changed to just this: freebsd*) LIBS="-pthread $LIBS" AC_MSG_RESULT([-pthread]) ;; After making that change try running the bootstrap script to regenerate the build scripts and try again. This should ensure that all versions of freebsd get the -pthread flag which is required to link to the pthread library. --oren On Jul 28, 2005, at 4:46 PM, CASALE, JOURDAIN (TORONTO) wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/ > html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hello, > > I'm having a rough time compiling under FreeBSD 5.4. This happens > if I try to compile with or without the --with-mysql or --with- > stlport. All the necessary dependencies (i.e. libxml2) appear to be > in place. The compile always crashes at the same point on two > different servers (AMD 64 and Xeon 32 bit). > > Here is the exact output I get: > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > g++ -shared -nostdlib /usr/lib/crti.o /usr/lib/crtbeginS.o libs/ > Session.o .libs/SessionTime.o .libs/SessionFactory.o . > libs/Parser.o .libs/Log.o .libs/FileLog.o .libs/Settings.o . > libs/ConfigLexer.o .libs/MessageStore.o .libs/SocketServer.o . > libs/SocketConnector.o .libs/Acceptor.o .libs/Initiator.o . > libs/SocketAcceptor.o .libs/SocketInitiator.o .libs/SocketMonitor.o . > libs/SocketConnection.o .libs/ThreadedSocketAcceptor.o . > libs/ThreadedSocketInitiator.o .libs/ThreadedSocketConnection.o . > libs/FileStore.o .libs/MySQLStore.o .libs/MySQLLog.o .libs/ > Dictionary.o . > libs/DataDictionary.o .libs/SessionSettings.o .libs/FieldTypes.o . > libs/FieldMap.o .libs/Message.o .libs/Group.o .libs/MessageSorters.o . > libs/Utility.o .libs/LIBXML_DOMDocument.o .libs/CallStack.o - > lcompat . > -L/usr/local/lib -lxml2 -lz -liconv -L/usr/lib -lstdc++ -lm - > lgcc_pic /usr/lib/crtendS.o /usr/lib/crtn.o -Wl,-soname - > Wl,libquickfix.so.6 -o libs/libquickfix.so.6. > (cd .libs && rm -f libquickfix.so && ln -s libquickfix.so.6 > libquickfix.so) > (cd .libs && rm -f libquickfix.so && ln -s libquickfix.so.6 > libquickfix.so) > creating libquickfix.la > (cd .libs && rm -f libquickfix.la && ln -s ../libquickfix.la > libquickfix.la) > rm -rf ../../lib/libquickfix.a > rm -rf ../../lib/libquickfix.la > rm -rf ../../lib/libquickfix.so > rm -rf ../../lib/libquickfix.dylib > ln -s ../src/C++/.libs/libquickfix.a ../../lib/libquickfix.a > ln -s ../src/C++/.libs/libquickfix.la ../../lib/libquickfix.la > ln -s ../src/C++/.libs/libquickfix.so ../../lib/libquickfix.so > ln -s ../src/C++/.libs/libquickfix.dylib ../../lib/libquickfix.dylib > bash ./copy.sh ../../include/quickfix *.h > bash ./copy.sh ../../include/quickfix fix*/*.h > if g++ -DHAVE_CONFIG_H -I. -I. -I.. -IC++ -g -O2 -I/usr/local/ > include/libxml2 -I/usr/local/include -MT at.o -MD -MP -MF ".deps/ > at.Tpo" -c -o at.o `test -f 'at.cpp' || echo './'`at.cpp; then mv > ".deps/at.Tpo" ".deps/at.Po"; else rm -f ".deps/at.Tpo"; exit 1; fi > /usr/local/bin/bash ../libtool --mode=link g++ -g -O2 -I/usr/local/ > include/libxml2 -I/usr/local/include -o at at.o C++/ > libquickfix.la -lc_r -lcompat -L/usr/local/lib -lxml2 -lz -L/usr/ > local/lib -liconv -lm > mkdir .libs > g++ -g -O2 -I/usr/local/include/libxml2 -I/usr/local/include - > o .libs/at at.o C++/.libs/libquickfix.so -L/usr/local/lib -lcompat > -lxml2 -lz -liconv -lm -Wl,--rpath -Wl,/usr/local/lib > C++/.libs/libquickfix.so: undefined reference to `pthread_detach' > C++/.libs/libquickfix.so: undefined reference to `pthread_join' > C++/.libs/libquickfix.so: undefined reference to > `pthread_cond_timedwait' > *** Error code 1 > > Stop in /root/quickfix/src. > *** Error code 1 > > Stop in /root/quickfix/src. > *** Error code 1 > > Stop in /root/quickfix. > *** Error code 1 > > Stop in /root/quickfix. > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Are there any questions or log files that will help debug this? > > Thanks, > Jourdain > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/ > bsce5sf > _______________________________________________ > Quickfix-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-users > > |