[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,, Define
       statedir variables, drop davlockdb.

     * include/ Define DEFAULT_REL_STATEDIR,

     * include/ap_mmn.h: Bump MMN minor.


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

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

Thanks for testing trunk!