You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Danesh Daroui <da...@gmail.com> on 2018/10/21 10:58:43 UTC
error: ‘DEFAULT_REL_STATEDIR’ undeclared
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 <jo...@apache.org>
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?
Regards,
Danesh Daroui
Re: error: ‘DEFAULT_REL_STATEDIR’ undeclared
Posted by Danesh Daroui <da...@gmail.com>.
Thanks. Running build and config solved the problem.
On Sun, Oct 21, 2018 at 2:15 PM Eric Covener <co...@gmail.com> wrote:
>
> On Sun, Oct 21, 2018 at 6:59 AM Danesh Daroui <da...@gmail.com> wrote:
> >
> > 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
>
> If this was a pre-existing sandbox, and you see configure.in change,
> it is likely you need to re-run ./buildconf and config.nice
Re: error: ‘DEFAULT_REL_STATEDIR’ undeclared
Posted by Eric Covener <co...@gmail.com>.
On Sun, Oct 21, 2018 at 6:59 AM Danesh Daroui <da...@gmail.com> wrote:
>
> 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
If this was a pre-existing sandbox, and you see configure.in change,
it is likely you need to re-run ./buildconf and config.nice
Re: error: ‘DEFAULT_REL_STATEDIR’ undeclared
Posted by Rainer Jung <ra...@kippdata.de>.
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 <jo...@apache.org>
> 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