Bob,
Thanks for the help. I've been trying to build GCC4.1.2 from sources since
yesterday. I've been successful at compiling the two libraries it needs
(GMP and MPFR) but as yet can't get GCC itself to build so I sent a message
to their mail list.
I just downloaded and installed GCC 4.1.1 binaries from the link that you
sent. Thanks very much for that. However now the build ("make") fails
immediately with the errors below:
$ make
Making all in docs
make[1]: Entering directory `/home/ken.klose/log4cxx/docs'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ken.klose/log4cxx/docs'
Making all in src
make[1]: Entering directory `/home/ken.klose/log4cxx/src'
if /bin/sh ../libtool --mode=compile g++ -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\" -DVERSION=\"0.10.0\"
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -I. -I. -I../include
-I../include -DLOG4CXX -D_LARGEFILE64_SOURCE -I/usr/local/include
-I/usr/local/include -I/usr/local/include -O2 -s -mms-bitfields -march=i686
-MT action.lo -MD -MP -MF ".deps/action.Tpo" \
-c -o action.lo `test -f 'action.cpp' || echo './'`action.cpp; \
then mv ".deps/action.Tpo" ".deps/action.Plo"; \
else rm -f ".deps/action.Tpo"; exit 1; \
fi
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\"
-DVERSION=\"0.10.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_UNISTD_H=1 -I. -I. -I../include -I../include -DLOG4CXX
-D_LARGEFILE64_SOURCE -I/usr/local/include -I/usr/local/include
-I/usr/local/include -O2 -s -mms-bitfields -march=i686 -MT action.lo -MD -MP
-MF .deps/action.Tpo -c action.cpp -DDLL_EXPORT -DPIC -o .libs/action.o
In file included from action.cpp:17:
../include/log4cxx/logstring.h:21:18: error: string: No such file or
directory
In file included from ../include/log4cxx/helpers/object.h:22,
from ../include/log4cxx/helpers/objectimpl.h:21,
from ../include/log4cxx/rolling/action.h:22,
from action.cpp:18:
../include/log4cxx/helpers/class.h:23:15: error: map: No such file or
directory
In file included from ../include/log4cxx/helpers/pool.h:22,
from ../include/log4cxx/rolling/action.h:24,
from action.cpp:18:
/mingw/include/string.h:24:20: error: stddef.h: No such file or directory
../include/log4cxx/logstring.h:43: error: expected initializer before '<'
token
../include/log4cxx/helpers/class.h:38: error: 'LogString' does not name a
type
../include/log4cxx/helpers/class.h:40: error: expected ',' or '...' before
'&' token
../include/log4cxx/helpers/class.h:40: error: ISO C++ forbids declaration of
'LogString' with no type
../include/log4cxx/helpers/class.h:49: error: ISO C++ forbids declaration of
'map' with no type
../include/log4cxx/helpers/class.h:49: error: typedef name may not be a
nested-name-specifier
../include/log4cxx/helpers/class.h:49: error: expected ';' before '<' token
../include/log4cxx/helpers/class.h:50: error: ISO C++ forbids declaration of
'ClassMap' with no type
../include/log4cxx/helpers/class.h:50: error: expected ';' before '&' token
/mingw/include/string.h:36: error: 'size_t' has not been declared
/mingw/include/string.h:37: error: 'size_t' has not been declared
/mingw/include/string.h:38: error: 'size_t' has not been declared
/mingw/include/string.h:39: error: 'size_t' has not been declared
/mingw/include/string.h:40: error: 'size_t' has not been declared
/mingw/include/string.h:46: error: expected constructor, destructor, or type
conversion before 'strcspn'
/mingw/include/string.h:49: error: expected constructor, destructor, or type
conversion before 'strlen'
/mingw/include/string.h:50: error: 'size_t' has not been declared
/mingw/include/string.h:51: error: 'size_t' has not been declared
/mingw/include/string.h:52: error: 'size_t' has not been declared
/mingw/include/string.h:55: error: expected constructor, destructor, or type
conversion before 'strspn'
/mingw/include/string.h:58: error: expected constructor, destructor, or type
conversion before 'strxfrm'
/mingw/include/string.h:65: error: 'size_t' has not been declared
/mingw/include/string.h:66: error: 'size_t' has not been declared
/mingw/include/string.h:72: error: 'size_t' has not been declared
/mingw/include/string.h:73: error: 'size_t' has not been declared
/mingw/include/string.h:77: error: 'size_t' has not been declared
/mingw/include/string.h:80: error: 'size_t' has not been declared
/mingw/include/string.h:81: error: 'size_t' has not been declared
/mingw/include/string.h:90: error: 'size_t' has not been declared
/mingw/include/string.h:91: error: 'size_t' has not been declared
/mingw/include/string.h:100: error: 'size_t' has not been declared
/mingw/include/string.h:102: error: 'size_t' has not been declared
/mingw/include/string.h:104: error: 'size_t' has not been declared
/mingw/include/string.h:109: error: 'size_t' has not been declared
/mingw/include/string.h:125: error: expected constructor, destructor, or
type conversion before 'wcscspn'
/mingw/include/string.h:127: error: expected constructor, destructor, or
type conversion before 'wcslen'
/mingw/include/string.h:128: error: 'size_t' has not been declared
/mingw/include/string.h:129: error: 'size_t' has not been declared
/mingw/include/string.h:130: error: 'size_t' has not been declared
/mingw/include/string.h:133: error: expected constructor, destructor, or
type conversion before 'wcsspn'
Thanks again to you and Curt Arnold for all the help.
Ken