logo       

Re: ant build error - g4cxx: Cannot get information about host: unknown.hos: msg#00018

Subject: Re: ant build error - g4cxx: Cannot get information about host: unknown.host.local

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

BUILD FAILED
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/ optionconvertertestcase.cpp.

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 wrong.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe