[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Link errors building TSVN

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-06-22 18:25:08 CEST

Foy, Sean wrote:
> I'm having trouble building TSVN:
>
> [link] internal.obj : error LNK2019: unresolved external symbol
> __imp___realloc_dbg referenced in function _apr_wastrtoastr
> [link] start.obj : error LNK2001: unresolved external symbol
> __imp___realloc_dbg
> [link] internal.obj : error LNK2019: unresolved external symbol
> __imp___malloc_dbg referenced in function _apr_wastrtoastr
> [link] start.obj : error LNK2001: unresolved external symbol
> __imp___malloc_dbg
> [link] C:\svnbuild\tortoisesvn\ext\apr\release_win32\libapr_tsvn.dll :
> fatal error LNK1120: 2 unresolved externals
>
> I followed the directions in build.txt, using VS.NET 2005 (not VC++ 2005
> Express).
>
> I've tried
> nant setup
> nant clean binaries
> nant clean debug binaries
> nant clean release binaries
> etc.
>
> Can someone suggest anything else to try?
>
> I've posted a sample build log at
> http://sean-janus.optionpc.com/tsvn-build-failure.txt

That linker error can only happen if the symbol _DEBUG is defined.
Otherwise, the header file crtdbh.h will define _malloc_dbg to the
normal malloc() API.
The question is now where that _DEBUG got defined.
Please check the following:
* remove the folder \ext\apr\release_win32 and ext\apr\debug_win32
manually. Maybe the 'clean' task didn't work correctly.
* make sure you use a new DOS shell before calling the Nant script again
* also make sure you call %VS80COMNTOOLS%\vsvars32.bat, and not another
script (e.g. the one from VS.NET2003).
* check the paths in VS2005->Tools->Options->Projects and
Solutions->VC++ Directories. Especially the include dirs. Make sure you
don't have anything in there before the VS2005 directories if you're not
absolutely sure that the files in those paths are ok.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Jun 22 18:25:30 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.