You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Graham Leggett <mi...@sharp.fm> on 2001/04/07 17:28:54 UTC

Apache v2.0 compile currently broken...

Hi all,

While compiling Apache v2.0 (checked out a few minutes ago) like this:

./configure --prefix=/opt/local/apache2 --enable-debug
--enable-maintainer-mode --enable-proxy

an error crops up in the ./configure script like this:

checking for sys/syslimits.h... no
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking for sys/uio.h... yes
checking for sys/wait.h... yes
/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/srclib/apr/configure:
mach-o_dyldh=0: command not found
checking for netinet/tcp.h... yes
checking for h_errno in netdb.h... yes
checking for off_t... yes
checking for pid_t... yes

and the compile eventually bombs out like this:

/bin/sh /home/minfrin/src/apache/sandbox/proxy/httpd-2.0/libtool
--silent --mode=compile gcc  -I.
-I/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/server
-I/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/server/mpm/threaded
-I/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/modules/http
-I/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/include
-I/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/srclib/apr/include
-I/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/srclib/apr-util/include
-I/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/os/unix   -DLINUX=2
-D_REENTRANT -D_REENTRANT  -pthread -g -Wall -g -Wall
-Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
-DAP_DEBUG  -c util_filter.c && touch util_filter.lo
gawk -f
/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/srclib/apr/build/make_export.awk
\
/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/include/*.h \
        /home/minfrin/src/apache/sandbox/proxy/httpd-2.0/os/unix/*.h >
apache.exports
(cat ../srclib/apr/apr.exports ../srclib/apr-util/aprutil.exports
apache.exports | ../build/buildexports.sh ..) > exports.c/bin/sh
/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/libtool --silent
--mode=compile gcc  -I.
-I/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/server
-I/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/server/mpm/threaded
-I/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/modules/http
-I/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/include
-I/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/srclib/apr/include
-I/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/srclib/apr-util/include
-I/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/os/unix   -DLINUX=2
-D_REENTRANT -D_REENTRANT  -pthread -g -Wall -g -Wall
-Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
-DAP_DEBUG  -c exports.c && touch exports.lo
exports.c:788: unterminated `#if' conditional
make[2]: *** [exports.lo] Error 1
make[2]: Leaving directory
`/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/server'
make: *** [all-recursive] Error 1

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."


Re: Apache v2.0 compile currently broken...

Posted by Brian Havard <br...@kheldar.apana.org.au>.
On Sat, 07 Apr 2001 17:28:54 +0200, Graham Leggett wrote:

>While compiling Apache v2.0 (checked out a few minutes ago) like this:
>
>./configure --prefix=/opt/local/apache2 --enable-debug
>--enable-maintainer-mode --enable-proxy
>
>an error crops up in the ./configure script like this:
>
>checking for sys/syslimits.h... no
>checking for sys/time.h... yes
>checking for sys/types.h... (cached) yes
>checking for sys/uio.h... yes
>checking for sys/wait.h... yes
>/home/minfrin/src/apache/sandbox/proxy/httpd-2.0/srclib/apr/configure:
>mach-o_dyldh=0: command not found
>checking for netinet/tcp.h... yes
>checking for h_errno in netdb.h... yes
>checking for off_t... yes
>checking for pid_t... yes

This should get it going, works for me. Makes it remove dashes as well as
dots when making a variable name from an include file name.


Index: apr_common.m4
===================================================================
RCS file: /home/cvs/apr/build/apr_common.m4,v
retrieving revision 1.15
diff -u -r1.15 apr_common.m4
--- apr_common.m4	2001/04/03 18:20:48	1.15
+++ apr_common.m4	2001/04/07 16:02:05
@@ -398,16 +398,18 @@
 dnl  
 AC_DEFUN(APR_FLAG_HEADERS,[
 AC_CHECK_HEADERS($1)
+changequote(, )dnl
 for aprt_i in $1
 do
     ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'`
-    aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g'`
+    aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/[-.]//g'`
     if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
        eval "ifelse($2,,$aprt_2,$2)=ifelse($3,yes,yes,1)"
     else
        eval "ifelse($2,,$aprt_2,$2)=ifelse($3,yes,no,0)"
     fi
 done
+changequote([, ])dnl
 ])
 
 dnl APR_FLAG_FUNCS(FUNC ... [, FLAG-TO-SET] [, "yes" ])

-- 
 ______________________________________________________________________________
 |  Brian Havard                 |  "He is not the messiah!                   |
 |  brianh@kheldar.apana.org.au  |  He's a very naughty boy!" - Life of Brian |
 ------------------------------------------------------------------------------