logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: ant build error - g4cxx: Cannot get information about host: unknown.host.local
Date Thu, 27 Jul 2006 04:06:10 GMT

On Jul 25, 2006, at 5:29 PM, Mark wrote:

> I am trying to do a build for MS VC++ 7.1.  I am using
> the latest ant and jdk 1.5.
> I checked out the svn trunk and followed the
> directions in the install file.  I have patch.exe and
> sed.exe installed via cygwin (and cygwin\bin at the
> end of my path).
> The build of the .lib and .dll seems to succeed, but I
> get an error during the test.  Here is the output:
> [exec] 2006-07-25 17:38:22,305 DEBUG
> org.apache.log4j.rolling.SizeBasedRoll
> ingTest -Hello--24
>      [exec]
> ..................................................................lo
> g4cxx: Cannot get information about host:
> unknown.host.local
>      [exec] .......................................
>      [exec] !!!FAILURES!!!
>      [exec] Test Results:
>      [exec] Run:  261   Failures: 0   Errors: 1
>      [exec] 1) test:
> OptionConverterTestCase::testUserHome (E)
>      [exec] uncaught exception of unknown type
> C:\development\log4cxx\trunk\build.xml:1082: exec
> returned: 1
> Any suggestions on what I am missing?
> Thanks

I'm pretty sure that the message "Cannot get information about host:  
unknown.host.local" is unrelated to the test failure in  
"OptionConverterTestCase::testUserHome" in file tests/src/helpers/ 

testUserHome didn't check the return status of the  
apr_uid_homepath_get(), so if that failed you might get an exception  
in the subsequent code.  I've modified the test (rev 425948) to check  
the status value of the apr methods and skip the rest of the test if  
any of the APR methods return a failure code.  From examining the APR  
source code, the test would fail on Windows CE since it would return  
APR_ENOTIMPL for apr_uid_current.  I'm not sure of a mechanism that  
would cause the test to fail on a traditional Windows install, but  
maybe if the user's home directory isn't set or doesn't exist.

Please update and rerun and see if the test now passes.  If you are  
curious, try to set into apr_uid_homepath_get() and see where it goes  

View raw message