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

Re: mod_svn 1.7.3 fails to build apache 2.4.1

From: Daniel Shahaf <danielsh_at_elego.de>
Date: Mon, 20 Feb 2012 01:13:18 +0200

[please paste inline in the future, if it's reasonably sized.]

Mario Brandt wrote on Sun, Feb 19, 2012 at 23:49:14 +0100:
> Hi,
> it fails to build the mod_dav_svn against apache 2.4.1
>

(At the time of this writing, httpd-2.4.1 is not blessed as GA.)

> the build errors http://pastebin.com/raw.php?i=Q3b08hDy
>

> 3>------ Build started: Project: mod_dav_svn, Configuration: Release Win32 ------
> 3>Compiling...
> 3>util.c
> 3>C:\build\httpd-2.4.1-x86\include\http_log.h(148) : warning C4132: 'aplog_module_index' : const object should be initialized
> 3>..\..\..\subversion\mod_dav_svn\util.c(630) : error C2039: 'save_errno' : is not a member of 'dav_error'
> 3> C:\build\httpd-2.4.1-x86\include\mod_dav.h(121) : see declaration of 'dav_error'
> 3>..\..\..\subversion\mod_dav_svn\util.c(631) : error C2039: 'save_errno' : is not a member of 'dav_error'
> 3> C:\build\httpd-2.4.1-x86\include\mod_dav.h(121) : see declaration of 'dav_error'
> 3>..\..\..\subversion\mod_dav_svn\util.c(729) : warning C4244: 'function' : conversion from 'apr_off_t' to 'apr_size_t', possible loss of data
> 3>Build log was saved at "file://c:\build\subversion-1.7.3-ap24-x86\Release\subversion\mod_dav_svn\BuildLog_mod_dav_svn.htm"
> 3>mod_dav_svn - 2 error(s), 2 warning(s)

This is mod_dav_svn's code:

    #if AP_MODULE_MAGIC_AT_LEAST(20091119,0)
            status = errscan->aprerr;
    #else
            status = errscan->save_errno;
    #endif

This is httpd-2.4.1's code:

    #define MODULE_MAGIC_NUMBER_MAJOR 20120211
    typedef struct dav_error {
        ...
        apr_status_t aprerr; /* APR error if any, or 0/APR_SUCCESS */
        ...
    } dav_error;

Are you sure your compiler's include path (-I flags) is correct, and not
picking up any httpd-2.x headers?

I tried building with 2.3.16-beta a few weeks ago and it worked.

> Any idea how to fix that?
>
>
> Cheers
> Mario

Daniel
(I tried to build 2.4.1 but configure deadlocked)
Received on 2012-02-20 00:14:52 CET

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