Return-Path: X-Original-To: apmail-apr-dev-archive@www.apache.org Delivered-To: apmail-apr-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BACE59757 for ; Fri, 2 Mar 2012 00:55:40 +0000 (UTC) Received: (qmail 48883 invoked by uid 500); 2 Mar 2012 00:55:40 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 48816 invoked by uid 500); 2 Mar 2012 00:55:40 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 48808 invoked by uid 99); 2 Mar 2012 00:55:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 00:55:40 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mamfelt@gmail.com designates 209.85.215.50 as permitted sender) Received: from [209.85.215.50] (HELO mail-lpp01m010-f50.google.com) (209.85.215.50) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 00:55:32 +0000 Received: by lahm13 with SMTP id m13so1979411lah.37 for ; Thu, 01 Mar 2012 16:55:12 -0800 (PST) Received-SPF: pass (google.com: domain of mamfelt@gmail.com designates 10.152.145.135 as permitted sender) client-ip=10.152.145.135; Authentication-Results: mr.google.com; spf=pass (google.com: domain of mamfelt@gmail.com designates 10.152.145.135 as permitted sender) smtp.mail=mamfelt@gmail.com; dkim=pass header.i=mamfelt@gmail.com Received: from mr.google.com ([10.152.145.135]) by 10.152.145.135 with SMTP id su7mr6848863lab.5.1330649712038 (num_hops = 1); Thu, 01 Mar 2012 16:55:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=f+Ibe9Z2oBRCGrGDFmYkQ8o0y8EswT64DQOH7O2lqOI=; b=BDt81VBQ1hPSq3oVaF2n+pKh9EmpqhDjWH6B4PHahGctIDb41xMXTZnHWqbA+9HMgv nwCMEW5SLBwnP93XL0Oi6edEpqH/chGMT/5RRKAnR+Zs+xn+6LbkrAn+p1iW+cSIrgtm A1bLUN1ogl3lfYrjcxvw0Dccj0+niX51AErt8ZIO7KKXNp3wY2IKCTb35xO8zdgUp8D+ cXT/uEz3wmJTvXnH6ClEXDhE8bO9qKnBwBg+SO9OPIn48IAgvX9Lw3vw5i2kRzHu+gOw yK6ENs1y6FFlOeSL/+f1HFgQu3MWKfkqzK8M25Gy0IBBMjDpIZgeb3+sCg88C4HXEIWE 94gA== MIME-Version: 1.0 Received: by 10.152.145.135 with SMTP id su7mr5609155lab.5.1330649711952; Thu, 01 Mar 2012 16:55:11 -0800 (PST) Received: by 10.112.75.42 with HTTP; Thu, 1 Mar 2012 16:55:11 -0800 (PST) Date: Fri, 2 Mar 2012 01:55:11 +0100 Message-ID: Subject: APR and "portability" issues - /usr/include gets skipped by configure when apr is external From: Michael Felt To: dev@apr.apache.org Content-Type: multipart/alternative; boundary=e89a8f2348a766c48404ba3807ac X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f2348a766c48404ba3807ac Content-Type: text/plain; charset=ISO-8859-1 Call it innocence, call it naive, call it whatever - but APR is an obstacle to be overcome. There is documentation, but lacks an overview of what/how apr is used. X pages long list of variables does not help prepare one (read me if you will) for proper usage. CASE: built apr, apr-util, httpd on separate system. Want to verify process used to create build on another system. Unfortunately, apr has undefined variables so cannot build in second environment - install APR and APR-UTIL packaged in previous environment. Insert extra files in /usr/include same as on original system. Start configure - runs well until zlib is needed (copy files to /usr/include, per above and compile conftest.c successfully). Run configure again, still fails. My guess, after looking at the log output is that while /usr/include/zlib.h was found and used on the original system now "configure" is only using the /opt/include where the files are not located. Request: please think about the basic documentation - right now if you follow the documentation link the first page is one that seems to be "there is no documentation". The other navigation items show otherwise - but what are all these functions, modules, etc. And how do they explain that configure does not work. p.s. the first hint that something was wrong was the return of a static name for a compiler (was cc - xlc was better), but now working with gcc - so everything fails. -- I have learned that apr and apr-util are largely static - executable caching of variables - is that one way of describing how it works? Note: I have no idea of what is in libapr or libaprutil - but I am concerned that they are not going to be portable enough to use across different hardware/os platforms even those platforms are binary compatible. Also - maybe - the problems are limited to apr-1-config and apu-1-config. Here is hoping! Note: 6000-ibm-aix: bad number ... Is this because this is an AIX 7.1 system? It moves on, thankfully, but thought this was the cause initially. ====== ./configure[5865]: 6000-ibm-aix: bad number + cp conftest.c mytest.c + ac_fn_c_try_link 11027 + print -r -- configure:11035: result: not found + 1>& 5 + print -r -- not found + 1>& 6 + enable_deflate=no + INCLUDES=-I$(top_builddir)/srclib/pcre -I. -I$(top_srcdir)/os/$(OS_DIR) -I$(top_srcdir)/server/mpm/$(MPM_SUBDIR_NAME) -I$(top_srcdir)/modules/http -I$(top_srcdir)/modules/filters -I$(top_srcdir)/modules/proxy -I$(top_srcdir)/include -I$(top_srcdir)/modules/generators -I$(top_srcdir)/modules/mappers -I$(top_srcdir)/modules/database -I/opt/include -I/usr/include/openssl/include + LDFLAGS= -L/usr/include/openssl/lib + rm -f core conftest.err conftest.o conftest conftest.c + test x-lm -lz = x-lz + apr_new_bugger= + apr_removed=0 + test x-lm != x-lz + apr_new_bugger= -lm + test x-lz != x-lz + apr_removed=1 + test 1 = 1 + test x != xyes + echo removed "-lz" from LIBS + LIBS= -lm + CPPFLAGS= + print -r -- configure:11066: checking whether to enable mod_deflate + 1>& 5 + print -rn -- checking whether to enable mod_deflate... + 1>& 6 + test no = no + test yes = no + as_fn_error mod_deflate has been requested but can not be built due to prerequisite failures 11072 5 configure: error: mod_deflate has been requested but can not be built due to prerequisite failures + exit_status=1 + 1>& 5 ======= --e89a8f2348a766c48404ba3807ac Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Call it innocence, call it naive, call it whatever - but APR is an obstacle= to be overcome. There is documentation, but lacks an overview of what/how = apr is used.
X pages long list of variables does not help prepare one (r= ead me if you will) for proper usage.

CASE: built apr, apr-util, httpd on separate system. Want to verify pro= cess used to create build on another system. Unfortunately, apr has undefin= ed variables so cannot build in second environment - install APR and APR-UT= IL packaged in previous environment. Insert extra files in /usr/include sam= e as on original system.

Start configure - runs well until zlib is needed (copy files to /usr/in= clude, per above and compile conftest.c successfully). Run configure again,= still fails.
My guess, after looking at the log output is that while /u= sr/include/zlib.h was found and used on the original system now "confi= gure" is only using the /opt/include
where the files are not located.

Request: please think about the bas= ic documentation - right now if you follow the documentation link the first= page is one that seems to be "there is no documentation".
The other navigation items show otherwise - but what are all these function= s, modules, etc. And how do they explain that configure does not work.
<= br>p.s. the first hint that something was wrong was the return of a static = name for a compiler (was cc - xlc was better), but now working with gcc - s= o everything fails.
-- I have learned that apr and apr-util are largely static - executable cac= hing of variables - is that one way of describing how it works?

Note= : I have no idea of what is in libapr or libaprutil - but I am concerned th= at they are not going to be portable enough to use across different hardwar= e/os platforms
even those platforms are binary compatible. Also - maybe - the problems are= limited to apr-1-config and apu-1-config. Here is hoping!

Note: 600= 0-ibm-aix: bad number ... Is this because this is an AIX 7.1 system? It mov= es on, thankfully, but thought this was the cause initially.

=3D=3D=3D=3D=3D=3D
./configure[5865]: 6000-ibm-aix: bad number
+ = cp conftest.c mytest.c
+ ac_fn_c_try_link 11027
+ print -r -- configu= re:11035: result: not found
+ 1>& 5
+ print -r -- not found+ 1>& 6
+ enable_deflate=3Dno
+ INCLUDES=3D-I$(top_builddir)/srclib/pcre -I. -I$= (top_srcdir)/os/$(OS_DIR) -I$(top_srcdir)/server/mpm/$(MPM_SUBDIR_NAME) -I$= (top_srcdir)/modules/http -I$(top_srcdir)/modules/filters -I$(top_srcdir)/m= odules/proxy -I$(top_srcdir)/include -I$(top_srcdir)/modules/generators -I$= (top_srcdir)/modules/mappers -I$(top_srcdir)/modules/database -I/opt/includ= e -I/usr/include/openssl/include
+ LDFLAGS=3D=A0 -L/usr/include/openssl/lib
+ rm -f core conftest.err con= ftest.o conftest conftest.c
+ test x-lm=A0 -lz =3D x-lz
+ apr_new_bug= ger=3D
+ apr_removed=3D0
+ test x-lm !=3D x-lz
+ apr_new_bugger=3D= -lm
+ test x-lz !=3D x-lz
+ apr_removed=3D1
+ test 1 =3D 1
+ test x !=3D xyes
+ echo=A0=A0 r= emoved "-lz" from LIBS
+ LIBS=3D -lm
+ CPPFLAGS=3D
+ pr= int -r -- configure:11066: checking whether to enable mod_deflate
+ 1>= ;& 5
+ print -rn -- checking whether to enable mod_deflate...
+ 1>& 6=
+ test no =3D no
+ test yes =3D no
+ as_fn_error mod_deflate has = been requested but can not be built due to prerequisite failures 11072 5 configure: error: mod_deflate has been requested but can not be built due t= o prerequisite failures
+ exit_status=3D1
+ 1>& 5
=3D=3D=3D= =3D=3D=3D=3D
--e89a8f2348a766c48404ba3807ac--