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

Re: Help with compiling

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Tue, 09 Apr 2013 00:30:21 +0100

Maureen Barger <mobarger_at_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
Received on 2013-04-09 01:30:57 CEST

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

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