Re: [Quickfix-users] Can't compile
Brought to you by:
orenmnero
From: Kenny S. <ks...@co...> - 2009-10-08 16:12:24
|
We are building/testing with gcc 3.4, 4.1, and 4.3 nightly, so this must be something new with 4.4. Kenny On Thu, Oct 8, 2009 at 11:03 AM, Hei Chan <str...@ya...> wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > After I added #include <cstring> and #include<cstdio> to Utilities.h and > #include <cstdio> to ConfigLexer.cpp, it built successfully. > Kind of odd that I need to edit the source. > > ------------------------------ > *From:* Hei Chan <str...@ya...> > *To:* qui...@li... > *Sent:* Thu, October 8, 2009 8:32:39 AM > *Subject:* [Quickfix-users] Can't compile > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > I just installed Fedora 11 and g++ 4.4.1-2. > However, I am not able to build the latest quickfix C++. > > [hchan@hchanlinux quickfix]$ ./configure > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... /bin/mkdir -p > checking for gawk... gawk > checking whether make sets $(MAKE)... yes > checking for g++... g++ > checking for C++ compiler default output file name... a.out > checking whether the C++ compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C++ compiler... yes > checking whether g++ accepts -g... yes > checking for style of include used by make... GNU > checking dependency style of g++... gcc3 > checking for gcc... gcc > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > checking dependency style of gcc... gcc3 > checking build system type... i686-pc-linux-gnu > checking host system type... i686-pc-linux-gnu > checking for a sed that does not truncate output... /bin/sed > checking for grep that handles long lines and -e... /bin/grep > checking for egrep... /bin/grep -E > checking for fgrep... /bin/grep -F > checking for ld used by gcc... /usr/bin/ld > checking if the linker (/usr/bin/ld) is GNU ld... yes > checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B > checking the name lister (/usr/bin/nm -B) interface... BSD nm > checking whether ln -s works... yes > checking the maximum length of command line arguments... 1966080 > checking whether the shell understands some XSI constructs... yes > checking whether the shell understands "+="... yes > checking for /usr/bin/ld option to reload object files... -r > checking for objdump... objdump > checking how to recognize dependent libraries... pass_all > checking for ar... ar > checking for strip... strip > checking for ranlib... ranlib > checking command to parse /usr/bin/nm -B output from gcc object... ok > checking how to run the C preprocessor... gcc -E > checking for ANSI C header files... yes > checking for sys/types.h... yes > checking for sys/stat.h... yes > checking for stdlib.h... yes > checking for string.h... yes > checking for memory.h... yes > checking for strings.h... yes > checking for inttypes.h... yes > checking for stdint.h... yes > checking for unistd.h... yes > checking for dlfcn.h... yes > checking whether we are using the GNU C++ compiler... (cached) yes > checking whether g++ accepts -g... (cached) yes > checking dependency style of g++... (cached) gcc3 > checking how to run the C++ preprocessor... g++ -E > checking for objdir... .libs > checking if gcc supports -fno-rtti -fno-exceptions... no > checking for gcc option to produce PIC... -fPIC -DPIC > checking if gcc PIC flag -fPIC -DPIC works... yes > checking if gcc static flag -static works... no > checking if gcc supports -c -o file.o... yes > checking if gcc supports -c -o file.o... (cached) yes > checking whether the gcc linker (/usr/bin/ld) supports shared libraries... > yes > checking whether -lc should be explicitly linked in... no > checking dynamic linker characteristics... GNU/Linux ld.so > checking how to hardcode library paths into programs... immediate > checking whether stripping libraries is possible... yes > checking if libtool supports shared libraries... yes > checking whether to build shared libraries... yes > checking whether to build static libraries... no > checking for ld used by g++... /usr/bin/ld > checking if the linker (/usr/bin/ld) is GNU ld... yes > checking whether the g++ linker (/usr/bin/ld) supports shared libraries... > yes > checking for g++ option to produce PIC... -fPIC -DPIC > checking if g++ PIC flag -fPIC -DPIC works... yes > checking if g++ static flag -static works... no > checking if g++ supports -c -o file.o... yes > checking if g++ supports -c -o file.o... (cached) yes > checking whether the g++ linker (/usr/bin/ld) supports shared libraries... > yes > checking dynamic linker characteristics... GNU/Linux ld.so > checking how to hardcode library paths into programs... immediate > checking for flex... no > checking for lex... no > ./configure: line 16005: ruby: command not found > checking for xml2-config... /usr/bin/xml2-config > checking for libxml - version >= 2.0.0... yes (version 2.7.5) > checking for shutdown in -lc... yes > checking for inet_addr in -lc... yes > checking for nanosleep in -lc... yes > checking for ftime in -lcompat... no > checking which threading environment to use... -lpthread > checking for pthread_create in -lpthread... yes > checking stdio.h usability... yes > checking stdio.h presence... yes > checking for stdio.h... yes > checking for STREAMS ioctl... no > checking for socklen_t... yes > checking for ftime... yes > checking for set_terminate in the global namespace... no > checking for set_terminate in the std namespace... yes > checking for typeinfo in the global namespace... no > checking for typeinfo in the std namespace... yes > checking for gethostbyname_r with input result... yes > checking for boost::pool_allocator... no > checking for boost::fast_pool_allocator... no > checking __gnu_cxx::__pool_alloc... yes > checking __gnu_cxx::__mt_alloc... yes > checking __gnu_cxx::bitmap_allocator... yes > checking for cplus_demangle in -liberty... no > checking if select modifies timeval parameter... yes > configure: creating ./config.status > config.status: creating quickfix.pc > config.status: creating Makefile > config.status: creating src/Makefile > config.status: creating src/C++/Makefile > config.status: creating src/C++/test/Makefile > config.status: creating src/java/Makefile > config.status: creating src/java/cfg/Makefile > config.status: creating src/java/src/Makefile > config.status: creating src/java/src/quickfix/Makefile > config.status: creating src/java/src/quickfix/field/Makefile > config.status: creating src/java/src/quickfix/fix40/Makefile > config.status: creating src/java/src/quickfix/fix41/Makefile > config.status: creating src/java/src/quickfix/fix42/Makefile > config.status: creating src/java/src/quickfix/fix43/Makefile > config.status: creating src/java/src/quickfix/fix44/Makefile > config.status: creating src/python/Makefile > config.status: creating src/ruby/Makefile > config.status: creating bin/Makefile > config.status: creating bin/cfg/Makefile > config.status: creating spec/Makefile > config.status: creating test/Makefile > config.status: creating test/atrun/Makefile > config.status: creating test/cfg/Makefile > config.status: creating test/definitions/Makefile > config.status: creating test/definitions/server/Makefile > config.status: creating test/definitions/server/future/Makefile > config.status: creating examples/Makefile > config.status: creating examples/executor/Makefile > config.status: creating examples/executor/C++/Makefile > config.status: creating examples/executor/java/Makefile > config.status: creating examples/executor/java/src/Makefile > config.status: creating examples/ordermatch/Makefile > config.status: creating examples/ordermatch/test/Makefile > config.status: creating examples/tradeclient/Makefile > config.status: creating examples/tradeclientgui/Makefile > config.status: creating examples/tradeclientgui/banzai/Makefile > config.status: creating examples/tradeclientgui/banzai/test/Makefile > config.status: creating examples/tradeclientgui/banzai/src/Makefile > config.status: creating > examples/tradeclientgui/banzai/src/quickfix/Makefile > config.status: creating > examples/tradeclientgui/banzai/src/quickfix/banzai/Makefile > config.status: creating > examples/tradeclientgui/banzai/src/quickfix/banzai/ui/Makefile > config.status: creating doc/Makefile > config.status: creating doc/html/Makefile > config.status: creating CPPTest/Makefile > config.status: creating config.h > config.status: config.h is unchanged > config.status: executing depfiles commands > config.status: executing libtool commands > > > [hchan@hchanlinux quickfix]$ make > make all-recursive > make[1]: Entering directory `/home/hchan/quickfix' > Making all in src > make[2]: Entering directory `/home/hchan/quickfix/src' > Making all in C++ > make[3]: Entering directory `/home/hchan/quickfix/src/C++' > Making all in test > make[4]: Entering directory `/home/hchan/quickfix/src/C++/test' > /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > -I../../.. -I.. -g -O2 -Wall -ansi -Wpointer-arith -Wwrite-strings > -I/usr/include/libxml2 -O0 -g -MT FieldBaseTestCase.lo -MD -MP -MF > .deps/FieldBaseTestCase.Tpo -c -o FieldBaseTestCase.lo FieldBaseTestCase.cpp > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I.. -g -O2 -Wall > -ansi -Wpointer-arith -Wwrite-strings -I/usr/include/libxml2 -O0 -g -MT > FieldBaseTestCase.lo -MD -MP -MF .deps/FieldBaseTestCase.Tpo -c > FieldBaseTestCase.cpp -fPIC -DPIC -o .libs/FieldBaseTestCase.o > In file included from ../FieldTypes.h:29, > from ../FieldConvertors.h:25, > from ../Field.h:32, > from FieldBaseTestCase.h:26, > from FieldBaseTestCase.cpp:27: > ../Utility.h:174: error: `std::sprintf' has not been declared > ../Utility.h:179: error: `std::strcmp' has not been declared > ../Utility.h:181: error: `std::strlen' has not been declared > ../Utility.h:184: error: `std::memcpy' has not been declared > ../Utility.h:185: error: `std::memset' has not been declared > ../Utility.h:189: error: `std::strerror' has not been declared > In file included from ../FieldConvertors.h:26, > from ../Field.h:32, > from FieldBaseTestCase.h:26, > from FieldBaseTestCase.cpp:27: > ../Exceptions.h: In member function `std::string > FIX::SocketException::errorToWhat()': > ../Exceptions.h:253: error: `strerror' was not declared in this scope > In file included from FieldBaseTestCase.h:26, > from FieldBaseTestCase.cpp:27: > ../Field.h: In member function `void FIX::FieldBase::calculate() const': > ../Field.h:110: error: `memcpy' was not declared in this scope > make[4]: *** [FieldBaseTestCase.lo] Error 1 > make[4]: Leaving directory `/home/hchan/quickfix/src/C++/test' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/hchan/quickfix/src/C++' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/home/hchan/quickfix/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/hchan/quickfix' > make: *** [all] Error 2 > > Any idea? > Thanks in advance. > > Cheers, > Hei > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Quickfix-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-users > > -- Kenny Stone Connamara Systems, LLC |