Re: [Quickfix-developers] compile problems under FC2 and FC3
Brought to you by:
orenmnero
From: Joerg T. <Joe...@ma...> - 2004-11-22 20:12:00
|
Hi Brian, > with the code from cvs for the last couple of weeks... > > i'm getting compile errors under Fedora Core 2 and 3... > > make is not including the include flags for libxml2 > > i think it's a disconnect somewhere in automake... > the configure script finds and seems to set the > flags correctly, but then they are not included > when make runs. (this is stretching my knowledge of automake) > > g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I.. -I../.. -g -O2 > -I/usr/include/mysql -I/usr/java/j2sdk1.4.2_04/include > -I/usr/java/j2sdk1.4.2_04/include/linux -MT DataDictionary.lo -MD -MP > -MF .deps/DataDictionary.Tpo -c DataDictionary.cpp -fPIC -DPIC -o > .libs/DataDictionary.o > In file included from DataDictionary.cpp:37: > LIBXML_DOMDocument.h:32:30: libxml/xmlmemory.h: No such file or directory > LIBXML_DOMDocument.h:33:27: libxml/parser.h: No such file or directory > In file included from DataDictionary.cpp:37: > LIBXML_DOMDocument.h:40: error: expected `)' before "pNode" > LIBXML_DOMDocument.h:47: error: `xmlNodePtr' does not name a type > LIBXML_DOMDocument.h:53: error: expected `)' before "pNode" > LIBXML_DOMDocument.h:64: error: `xmlNodePtr' does not name a type > LIBXML_DOMDocument.h:80: error: `xmlDocPtr' does not name a type I had these kinds of errors as I tried to compile version 1.9.2 of QuickFIX on a Debian testing system. As always, I first did ./bootstrap used the newest stuff from my Debian system. This broke is the above way. Using the generated files already provided in the download worked fine. I tracked down the problem to the usage of CPPFLAGS and CXX_FLAGS (or CFLAGS) to access libxml2. Basically, the newer versions of automake use CPPFLAGS since the specification of the include path via -I is part of the C-PreProcessor (CPP) phase. But I did not spend resolving that further. Probably setting both CPPFLAGS and CXXFLAGS somewhere would help to make that compatible. Sorry for this rather rough answer, I am quite busy at the moment. Cheers, Jörg -- Joerg Thoennes http://macd.com Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen |