logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Madhu Gowda <madhu.gowd...@yahoo.com>
Subject Re: problems in building log4cxx-0.10.0
Date Mon, 05 May 2008 13:12:27 GMT
<table cellspacing='0' cellpadding='0' border='0' ><tr><td style='font: inherit;'><P>Hi,</P>
<P>&nbsp;</P>
<P>I am using log4cxx-0.10.0 with Visual Studio 2005.</P>
<P>&nbsp;</P>
<P>I am able to successfully build apr-1.lib and aprutil-1.lib.</P>
<P>But, when I try to build log4cxx I am getting following linker errors:</P>
<P>&nbsp;</P>
<P>Error&nbsp;1&nbsp;error LNK2019: unresolved external symbol _XML_SetCharacterDataHandler
referenced in function <A href="mailto:_apr_xml_parser_create@4">_apr_xml_parser_create@4</A>&nbsp;aprutil-1.lib&nbsp;<BR>Error&nbsp;2&nbsp;error
LNK2019: unresolved external symbol _XML_SetElementHandler referenced in function <A href="mailto:_apr_xml_parser_create@4">_apr_xml_parser_create@4</A>&nbsp;aprutil-1.lib&nbsp;<BR>Error&nbsp;3&nbsp;error
LNK2019: unresolved external symbol _XML_SetUserData referenced in function <A href="mailto:_apr_xml_parser_create@4">_apr_xml_parser_create@4</A>&nbsp;aprutil-1.lib&nbsp;<BR>Error&nbsp;4&nbsp;error
LNK2019: unresolved external symbol _XML_ParserCreate referenced in function <A href="mailto:_apr_xml_parser_create@4">_apr_xml_parser_create@4</A>&nbsp;aprutil-1.lib&nbsp;<BR>Error&nbsp;5&nbsp;error
LNK2019: unresolved external symbol _XML_ParserFree referenced in function
 _cleanup_parser&nbsp;aprutil-1.lib&nbsp;<BR>Error&nbsp;6&nbsp;error
LNK2019: unresolved external symbol _XML_GetErrorCode referenced in function _do_parse&nbsp;aprutil-1.lib&nbsp;<BR>Error&nbsp;7&nbsp;error
LNK2019: unresolved external symbol _XML_Parse referenced in function _do_parse&nbsp;aprutil-1.lib&nbsp;<BR>Error&nbsp;8&nbsp;error
LNK2019: unresolved external symbol _XML_ErrorString referenced in function <A href="mailto:_apr_xml_parser_geterror@12">_apr_xml_parser_geterror@12</A>&nbsp;aprutil-1.lib&nbsp;<BR>Error&nbsp;9&nbsp;fatal
error LNK1120: 8 unresolved externals&nbsp;.\Debug/log4cxx.dll</P>
<P>&nbsp;</P>
<P>Please, help on fixing this issue.</P>
<P>&nbsp;</P>
<P>Regards,</P>
<P>Madhu Gowda<BR><BR>--- On <B>Wed, 4/30/08, Curt Arnold <I>&lt;carnold@apache.org&gt;</I></B>
wrote:<BR></P>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px
solid">From: Curt Arnold &lt;carnold@apache.org&gt;<BR>Subject: Re: problems
in building log4cxx-0.10.0<BR>To: "Log4CXX User" &lt;log4cxx-user@logging.apache.org&gt;<BR>Date:
Wednesday, April 30, 2008, 3:35 PM<BR><BR><PRE>On Apr 30, 2008, at 7:41
AM, Madhu Gowda wrote:

&gt; Hi,
&gt;
&gt; I am new to log4cxx.
&gt; I downloaded the apache-log4cxx-0.10.0.zip, apr-util-1.2.10-win32- 
&gt; src.zip and apr-1.2.11-win32-src.zip.
&gt; I am using Visual Studio 6.0
&gt;
&gt; I am following the given instructions to build:
&gt; unzip apr-1.2.11-win32-src.zip
&gt; rename apr-1.2.11 apr
&gt; unzip apr-util-1.2.10-win32-src.zip
&gt; rename apr-util-1.2.10 apr-util
&gt; cd apache-log4cxx-0.10.0
&gt; configure
&gt; configure-aprutil
&gt; (from http://logging.apache.org/log4cxx/building/vstudio.html)
&gt;
&gt; I get the apr-1.lib, libapr-1.dll and aprutil-1.lib built  
&gt; successfully but, when i try to build libaprutil-1.dll I am getting  
&gt; linker errors as:
&gt; apr_dbd.obj : error LNK2001: unresolved external symbol  
&gt; __imp__apr_pool_cleanup_kill@12
&gt; apr_brigade.obj : error LNK2001: unresolved external symbol  
&gt; __imp__apr_pool_cleanup_kill@12
&gt; apr_buckets_alloc.obj : error LNK2001: unresolved external symbol  
&gt; __imp__apr_pool_cleanup_kill@12
&gt; apr_buckets_mmap.obj : error LNK2001: unresolved external symbol  
&gt; __imp__apr_pool_cleanup_kill@12
&gt; apr_buckets_pool.obj : error LNK2001: unresolved external symbol  
&gt; __imp__apr_pool_cleanup_kill@12
&gt; apr_xml.obj : error LNK2001: unresolved external symbol  
&gt; __imp__apr_pool_cleanup_register@16
&gt; apr_dbd.obj : error LNK2001: unresolved external symbol  
&gt; __imp__apr_pool_cleanup_register@16
&gt; apr_queue.obj : error LNK2001: unresolved external symbol  
&gt; __imp__apr_pool_cleanup_register@16
&gt; apr_reslist.obj : error LNK2001: unresolved external symbol  
&gt; __imp__apr_pool_cleanup_register@16
&gt; sdbm.obj : error LNK2001: unresolved external symbol  
&gt; __imp__apr_pool_cleanup_register@16
&gt; apr_brigade.obj : error LNK2001: unresolved external symbol  
&gt; __imp__apr_pool_cleanup_register@16
&gt; apr_buckets_alloc.obj : error LNK2001: unresolved external symbol  
&gt; __imp__apr_pool_cleanup_register@16
&gt; apr_buckets_mmap.obj : error LNK2001: unresolved external symbol  
&gt; __imp__apr_pool_cleanup_register@16
&gt; apr_buckets_pool.obj : error LNK2001: unresolved external symbol  
&gt; __imp__apr_pool_cleanup_register@16
&gt; .
&gt; .
&gt; .
&gt; etc
&gt;
&gt; Please, give some suggestions on how to fix this.
&gt;
&gt; Regards,
&gt; Madhu Gowda
&gt;
&gt; Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  
&gt; Try it now.


The most common way to use log4cxx on Windows is to build log4cxx.dll  
against APR and APR-Util static libraries.  You appear to have been  
able to successfully build APR and APR-Util as static libraries and  
could proceed to build log4cxx against them.

However, I'll look into why you might be failing to build APR-Util as  
a dynamic library, though any problem would likely be an APR problem  
and not a log4cxx problem.</PRE></BLOCKQUOTE></td></tr></table><br>

      <hr size=1>Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
"> Try it now.</a>


Mime
View raw message