subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Martin <philip.mar...@wandisco.com>
Subject Re: Help with compiling
Date Mon, 08 Apr 2013 23:30:21 GMT
Maureen Barger <mobarger@gmail.com> writes:

> Reran.
> I am using gcc (GCC) 4.4.6 20120305
>
> authz.i seems to be using the file fromthe correct apache:
> # 1 "/etc/apache2/include/http_log.h" 1

So is that an apache 2.4 file?  It should contain something like:

#ifdef AP_HAVE_C99
/* need additional step to expand APLOG_MARK first */
#define ap_log_error(...) ap_log_error__(__VA_ARGS__)
/* need server_rec *sr = ... for the case if s is verbatim NULL */
#define ap_log_error__(file, line, mi, level, status, s, ...)           \
    do { const server_rec *sr__ = s; if (APLOG_MODULE_IS_LEVEL(sr__, mi, level))
 \
             ap_log_error_(file, line, mi, level, status, sr__, __VA_ARGS__);
 \
    } while(0)
#else
#define ap_log_error ap_log_error_
#endif
AP_DECLARE(void) ap_log_error_(const char *file, int line, int module_index,
                               int level, apr_status_t status,
                               const server_rec *s, const char *fmt, ...)
                              __attribute__((format(printf,7,8)));

If you look in the authz.i file you should see a declaration like:

# 372 "/usr/local/httpd-2.4/include/http_log.h"
void ap_log_error_(const char *file, int line, int module_index,
                               int level, apr_status_t status,
                               const server_rec *s, const char *fmt, ...)
                              __attribute__((format(printf,7,8)));

Note the trailing _ on ap_log_error_. With apache 2.2 you get
ap_log_error without the trailing _:

# 171 "/usr/include/apache2/http_log.h"
void ap_log_error(const char *file, int line, int level,
                             apr_status_t status, const server_rec *s,
                             const char *fmt, ...)
       __attribute__((format(printf,6,7)));


Another option is that you built Subversion correctly but something went
wrong with the module installation. You can check by running nm on
mod_dav_svn.o:

$ nm subversion/mod_dav_svn/.libs/mod_dav_svn.o | grep ap_log_error

and on the apache module:

$ nm subversion/mod_dav_svn/.libs/mod_dav_svn.so | grep ap_log_error

-- 
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download

Mime
View raw message