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

Re: link errors

From: D.J. Heap <djheap_at_gmail.com>
Date: 2006-03-11 14:29:31 CET

On 3/10/06, Kevin Aubuchon <kevin.aubuchon@charter.net> wrote:
[snip]
> My source code dir structure is like the following (I'm only showing a few
> sub dirs).
>
> c:\src-1.3.0
> c:\src-1.3.0\apr
> c:\src-1.3.0\subversion\db4-win32
> c:\src-1.3.0\svn-win32-libintl

db4-win32 needs to be on the same level as the INSTALL file (which is
the same level as apr* in the default zip file). You don't need the
--with-apr* options to gen-make.py unless you've moved them out of
their default locations, although it shouldn't hurt anything.

>
> >>>What apr/apr-util/apr-iconv are you using?
> The source that came with the zip file.
>
> Neon version is 0.25
> c:\src-1.3.0\neon
> Neon won't compile as a project in the solution, so I use it's .mak file.
>

I tried to replicate your environment (mostly -- I didn't use any
libintl options) and did hit the known issue with the 1.3.0 zip file
(http://svn.haxx.se/dev/archive-2005-12/0934.shtml):

neon 0.25.x won't build due to a Win32-only bug in apr-util -- the
version macros for expat are not expanded correctly by the
apr-util/xml build process. You can use neon 0.24.7...or to fix it
for neon 0.25.x and the apr-util that comes with the zip file you can
change the version defines at the bottom of
subversion-1.3.0\apr-util\xml\expat\lib\expat.h.in to:

#ifndef XML_MAJOR_VERSION
#define XML_MAJOR_VERSION 1
#endif
#ifndef XML_MINOR_VERSION
#define XML_MINOR_VERSION 95
#endif
#ifndef XML_MICRO_VERSION
#define XML_MICRO_VERSION 2
#endif

Another issue specifically with VS2005 (fixed on trunk) is that neon
doesn't get automatically linked because MS changed how VS handles
makefile projects in VS2005 -- you'll need to add the full path to the
neon library to the linker input settings (ie, for a Release build add
full-path\neon\libneon.lib to Linker -> Input -> Additional
Dependencies). You need to do this for any client .exe's you are
building (such as svn and svnversion projects).

After these tweaks, all the main projects (__ALL__) built for me.

If you still can't build after making these changes (move db4-win32 up
a level if needed, tweak expat.h.in or use neon 0.24.7, and add neon
to linker inputs) then can you post a few of the errors you are
getting?

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 11 14:30:30 2006

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