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

SVN_DBG

From: Edmund Wong <ed_at_kdtc.net>
Date: Sat, 07 Nov 2009 10:19:04 +0800

Hi,

I'm still not understanding SVN_DBG, not because I don't know what it
does; but, because I keep on getting undefined errors.

As far as I know, I just need to do the following:

1) python gen-make.py -t vcproj --vsnet-version=2008 --debug
    --with-httpd=..\apache --with-openssl=..\openssl --with-zlib=..\zlib
    --with-sqlite=..\sqlite --with-apr=..\apache\srclib\apr
    --with-apr-util=..\apache\srclib\apr-util
    --with-apr-iconv=..\apache\srclib\apr-iconv --with-neon=..\neon
    --with-serf=..\serf

2) nmake all1 all2 check

Is that all I need to do? The last time I tried SVN_DBG, I got
undefined errors. I gave up and used puts(apr_psprintf(...)).
Now, I've come across SVn_DBG() in dso.c (110). It's from
r39886. Compiling with the latest trunk (with VS2008 command
prompt and nmake all1), I get the following error:

..\..\..\subversion\libsvn_subr\dso.c(110): error C4103: \
    'SVN_DBG' undefined; assuming extern returning int

But grep'ing for SVN_DBG, it's clearly defined in
include\private\svn_debug.h. But it's with the following
code:

#ifdef SVN_DBG_QUIET

#define SVN_DBG(ARGS) svn_dbg__preamble(__FILE__, __LINE__, NULL)

#else

#define SVN_DBG(ARGS) (svn_dbg__preamble(__FILE__, __LINE__,
SVN_DBG_OUTPUT), \
                        svn_dbg__printf ARGS)

#endif

Of course, this SVN_DBG is only available when SVN_DEBUG
is defined. Clearly adding --debug in the gen-make.py
should set the SVN_DEBUG in the projects; and they are.
I grep'd SVN_DEBUG and came up with lots of hits in the
*.vcproj files.

The last time on IRC I pestered Bert about this and came up
still without a clue as to why I can't get SVN_DBG to be
recognized. I'm completely stumped by this.

Any help appreciated.

Edmund

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2415320
Received on 2009-11-07 03:31:21 CET

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

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