You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Jeff Trawick <tr...@attglobal.net> on 2001/10/20 19:52:08 UTC
error building apr.exp: "sh: DHAVE_CONFIG_H: not found."
This is happening on Solaris 8 and HP-UX 11. I don't know if it is
happening elsewhere.
Here is the line from make stdout:
DHAVE_CONFIG_H -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DAPR_ASSERT_MEMORY -I./include -I../include exports.c | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$/\1/' >> apr.exp
I haven't had any time to look at it. I think $(CPP) is supposed to
be at the start of the line. Solaris /bin/sh, or maybe make, is
ignoring the '-' in '-DHAVE_CONFIG_H' but it is certainly there.
(I guess make is removing it since - at the start of a command is a
make directive.)
--
Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
http://www.geocities.com/SiliconValley/Park/9289/
Born in Roswell... married an alien...
Re: error building apr.exp: "sh: DHAVE_CONFIG_H: not found."
Posted by Jeff Trawick <tr...@attglobal.net>.
Aaron Bannert <aa...@clove.org> writes:
> CPP is just undefined there. I guess gmake (what I've been using) sets it
> automatically, and for httpd we set it in config_vars.mk...We could either
> do the same kind of config_vars.mk for apr and apr-util, or just do this:
no preference here...
--
Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
http://www.geocities.com/SiliconValley/Park/9289/
Born in Roswell... married an alien...
Re: error building apr.exp: "sh: DHAVE_CONFIG_H: not found."
Posted by Aaron Bannert <aa...@clove.org>.
On Sat, Oct 20, 2001 at 01:52:08PM -0400, Jeff Trawick wrote:
> This is happening on Solaris 8 and HP-UX 11. I don't know if it is
> happening elsewhere.
>
> Here is the line from make stdout:
>
> DHAVE_CONFIG_H -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DAPR_ASSERT_MEMORY -I./include -I../include exports.c | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$/\1/' >> apr.exp
>
> I haven't had any time to look at it. I think $(CPP) is supposed to
> be at the start of the line. Solaris /bin/sh, or maybe make, is
> ignoring the '-' in '-DHAVE_CONFIG_H' but it is certainly there.
>
> (I guess make is removing it since - at the start of a command is a
> make directive.)
CPP is just undefined there. I guess gmake (what I've been using) sets it
automatically, and for httpd we set it in config_vars.mk...We could either
do the same kind of config_vars.mk for apr and apr-util, or just do this:
Index: Makefile.in
===================================================================
RCS file: /home/cvs/apr/Makefile.in,v
retrieving revision 1.58
diff -u -r1.58 Makefile.in
--- Makefile.in 2001/10/18 15:44:02 1.58
+++ Makefile.in 2001/10/20 19:08:31
@@ -8,6 +8,7 @@
INCDIR=./include
INCDIR1=../include
INCLUDES=-I$(INCDIR) -I$(INCDIR1)
+CPP=@CPP@
#
# Macros for target determination
Index: Makefile.in
===================================================================
RCS file: /home/cvs/apr-util/Makefile.in,v
retrieving revision 1.46
diff -u -r1.46 Makefile.in
--- Makefile.in 2001/10/15 23:36:37 1.46
+++ Makefile.in 2001/10/20 19:10:37
@@ -3,6 +3,7 @@
#
INCLUDES=-I./include -I../include -I@APR_SOURCE_DIR@/include
+CPP=@CPP@
TARGET_LIB = libaprutil.la
INSTALL_SUBDIRS = @APR_XML_DIR@