On Dec 21, 2007, at 11:06 AM, Bernd Prager wrote:
>
> Hi,
>
> I just downloaded the latest trunk and got first a missing
> definition in
> domconfigurator.cpp for configure(log4cxx::File&).
>
> I added this to the header file:
>
> Index: src/main/include/log4cxx/xml/domconfigurator.h
> ===================================================================
> --- src/main/include/log4cxx/xml/domconfigurator.h (revision
> 606232)
> +++ src/main/include/log4cxx/xml/domconfigurator.h (working copy)
> @@ -247,6 +247,7 @@
> A static version of #doConfigure.
> */
> static void configure(const std::string&
> filename);
> + static void configure(log4cxx::File&);
> #if LOG4CXX_WCHAR_T_API
> static void configure(const std::wstring&
> filename);
> #endif
>
> and the build keep going until it fails with:
>
> log4cxx/src/main/cpp/domconfigurator.cpp:772: undefined reference to
> `log4cxx::helpers::FileWatchdog::DEFAULT_DELAY'
>
> Any ideas there?
>
> Thanks,
> -- Bernd Prager
>
I did commit a big change two nights ago and was time-pressed to get
on the road for the holidays. I wanted to get that committed before
leaving just in case something bad happened to my notebook. However,
I'm not seeing that problem on my machine and Gump is not having any
problems. I'd suggest either starting from a fresh checkout or
deleting src/main/include/log4cxx.h and src/main/include/private/
log4cxx_private.h and then rerunning ./autogen.sh and ./configure (or
deleting the same files before running the ant build). There were
significant changes to configure.in, log4cxx.h.in and
log4cxx_private.h.in and using the older header files could result in
issues.
As for DOMConfigurator::configure(File&), I don't see that method
appearing either in the source or header. I haven't checked out odd-
ball combinations of settings (like some that you could get from
mismatched log4cxx.h files). Perhaps, your old config file results in
building log4cxx using wchar_t as logchar but disables the wchar_t
API. That might explain the DOMConfigurator::configure(File&) but I
don't see it doing anything for DEFAULT_DELAY.
Please copy off your log4cxx.h and log4cxx_private.h files somewhere
safe, regenerate them, and try rebuilding. If that fails, try
rebuilding from a fresh checkout. If that fails, please provide the
header files and then compiler version, platform, options and such.
|