Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 440D79E92 for ; Wed, 16 Nov 2011 07:54:28 +0000 (UTC) Received: (qmail 95306 invoked by uid 500); 16 Nov 2011 07:54:24 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 95204 invoked by uid 500); 16 Nov 2011 07:54:19 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 95196 invoked by uid 99); 16 Nov 2011 07:54:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2011 07:54:18 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of asaf.dalet@gmail.com designates 209.85.210.45 as permitted sender) Received: from [209.85.210.45] (HELO mail-pz0-f45.google.com) (209.85.210.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2011 07:54:10 +0000 Received: by pzd13 with SMTP id 13so17304637pzd.4 for ; Tue, 15 Nov 2011 23:53:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=mU5nzFkNgRL3p+8WNfVang9op9uz058acyuwZyIHRKw=; b=NCspoemQTwqw7X/KuL/elKPl4wEMdBUOJKi8iq3X7/y0AYFZqTc4VVLSzVj+3bSUIy Co+O62lK69pQwm37C+K88j/xZV6rF70Dxo44UQDdMzGwRHoX2mq4v0BoU1Qs6QY3lYIn 6VS/ua14z98Nx9VnxH5BuhHnrQIuY4CLoZGkc= MIME-Version: 1.0 Received: by 10.68.29.101 with SMTP id j5mr66140883pbh.61.1321430028875; Tue, 15 Nov 2011 23:53:48 -0800 (PST) Received: by 10.68.50.197 with HTTP; Tue, 15 Nov 2011 23:53:48 -0800 (PST) In-Reply-To: <4EBB81BE.6040603@kippdata.de> References: <4EBB03D5.20707@rowe-clan.net> <4EBB6C82.2020103@rowe-clan.net> <4EBB81BE.6040603@kippdata.de> Date: Wed, 16 Nov 2011 09:53:48 +0200 Message-ID: From: Asaf Dalet To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=bcaec52160bd77765c04b1d56775 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] apr_off_t mismatch --bcaec52160bd77765c04b1d56775 Content-Type: text/plain; charset=ISO-8859-1 Hi, here's the output of http -V for the precompiled apache: Server version: Apache/2.2.0 Server built: Jan 1 2006 07:22:25 Server's Module Magic Number: 20051115:0 Architecture: 32-bit Server MPM: Prefork threaded: no forked: yes (variable process count) Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_FCNTL_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT="/usr/local/apache2" -D SUEXEC_BIN="/usr/local/apache2/bin/suexec" -D DEFAULT_PIDLOG="logs/httpd.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="logs/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" I also tried to reproduce the aforementioned APR bug by building apache on NFS (i have apache 2.2.0 with the buggy line: "if ((fd = open("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY)) < 0)") but my apr_off_t is still 8 bytes. actually, i checked the return value of "open("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY)" and it is not < 0. I build on solaris 5.8 Generic_117350-49 sun4u sparc SUNW,Sun-Fire-V210 On Thu, Nov 10, 2011 at 9:48 AM, Rainer Jung wrote: > On 09.11.2011 23:31, Asaf Dalet wrote: > >> i don't see APR version in httpd -V when i run it on an accidental apache, >> only "Server version" >> >> also, is there a way to compile the APR without LARGE_FILES? i would like >> to do it so i can test the scenario. >> > > It would help, if you provided a bit more info. Usually the output of > "httpd -V" does contain the needed version strings. Example here: > > bin/httpd -V > Server version: Apache/2.2.6 (Unix) > Server built: Oct 19 2007 22:50:30 > Server's Module Magic Number: 20051115:5 > Server loaded: APR 1.2.11, APR-Util 1.2.10 > Compiled using: APR 1.2.11, APR-Util 1.2.10 > Architecture: 32-bit > Server MPM: Prefork > threaded: no > forked: yes (variable process count) > Server compiled with.... > -D APACHE_MPM_DIR="server/mpm/**prefork" > -D APR_HAS_SENDFILE > -D APR_HAS_MMAP > -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) > -D APR_USE_FCNTL_SERIALIZE > -D APR_USE_PTHREAD_SERIALIZE > -D SINGLE_LISTEN_UNSERIALIZED_**ACCEPT > -D APR_HAS_OTHER_CHILD > -D AP_HAVE_RELIABLE_PIPED_LOGS > -D DYNAMIC_MODULE_LIMIT=128 > -D HTTPD_ROOT="/some/path/run" > -D SUEXEC_BIN="/some/path/bin/**suexec" > -D DEFAULT_PIDLOG="run/httpd.pid" > -D DEFAULT_SCOREBOARD="logs/**apache_runtime_status" > -D DEFAULT_LOCKFILE="run/accept.**lock" > -D DEFAULT_ERRORLOG="logs/error_**log" > -D AP_TYPES_CONFIG_FILE="conf/**mime.types" > -D SERVER_CONFIG_FILE="conf/**httpd.conf" > > So please post your output. > > Regards, > > Rainer > > > On Thu, Nov 10, 2011 at 8:17 AM, William A. Rowe Jr.> >wrote: >> >> On 11/9/2011 11:52 PM, Asaf Dalet wrote: >>> >>> the precompiled apache version is definitely 2.2.0 (according to httpd >>>> -V) and there is >>>> definitely some mismatch between request_rec size between it and my >>>> compiled module. Of >>>> course i don't know it for sure because i don't know the exact >>>> sizeof(request_rec) in the >>>> precompiled apache. In my module the sizeof is 424. >>>> >>>> >>> What does it say for the APR version from httpd -V? That is the >>> element that has control over apr_off_t structs. >>> >>> It sounds as if the packagers of this particular precompile happened >>> to override our preference to define LARGE_FILES whenever possible >>> for APR versions from 1.0 onwards. >>> >> > > > ------------------------------**------------------------------**--------- > The official User-To-User support forum of the Apache HTTP Server Project. > See > > for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.**apache.org > " from the digest: users-digest-unsubscribe@**httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > --bcaec52160bd77765c04b1d56775 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
here's the output of http -V for the precompiled apache:
Ser= ver version: Apache/2.2.0
S= erver built: Jan 1 2006 07:22:25
S= erver's Module Magic Number: 20051115:0
A= rchitecture: 32-bit
S= erver MPM: Prefork
t= hreaded: no
f= orked: yes (variable process count)
S= erver compiled with....
-= D APACHE_MPM_DIR=3D"server/mpm/prefork"
-= D APR_HAS_SENDFILE
-= D APR_HAS_MMAP
-= D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-= D APR_USE_FCNTL_SERIALIZE
-= D APR_USE_PTHREAD_SERIALIZE
-= D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-= D APR_HAS_OTHER_CHILD
-= D AP_HAVE_RELIABLE_PIPED_LOGS
-= D DYNAMIC_MODULE_LIMIT=3D128
-= D HTTPD_ROOT=3D"/usr/local/apache2"
-= D SUEXEC_BIN=3D"/usr/local/apache2/bin/suexec"
-= D DEFAULT_PIDLOG=3D"logs/httpd.pid"
-= D DEFAULT_SCOREBOARD=3D"logs/apache_runtime_status"
-= D DEFAULT_LOCKFILE=3D"logs/accept.lock"
-= D DEFAULT_ERRORLOG=3D"logs/error_log"
-= D AP_TYPES_CONFIG_FILE=3D"conf/mime.types"
-= D SERVER_CONFIG_FILE=3D"conf/httpd.conf"
=A0
I also tried to reproduce the aforementioned=A0APR bug by building apa= che on NFS (i have apache 2.2.0 with the buggy line: "if ((fd =3D open= ("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY)) < 0)") bu= t my apr_off_t is still 8 bytes. actually, i checked the return value of &q= uot;open("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY)" and = it is not < 0.=A0I build on=A0solaris 5.8 Generic_117350-49 sun4u sparc = SUNW,Sun-Fire-V210
=A0
=A0
=A0
On Thu, Nov 10, 2011 at 9:48 AM, Rainer Jung <rainer.jung@k= ippdata.de> wrote:
On 09.11.2011 23:31, Asaf Dalet wrote:
i don't see APR version in h= ttpd -V when i run it on an accidental apache,
only "Server version= "

also, is there a way to compile the APR without LARGE_FILES? i would li= ke
to do it so i can test the scenario.

It wou= ld help, if you provided a bit more info. Usually the output of "httpd= -V" does contain the needed version strings. Example here:

bin/httpd -V
Server version: Apache/2.2.6 (Unix)
Server built: = =A0 Oct 19 2007 22:50:30
Server's Module Magic Number: 20051115:5Server loaded: =A0APR 1.2.11, APR-Util 1.2.10
Compiled using: APR 1.2.1= 1, APR-Util 1.2.10
Architecture: =A0 32-bit
Server MPM: =A0 =A0 Prefork
=A0threaded: =A0= =A0 no
=A0 =A0forked: =A0 =A0 yes (variable process count)
Server co= mpiled with....
=A0-D APACHE_MPM_DIR=3D"server/mpm/prefork&q= uot;
=A0-D APR_HAS_SENDFILE
=A0-D APR_HAS_MMAP
=A0-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)=A0-D APR_USE_FCNTL_SERIALIZE
=A0-D APR_USE_PTHREAD_SERIALIZE
=A0-D= SINGLE_LISTEN_UNSERIALIZED_ACCEPT
=A0-D APR_HAS_OTHER_CHILD
= =A0-D AP_HAVE_RELIABLE_PIPED_LOGS
=A0-D DYNAMIC_MODULE_LIMIT=3D128
=A0-D HTTPD_ROOT=3D"/some/path/run= "
=A0-D SUEXEC_BIN=3D"/some/path/bin/suexec"
= =A0-D DEFAULT_PIDLOG=3D"run/httpd.pid"
=A0-D DEFAULT_SCOREBOAR= D=3D"logs/apache_runtime_status"
=A0-D DEFAULT_LOCKFILE=3D"run/accept.lock"
=A0-D DEFAUL= T_ERRORLOG=3D"logs/error_log"
=A0-D AP_TYPES_CONFIG_FIL= E=3D"conf/mime.types"
=A0-D SERVER_CONFIG_FILE=3D"= conf/httpd.conf"

So please post your output.

Regards,
=
Rainer
=20


On Thu, Nov 10, 2011 at 8:17 AM,= William A. Rowe Jr.<wrowe@rowe-clan.net>wrote:

On 11/9/2011 11:52 PM, Asaf Dale= t wrote:

the precompiled apache version i= s definitely 2.2.0 (according to httpd
-V) and there is
definitely so= me mismatch between request_rec size between it and my
compiled module. Of
course i don't know it for sure because i don= 9;t know the exact
sizeof(request_rec) in the
precompiled apache. In = my module the sizeof is 424.


What does it say for t= he APR version from httpd -V? =A0That is the
element that has control over apr_off_t structs.

It sounds as if the= packagers of this particular precompile happened
to override our prefer= ence to define LARGE_FILES whenever possible
for APR versions from 1.0 o= nwards.



------------------------------= ---------------------------------------
The official User-To-User= support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apa= che.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
=A0&q= uot; =A0 from the digest: users-digest-unsubscribe@httpd.apache.= org
For additional commands, e-mail: users-help@httpd.apache.org

<= /blockquote>

--bcaec52160bd77765c04b1d56775--