You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Doug MacEachern <do...@pobox.com> on 1998/07/13 03:37:48 UTC

Re: CHANGES: Autogenerate some HAVE_XXXXX_H

Jim Jagielski <ji...@jaguNET.com> wrote:

> Doug MacEachern wrote:
> > 
> > I'm guessing this is why I'm getting this error under hpux:
> > os.c: In function `ap_os_dso_load':
> > os.c:32: `shl_t' undeclared (first use this function)
> > os.c:32: (Each undeclared identifier is reported only once
> > os.c:32: for each function it appears in.)
> > os.c:32: parse error before `handle'     
> > ...
> > 
> > If I add #define HAVE_DL_H to src/include/conf.h all is well.
> > No idea how to fix.
> > 
> 
> Is it defined in conf_auto.h? There was a small buglet in Configure
> where the change-to-uppercase could possible not happen which would
> cause HAVE_dl_h instead of HAVE_DL_H . Could this be it?

hmm, conf_auto.h does #define HAVE_DL_H
I see, os.h is #include-d by conf.h *before* conf_auto.h
The patch below fixes things for me, not sure if it's the right fix
though.

-Doug

Index: conf.h
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/include/conf.h,v
retrieving revision 1.223
diff -u -C3 -u -r1.223 conf.h
--- conf.h	1998/07/12 14:38:03	1.223
+++ conf.h	1998/07/13 01:34:47
@@ -72,6 +72,10 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
+#ifndef HAVE_CONF_AUTO_H
+#include "conf_auto.h"
+#endif
+
 #ifdef WIN32
 /* include process.h first so we can override spawn[lv]e* properly */
 #include <process.h>
@@ -80,9 +84,6 @@
 #include "os.h"
 #endif
 
-#ifdef HAVE_CONF_AUTO_H
-#include "conf_auto.h"
-#endif
 
 #if !defined(QNX) && !defined(MPE) && !defined(WIN32)
 #include <sys/param.h>