OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error: ‘DEFAULT_REL_STATEDIR’ undeclared


Am 21.10.2018 um 12:58 schrieb Danesh Daroui:
Hi all,

I cannot compile the code on trunk. I get the following error when I
try to compile the code:

error: ‘DEFAULT_REL_STATEDIR’ undeclared

I bisected the mainstream using git and the erroneous commit seems to be:


-------
commit 16211a8cdd52251cb7ae251e693b9053fb545e20
Author: Joe Orton <jorton@xxxxxxxxxx>
Date:   Fri Oct 5 15:25:04 2018 +0000

     Define "state directory" for storing persistent child-writable state,
     with default from config.layout, configurable via DefaultStateDir.

     * server/core.c (set_state_dir, ap_state_dir_relative):
       New functions.

     * config.layout, acinclude.m4, Makefile.in, configure.in: Define
       statedir variables, drop davlockdb.

     * include/ap_config_layout.h.in: Define DEFAULT_REL_STATEDIR,
       DEFAULT_EXP_STATEDIR in place of _DAVLOCKDB.

     * include/ap_mmn.h: Bump MMN minor.


     git-svn-id:
https://svn.apache.org/repos/asf/httpd/httpd/trunk@1842929
13f79535-47bb-0310-9956-ffa450edef68
-------



You may already know about the problem. So in that case is there any
fix for that?

Could it be the following bug in the generic layout, hat I just now fixed in r1844484:

--- httpd/httpd/trunk/config.layout (original)
+++ httpd/httpd/trunk/config.layout Sun Oct 21 12:10:09 2018
@@ -355,7 +355,7 @@
     manualdir:     ${datadir}/manual
     cgidir:        ${datadir}/cgi-bin
     runtimedir:    ${localstatedir}/run
-    runtimedir:    ${localstatedir}/lib/httpd
+    statedir:      ${localstatedir}/lib/httpd
     logfiledir:    ${localstatedir}/log/httpd
     proxycachedir: ${localstatedir}/cache/httpd/cache-root
 </Layout>

During the build, the file include/ap_config_layout.h gets generated from include/ap_config_layout.h.in. I guess in your case the line for DEFAULT_REL_STATEDIR in the generated file contains an exmpty value?

Thanks for testing trunk!

Regards,

Rainer