Thanks Curt,
I took the refresh from CVS, and that got me past the INT64_C problem,
now i unfortunately ran into the next problem whilst building unittests: Have you seen this before?
(again this is on Linux Fedora 3, gcc 3.4.2 20041017 (Red Hat 3.4.2-6.fc3))


build-unittest:
[mkdir] Created dir: /root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/build/debug/shared/log4cxx-test_obj
[cc] 69 total files to be compiled.
[cc] /root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/include/log4cxx/helpers/locale.h: In member function `virtual void L7dTestCase::setUp()':
[cc] /root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/include/log4cxx/helpers/locale.h:40: error: `log4cxx::helpers::Locale::Locale(const log4cxx::helpers::Locale&)' is protected
[cc] /root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/tests/src/l7dtestcase.cpp:52: error: within this context
[cc] /root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/include/log4cxx/helpers/locale.h:40: error: `log4cxx::helpers::Locale::Locale(const log4cxx::helpers::Locale&)' is protected
[cc] /root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/tests/src/l7dtestcase.cpp:56: error: within this context
[cc] /root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/include/log4cxx/helpers/locale.h:40: error: `log4cxx::helpers::Locale::Locale(const log4cxx::helpers::Locale&)' is protected
[cc] /root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/tests/src/l7dtestcase.cpp:60: error: within this context
[cc] /root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/include/log4cxx/helpers/locale.h: In member function `log4cxx::helpers::ResourceBundlePtr LoggerTestCase::getBundle(const log4cxx::LogString&, const log4cxx::LogString&)':
[cc] /root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/include/log4cxx/helpers/locale.h:40: error: `log4cxx::helpers::Locale::Locale(const log4cxx::helpers::Locale&)' is protected
[cc] /root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/tests/src/loggertestcase.cpp:288: error: within this context


BUILD FAILED
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/build.xml:749: gcc failed with return code 1


Full transcript attached to this email.

cheers,
[EMAIL PROTECTED]

Curt Arnold wrote:


On Mar 3, 2005, at 6:25 PM, Jwahar Bammi wrote:

Hmm...
I checked out SVN HEAD for apr/apr-utils/apr-iconv built and installed them, no difference. i still get the INT64_C failure.


Gump, please advise what you do?


Gump is an automated build system that continually builds hundreds of open-source projects (http://gump.apache.org). The main Gump build server runs on a Debian Linux. Gump has built successfully for 19 straight days on brutus.apache.org which is a Debian box, so the problem was. at least, distribution specific.


The underlying problem is in APR, it defines macros APR_INT64_C and similar that for gcc is defined as INT64_C, however INT64_C isn't properly defined which results in the error that you were seeing. I was lead to believe that it had been resolved in the APR subversion head, but apparently not.

There were workarounds for the problem in many of the other places where the problem was occurring, however new code in timezone.cpp triggered the issue and didn't have the workaround. I've committed changes that replaced the other workarounds with the recommended workaround (adding a #define __STDC_CONSTANT_MACROS before including apr.h) and added the workaround to timezone.cpp.




-- Jwahar Bammi [EMAIL PROTECTED]

Buildfile: build.xml

os-detect:

win-init:

mac-init:

unix-init:

init:
    [mkdir] Created dir: 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/build
    [mkdir] Created dir: 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/build/debug/shared

build-apr:

build-apriconv:

build-aprutil:

build:
    [mkdir] Created dir: 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/build/debug/shared/log4cxx_obj
       [cc] 92 total files to be compiled.
       [cc] 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/src/stringhelper.cpp: 
In static member function `static log4cxx::LogString 
log4cxx::helpers::StringHelper::formatHex(const void*)':
       [cc] 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/src/stringhelper.cpp:268:
 warning: cast from pointer to integer of different size
       [cc] Starting link

build-shortsocketserver:
    [mkdir] Created dir: 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/build/debug/shared/shortsocketserver_obj
       [cc] 2 total files to be compiled.
       [cc] Starting link

build-cppunit:

get-cppunit-src:
    [mkdir] Created dir: 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/lib
      [get] Getting: 
http://unc.dl.sourceforge.net/sourceforge/cppunit/cppunit-1.10.2.tar.gz

untar-cppunit-src:
    [untar] Expanding: 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/lib/cppunit-1.10.2.tar.gz
 into /root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/lib

os-detect:

win-init:

unix-init:

init:

configure-check:

unix-configure:
     [exec] checking for a BSD-compatible install... /usr/bin/install -c
     [exec] checking whether build environment is sane... yes
     [exec] checking for gawk... gawk
     [exec] checking whether make sets $(MAKE)... yes
     [exec] checking whether make sets $(MAKE)... (cached) yes
     [exec] checking for a BSD-compatible install... /usr/bin/install -c
     [exec] checking for gcc... gcc
     [exec] checking for C compiler default output... a.out
     [exec] checking whether the C compiler works... yes
     [exec] checking whether we are cross compiling... no
     [exec] checking for suffix of executables... 
     [exec] checking for suffix of object files... o
     [exec] checking whether we are using the GNU C compiler... yes
     [exec] checking whether gcc accepts -g... yes
     [exec] checking for gcc option to accept ANSI C... none needed
     [exec] checking for style of include used by make... GNU
     [exec] checking dependency style of gcc... gcc3
     [exec] checking for g++... g++
     [exec] checking whether we are using the GNU C++ compiler... yes
     [exec] checking whether g++ accepts -g... yes
     [exec] checking dependency style of g++... gcc3
     [exec] checking build system type... i686-pc-linux
     [exec] checking host system type... i686-pc-linux
     [exec] checking for a sed that does not truncate output... /bin/sed
     [exec] checking for egrep... grep -E
     [exec] checking for ld used by gcc... /usr/bin/ld
     [exec] checking if the linker (/usr/bin/ld) is GNU ld... yes
     [exec] checking for /usr/bin/ld option to reload object files... -r
     [exec] checking for BSD-compatible nm... /usr/bin/nm -B
     [exec] checking whether ln -s works... yes
     [exec] checking how to recognise dependent libraries... pass_all
     [exec] checking how to run the C preprocessor... gcc -E
     [exec] checking for ANSI C header files... yes
     [exec] checking for sys/types.h... yes
     [exec] checking for sys/stat.h... yes
     [exec] checking for stdlib.h... yes
     [exec] checking for string.h... yes
     [exec] checking for memory.h... yes
     [exec] checking for strings.h... yes
     [exec] checking for inttypes.h... yes
     [exec] checking for stdint.h... yes
     [exec] checking for unistd.h... yes
     [exec] checking dlfcn.h usability... yes
     [exec] checking dlfcn.h presence... yes
     [exec] checking for dlfcn.h... yes
     [exec] checking how to run the C++ preprocessor... g++ -E
     [exec] checking for g77... g77
     [exec] checking whether we are using the GNU Fortran 77 compiler... yes
     [exec] checking whether g77 accepts -g... yes
     [exec] checking the maximum length of command line arguments... 32768
     [exec] checking command to parse /usr/bin/nm -B output from gcc object... 
ok
     [exec] checking for objdir... .libs
     [exec] checking for ar... ar
     [exec] checking for ranlib... ranlib
     [exec] checking for strip... strip
     [exec] checking if gcc static flag  works... yes
     [exec] checking if gcc supports -fno-rtti -fno-exceptions... no
     [exec] checking for gcc option to produce PIC... -fPIC
     [exec] checking if gcc PIC flag -fPIC works... yes
     [exec] checking if gcc supports -c -o file.o... yes
     [exec] checking whether the gcc linker (/usr/bin/ld) supports shared 
libraries... yes
     [exec] checking whether -lc should be explicitly linked in... no
     [exec] checking how to hardcode library paths into programs... immediate
     [exec] checking whether stripping libraries is possible... yes
     [exec] checking dynamic linker characteristics... GNU/Linux ld.so
     [exec] checking if libtool supports shared libraries... yes
     [exec] checking whether to build shared libraries... yes
     [exec] checking whether to build static libraries... yes
     [exec] configure: creating libtool
     [exec] appending configuration tag "CXX" to libtool
     [exec] checking for ld used by g++... /usr/bin/ld
     [exec] checking if the linker (/usr/bin/ld) is GNU ld... yes
     [exec] checking whether the g++ linker (/usr/bin/ld) supports shared 
libraries... yes
     [exec] checking for g++ option to produce PIC... -fPIC
     [exec] checking if g++ PIC flag -fPIC works... yes
     [exec] checking if g++ supports -c -o file.o... yes
     [exec] checking whether the g++ linker (/usr/bin/ld) supports shared 
libraries... yes
     [exec] checking how to hardcode library paths into programs... immediate
     [exec] checking whether stripping libraries is possible... yes
     [exec] checking dynamic linker characteristics... GNU/Linux ld.so
     [exec] appending configuration tag "F77" to libtool
     [exec] checking if libtool supports shared libraries... yes
     [exec] checking whether to build shared libraries... yes
     [exec] checking whether to build static libraries... yes
     [exec] checking for g77 option to produce PIC... -fPIC
     [exec] checking if g77 PIC flag -fPIC works... yes
     [exec] checking if g77 supports -c -o file.o... yes
     [exec] checking whether the g77 linker (/usr/bin/ld) supports shared 
libraries... yes
     [exec] checking how to hardcode library paths into programs... immediate
     [exec] checking whether stripping libraries is possible... yes
     [exec] checking dynamic linker characteristics... GNU/Linux ld.so
     [exec] checking for shl_load... no
     [exec] checking for shl_load in -ldld... no
     [exec] checking for dlopen in -ldl... yes
     [exec] checking for dlerror... yes
     [exec] checking for doxygen... /usr/bin/doxygen
     [exec] checking for dot... no
     [exec] checking for cmath... yes
     [exec] checking whether the compiler supports Run-Time Type 
Identification... yes
     [exec] checking whether the compiler supports GCC C++ ABI name 
demangling... yes
     [exec] checking whether the compiler implements namespaces... yes
     [exec] checking whether std::string::compare takes a string in argument 
1... no
     [exec] checking whether the compiler has stringstream... yes
     [exec] checking whether the library defines class strstream... checking 
strstream usability... yes
     [exec] checking strstream presence... yes
     [exec] checking for strstream... yes
     [exec] yes
     [exec] configure: creating ./config.status
     [exec] config.status: creating Makefile
     [exec] config.status: creating cppunit.spec
     [exec] config.status: creating cppunit-config
     [exec] config.status: creating src/Makefile
     [exec] config.status: creating src/DllPlugInTester/Makefile
     [exec] config.status: creating src/cppunit/Makefile
     [exec] config.status: creating include/Makefile
     [exec] config.status: creating include/cppunit/Makefile
     [exec] config.status: creating include/cppunit/config/Makefile
     [exec] config.status: creating include/cppunit/extensions/Makefile
     [exec] config.status: creating include/cppunit/plugin/Makefile
     [exec] config.status: creating include/cppunit/portability/Makefile
     [exec] config.status: creating include/cppunit/tools/Makefile
     [exec] config.status: creating include/cppunit/ui/Makefile
     [exec] config.status: creating include/cppunit/ui/mfc/Makefile
     [exec] config.status: creating include/cppunit/ui/qt/Makefile
     [exec] config.status: creating include/cppunit/ui/text/Makefile
     [exec] config.status: creating doc/Makefile
     [exec] config.status: creating doc/Doxyfile
     [exec] config.status: creating examples/Makefile
     [exec] config.status: creating examples/simple/Makefile
     [exec] config.status: creating examples/hierarchy/Makefile
     [exec] config.status: creating examples/cppunittest/Makefile
     [exec] config.status: creating examples/ClockerPlugIn/Makefile
     [exec] config.status: creating examples/DumperPlugIn/Makefile
     [exec] config.status: creating examples/money/Makefile
     [exec] config.status: creating config/config.h
     [exec] config.status: executing depfiles commands
     [exec] config.status: executing default commands
     [exec] creating include/cppunit/config-auto.h - prefix CPPUNIT for 
config/config.h defines
     [exec] /* automatically generated config/ contrib/ doc/ examples/ include/ 
lib

win-configure:

configure:

build:
    [mkdir] Created dir: 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/build/debug/static/cppunit_obj
       [cc] 49 total files to be compiled.
       [cc] Starting link
       [cc] /usr/bin/ar: creating libcppunit.a
       [cc] a - cppunit_obj/TestLeaf.o
       [cc] a - cppunit_obj/AdditionalMessage.o
       [cc] a - cppunit_obj/XmlDocument.o
       [cc] a - cppunit_obj/DynamicLibraryManagerException.o
       [cc] a - cppunit_obj/TestResult.o
       [cc] a - cppunit_obj/ProtectorChain.o
       [cc] a - cppunit_obj/TestFailure.o
       [cc] a - cppunit_obj/TestFactoryRegistry.o
       [cc] a - cppunit_obj/TestCase.o
       [cc] a - cppunit_obj/ShlDynamicLibraryManager.o
       [cc] a - cppunit_obj/TestNamer.o
       [cc] a - cppunit_obj/Message.o
       [cc] a - cppunit_obj/XmlOutputter.o
       [cc] a - cppunit_obj/DynamicLibraryManager.o
       [cc] a - cppunit_obj/Test.o
       [cc] a - cppunit_obj/UnixDynamicLibraryManager.o
       [cc] a - cppunit_obj/XmlOutputterHook.o
       [cc] a - cppunit_obj/XmlElement.o
       [cc] a - cppunit_obj/TestSuiteBuilderContext.o
       [cc] a - cppunit_obj/TextOutputter.o
       [cc] a - cppunit_obj/TextTestRunner.o
       [cc] a - cppunit_obj/TestSetUp.o
       [cc] a - cppunit_obj/StringTools.o
       [cc] a - cppunit_obj/TestComposite.o
       [cc] a - cppunit_obj/Asserter.o
       [cc] a - cppunit_obj/TestCaseDecorator.o
       [cc] a - cppunit_obj/Win32DynamicLibraryManager.o
       [cc] a - cppunit_obj/TestPath.o
       [cc] a - cppunit_obj/TypeInfoHelper.o
       [cc] a - cppunit_obj/TextTestResult.o
       [cc] a - cppunit_obj/SynchronizedObject.o
       [cc] a - cppunit_obj/BeOsDynamicLibraryManager.o
       [cc] a - cppunit_obj/SourceLine.o
       [cc] a - cppunit_obj/TestAssert.o
       [cc] a - cppunit_obj/BriefTestProgressListener.o
       [cc] a - cppunit_obj/TestResultCollector.o
       [cc] a - cppunit_obj/Protector.o
       [cc] a - cppunit_obj/PlugInManager.o
       [cc] a - cppunit_obj/TestDecorator.o
       [cc] a - cppunit_obj/PlugInParameters.o
       [cc] a - cppunit_obj/TestPlugInDefaultImpl.o
       [cc] a - cppunit_obj/TestSuccessListener.o
       [cc] a - cppunit_obj/TestSuite.o
       [cc] a - cppunit_obj/TextTestProgressListener.o
       [cc] a - cppunit_obj/RepeatedTest.o
       [cc] a - cppunit_obj/CompilerOutputter.o
       [cc] a - cppunit_obj/Exception.o
       [cc] a - cppunit_obj/TestRunner.o
       [cc] a - cppunit_obj/DefaultProtector.o

build-unittest:
    [mkdir] Created dir: 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/build/debug/shared/log4cxx-test_obj
       [cc] 69 total files to be compiled.
       [cc] 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/include/log4cxx/helpers/locale.h:
 In member function `virtual void L7dTestCase::setUp()':
       [cc] 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/include/log4cxx/helpers/locale.h:40:
 error: `log4cxx::helpers::Locale::Locale(const log4cxx::helpers::Locale&)' is 
protected
       [cc] 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/tests/src/l7dtestcase.cpp:52:
 error: within this context
       [cc] 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/include/log4cxx/helpers/locale.h:40:
 error: `log4cxx::helpers::Locale::Locale(const log4cxx::helpers::Locale&)' is 
protected
       [cc] 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/tests/src/l7dtestcase.cpp:56:
 error: within this context
       [cc] 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/include/log4cxx/helpers/locale.h:40:
 error: `log4cxx::helpers::Locale::Locale(const log4cxx::helpers::Locale&)' is 
protected
       [cc] 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/tests/src/l7dtestcase.cpp:60:
 error: within this context
       [cc] 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/include/log4cxx/helpers/locale.h:
 In member function `log4cxx::helpers::ResourceBundlePtr 
LoggerTestCase::getBundle(const log4cxx::LogString&, const 
log4cxx::LogString&)':
       [cc] 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/include/log4cxx/helpers/locale.h:40:
 error: `log4cxx::helpers::Locale::Locale(const log4cxx::helpers::Locale&)' is 
protected
       [cc] 
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/tests/src/loggertestcase.cpp:288:
 error: within this context

BUILD FAILED
/root/Memento/dev/src/trunk/log4cxx-0.98/logging-log4cxx/build.xml:749: gcc 
failed with return code 1

Total time: 2 minutes 46 seconds

Reply via email to