logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Moshe Matitya" <Moshe.Mati...@xconnect.co.il>
Subject RE: Can't build using Ant with MSVC 6.0
Date Wed, 03 Sep 2008 11:11:56 GMT
Anyone have any idea why I'm getting these linker errors, and how to get
rid of them?

       [cc] Starting link
       [cc]    Creating library aprutil-1.lib and object aprutil-1.exp
       [cc] getuuid.obj : error LNK2001: unresolved external symbol
_apr_os_uuid_get@4
       [cc] getuuid.obj : error LNK2001: unresolved external symbol
_apr_generate_random_bytes@8
       [cc] aprutil-1.dll : fatal error LNK1120: 2 unresolved externals

Thanks,

Moshe


> On Wednesday, August 27, 2008 7:08 PM, Curt Arnold wrote:
> >
> > On Aug 27, 2008, at 6:48 AM, Moshe Matitya wrote:
> >
> > > I am trying to build log4cxx 0.10.0 using ant, but the build fails
> > > because of apr-util compilation errors.  Am I doing something
wrong
> > > here?
> > >
> > > I am using the following environment:
> > >
> > >     Micosoft Windows XP SP2
> > >     Microsoft Visual C/C++ 6.0 SP 6
> > >     Microsoft Platform SDK Feb. 2003
> > >     Apache Ant 1.7.1
> > >     AntContrib 1.0b3
> > >     CppTasks 1.0b5
> > >     log4cxx 0.10.0
> > >     apr 1.3.3
> > >     apr-util 1.3.4
> > >
> >
> > The APR and APR-Util versions listed are substantially later than
the
> > ones that were current at the time of the log4cxx 0.10.0 release.
If
> > I remember correctly, 1.2.12 was the current release, but
compilation
> > problems resulted in releasing against APR 1.2.11 and APR-Util
1.2.10.
> 
> > Does log4cxx build properly on your configuration with those
versions
> > of APR and APR-Util?  If so, then we can look at figuring out what
has
> 
> > changed and how to either compensate or push the issue back to APR.
> 
> Thanks for your reply.
> 
> Switching to apr 1.2.11 and apr-util 1.2.10 did indeed eliminate the
> compiler errors.
> 
> Unfortunately, the build is still failing with apr-util linker errors:
> 
>        [cc] Starting link
>        [cc]    Creating library aprutil-1.lib and object aprutil-1.exp
>        [cc] getuuid.obj : error LNK2001: unresolved external symbol
> _apr_os_uuid_get@4
>        [cc] getuuid.obj : error LNK2001: unresolved external symbol
> _apr_generate_random_bytes@8
>        [cc] aprutil-1.dll : fatal error LNK1120: 2 unresolved
externals
> 
> Any ideas?


Mime
View raw message