apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject Re: error building apr.exp: "sh: DHAVE_CONFIG_H: not found."
Date Sat, 20 Oct 2001 19:19:17 GMT
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@

Mime
View raw message