httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward Moon ...@mooned.org>
Subject Re: Finding apache includes (was Re: libapreq-1.1 Release Candidate 1)
Date Tue, 26 Nov 2002 22:48:10 GMT
Looks like the location of the include files on OS X layout is 
/usr/include/httpd.

Setting --with-apache-includes=/usr/include/httpd fixes my problem running 
'make'. There isn't a 'make test' target how ever.

Gory details:
[honeycrisp:~/src/httpd-apreq] em% ./configure 
--with-apache-includes=/usr/include/httpd
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc
checking build system type... powerpc-apple-darwin6.2
checking host system type... powerpc-apple-darwin6.2
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependant libraries... file_magic Mach-O 
dynamically linked shared library
checking command to parse /usr/bin/nm -p output... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... no
checking dlfcn.h presence... no
checking for dlfcn.h... no
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... darwin6.2 dyld
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
checking for ranlib... (cached) ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating c/Makefile
config.status: executing depfiles commands
[honeycrisp:~/src/httpd-apreq] em% make
Making all in c
source='apache_cookie.c' object='apache_cookie.lo' libtool=yes \
depfile='.deps/apache_cookie.Plo' tmpdepfile='.deps/apache_cookie.TPlo' \
depmode=gcc /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DPACKAGE_NAME=\"\" 
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" 
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libapreq\" -DVERSION=\"1.1\" 
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  -I. -I. 
-I/usr/include/httpd    -g -O2 -c -o apache_cookie.lo `test -f 
'apache_cookie.c' || echo './'`apache_cookie.c
mkdir .libs
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libapreq\" 
-DVERSION=\"1.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
-I. -I. -I/usr/include/httpd -g -O2 -c apache_cookie.c 
-Wp,-MD,.deps/apache_cookie.TPlo  -fno-common -DPIC -o 
.libs/apache_cookie.lo
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libapreq\" 
-DVERSION=\"1.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
-I. -I. -I/usr/include/httpd -g -O2 -c apache_cookie.c 
-Wp,-MD,.deps/apache_cookie.TPlo -o apache_cookie.o >/dev/null 2>&1
mv -f .libs/apache_cookie.lo apache_cookie.lo
source='apache_request.c' object='apache_request.lo' libtool=yes \
depfile='.deps/apache_request.Plo' tmpdepfile='.deps/apache_request.TPlo' 
\
depmode=gcc /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DPACKAGE_NAME=\"\" 
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" 
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libapreq\" -DVERSION=\"1.1\" 
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  -I. -I. 
-I/usr/include/httpd    -g -O2 -c -o apache_request.lo `test -f 
'apache_request.c' || echo './'`apache_request.c
rm -f .libs/apache_request.lo
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libapreq\" 
-DVERSION=\"1.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
-I. -I. -I/usr/include/httpd -g -O2 -c apache_request.c 
-Wp,-MD,.deps/apache_request.TPlo  -fno-common -DPIC -o 
.libs/apache_request.lo
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libapreq\" 
-DVERSION=\"1.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
-I. -I. -I/usr/include/httpd -g -O2 -c apache_request.c 
-Wp,-MD,.deps/apache_request.TPlo -o apache_request.o >/dev/null 2>&1
mv -f .libs/apache_request.lo apache_request.lo
source='apache_multipart_buffer.c' object='apache_multipart_buffer.lo' 
libtool=yes \
depfile='.deps/apache_multipart_buffer.Plo' 
tmpdepfile='.deps/apache_multipart_buffer.TPlo' \
depmode=gcc /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DPACKAGE_NAME=\"\" 
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" 
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libapreq\" -DVERSION=\"1.1\" 
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  -I. -I. 
-I/usr/include/httpd    -g -O2 -c -o apache_multipart_buffer.lo `test -f 
'apache_multipart_buffer.c' || echo './'`apache_multipart_buffer.c
rm -f .libs/apache_multipart_buffer.lo
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libapreq\" 
-DVERSION=\"1.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
-I. -I. -I/usr/include/httpd -g -O2 -c apache_multipart_buffer.c 
-Wp,-MD,.deps/apache_multipart_buffer.TPlo  -fno-common -DPIC -o 
.libs/apache_multipart_buffer.lo
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libapreq\" 
-DVERSION=\"1.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
-I. -I. -I/usr/include/httpd -g -O2 -c apache_multipart_buffer.c 
-Wp,-MD,.deps/apache_multipart_buffer.TPlo -o apache_multipart_buffer.o 
>/dev/null 2>&1
mv -f .libs/apache_multipart_buffer.lo apache_multipart_buffer.lo
/bin/sh ../libtool --mode=link gcc  -g -O2   -o libapreq.la -rpath 
/usr/local/lib -version-info 1:1 apache_cookie.lo apache_request.lo 
apache_multipart_buffer.lo  
rm -fr .libs/libapreq.la .libs/libapreq.* .libs/libapreq.*
gcc -dynamiclib -flat_namespace -undefined suppress -o 
.libs/libapreq.1.0.1.dylib  apache_cookie.lo apache_request.lo 
apache_multipart_buffer.lo  -lc -install_name  
/usr/local/lib/libapreq.1.dylib -compatibility_version 2 -current_version 
2.1
(cd .libs && rm -f libapreq.1.dylib && ln -s libapreq.1.0.1.dylib 
libapreq.1.dylib)
(cd .libs && rm -f libapreq.dylib && ln -s libapreq.1.0.1.dylib 
libapreq.dylib)
ar cru .libs/libapreq.a  apache_cookie.o apache_request.o 
apache_multipart_buffer.o 
ranlib .libs/libapreq.a
creating libapreq.la
(cd .libs && rm -f libapreq.la && ln -s ../libapreq.la libapreq.la)
make[1]: Nothing to be done for `all-am'.
[honeycrisp:~/src/httpd-apreq] em% make test
make: *** No rule to make target `test'.  Stop.
[honeycrisp:~/src/httpd-apreq] em% 


On 26 Nov 2002, Joe Schaefer wrote:

> Date: 26 Nov 2002 16:58:25 -0500
> From: Joe Schaefer <joe@sunstarsys.com>
> To: Edward Moon <em@mooned.org>
> Cc: apreq list <apreq-dev@httpd.apache.org>
> Subject: Finding apache includes (was Re: libapreq-1.1 Release Candidate
>     1)
> 
> Edward Moon <em@mooned.org> writes:
> 
> > Tried the full path, still didn't work:
> > 
> > [honeycrisp:~/src/httpd-apreq] em% ./configure 
> > --with-apache-includes=/Users/em//src/apache_1.3.27/src/include
> 
> [...]
> 
> > /Users/em//src/apache_1.3.27/src/include/ap_config.h:114: header file 
> > 'os.h' not found
> 
> Ok, but we've made some progress now.  The problem is that
> the apache_1.3.27/src/include directory doesn't contain all 
> the header files we need.
> 
> What you really need to do is locate the *installed* location
> of your apache headers.  One way to do this is to use the apxs
> binary that is part of the apache installation.  It may not be
> in your path, but it should be installed in the same directory
> as your httpd binary.
> 
> I have a few installations of httpd on my machine- one of
> them is at /home/joe/apache/bin/httpd:
> 
>   % /home/joe/apache/bin/apxs -q INCLUDEDIR
>   /home/joe/apache/include
> 
> which is the correct "--with-apache-includes" location for me:
> 
>   % ls /home/joe/apache/include
>   ap.h              ap_sha1.h            http_core.h      os.h
>   ap_alloc.h        buff.h               http_log.h       rfc1413.h
>   ap_compat.h       compat.h             http_main.h      scoreboard.h
>   ap_config.h       conf.h               http_protocol.h  util_date.h
>   ap_config_auto.h  explain.h            http_request.h   util_md5.h
>   ap_ctype.h        fnmatch.h            http_vhost.h     util_script.h
>   ap_ebcdic.h       hsregex.h            httpd.h          util_uri.h
>   ap_md5.h          http_conf_globals.h  multithread.h    xml
>   ap_mmn.h          http_config.h        os-inline.c
> 
> (Note that os.h is there!)
> 
> If you can't easily find apxs yourself, 
> you might try using the Unix 'find' command:
> 
>   % find / -name apxs
>   /home/joe/src/apache/cvs/apache-1.3/src/support/apxs
>   /home/joe/src/apache/cvs/httpd-2.0/support/apxs
>   /home/joe/src/apache/bin/apxs
>   /home/joe/src/apache2/bin/apxs
>   /usr/local/sbin/apxs
>   /usr/local/apache2/bin/apxs
>   /usr/local/apache/bin/apxs
>   /usr/src/apache/apache_1.3.4/src/support/apxs
>   /usr/src/apache_1.3.12/src/support/apxs
>   /usr/src/apache_1.3.19/src/support/apxs
> 
> As you can see I've got a lot of apxs binaries;
> some in source trees and some installed. The ones
> in source trees won't help here, and  they're all
> tied to a particular apache version. So be careful 
> to use the right one for your installation.
> 
> HTH
> 
> -- 
> Joe Schaefer
> 


Mime
View raw message