Apache Mod-Python - Re: svn commit: r394455 - in /httpd/mod_python/trunk: Doc/appendixc.tex src/hlist.c sr

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > April 2006 > Re: svn commit: r394455 - in /httpd/mod_python/trunk: Doc/appendixc.tex src/hlist.c sr





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: svn commit: r394455 - in /httpd/mod_python/trunk: Doc/appendixc.tex src/hlist.c sr
Graham Dumpleton

2006-04-20, 7:02 pm

Date: Thu, 20 Apr 2006 07:20:50 +1000
Lines: 113
Approved: news@gmane.org
Message-ID: <edd4851efce6c1c2ea3c93186833682e@dscpl.com.au>
References: <20060416104944.5777.qmail@minotaur.apache.org> <44464BB1.3080008@jgassociates.ca>
NNTP-Posting-Host: main.gmane.org
Mime-Version: 1.0 (Apple Message framework v623)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: sea.gmane.org 1145481701 1337 80.91.229.2 (19 Apr 2006 21:21:41 GMT)
X-Complaints-To: usenet@sea.gmane.org
NNTP-Posting-Date: Wed, 19 Apr 2006 21:21:41 +0000 (UTC)
Cc: python-dev@httpd.apache.org
Original-X-From: python-dev-return-3122-gcamd-python-dev=m.gmane.org@httpd.apache.org Wed Apr 19 23:21:38 2006
Return-path: <python-dev-return-3122-gcamd-python-dev=m.gmane.org@httpd.apache.org>
Envelope-to: gcamd-python-dev@gmane.org
Original-Received: from hermes.apache.org ([209.237.227.199] helo=mail.apache.org)
by ciao.gmane.org with smtp (Exim 4.43)
id 1FWK7A-0006dm-KP
for gcamd-python-dev@gmane.org; Wed, 19 Apr 2006 23:21:33 +0200
Original-Received: (qmail 80406 invoked by uid 500); 19 Apr 2006 21:21:31 -0000
Mailing-List: contact python-dev-help@httpd.apache.org; run by ezmlm
Precedence: bulk
List-Help: <mailto:python-dev-help@httpd.apache.org>
List-Unsubscribe: <mailto:python-dev-unsubscribe@httpd.apache.org>
List-Post: <mailto:python-dev@httpd.apache.org>
List-Id: <python-dev.httpd.apache.org>
Delivered-To: mailing list python-dev@httpd.apache.org
Original-Received: (qmail 80376 invoked by uid 99); 19 Apr 2006 21:21:30 -0000
Original-Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)
by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Apr 2006 14:21:30 -0700
X-ASF-Spam-Status: No, hits=-0.0 required=10.0
tests=SPF_HELO_PASS
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: local policy)
Original-Received: from [203.16.214.182] (HELO ash25e.internode.on.net) (203.16.214.182)
by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Apr 2006 14:21:30 -0700
Original-Received: from [10.0.1.4] (ppp19-179.lns2.syd7.internode.on.net [59.167.19.179])
by ash25e.internode.on.net (8.13.6/8.13.5) with ESMTP id k3JLKpIK068251;
Thu, 20 Apr 2006 06:51:05 +0930 (CST)
(envelope-from grahamd@dscpl.com.au)
In-Reply-To: <44464BB1.3080008@jgassociates.ca>
Original-To: Jim Gallacher <jpg@jgassociates.ca>
X-Mailer: Apple Mail (2.623)
X-Virus-Checked: Checked by ClamAV on apache.org
Xref: news.gmane.org gmane.comp.apache.mod-python.devel:3122
Archived-At: <http://permalink.gmane.org/gmane.co...thon.devel/3122>


On 20/04/2006, at 12:39 AM, Jim Gallacher wrote:

> grahamd@apache.org wrote:
>
> +1 Debian Sid, apache 2.2.0, Python 2.4.2
>
> -1 Debian Sid, apache 2.0.55, Python 2.3.5
>
> Compilation fails with this output:
>
> make[1]: Entering directory `/tmp/mod_python/src'
>
> Compiling for DSO.
>
> /usr/bin/apxs2 -I/tmp/mod_python/src/include -I/usr/include/apache2
> -I/usr/include/python2.3 -c mod_python.c _apachemodule.c
> requestobject.c tableobject.c util.c serverobject.c connobject.c
> filterobject.c hlist.c hlistobject.c -L/usr/lib/python2.3/config
> -Xlinker -export-dynamic -lm -lpython2.3 -lpthread -ldl -lutil
> -lm
> /usr/bin/libtool --silent --mode=compile gcc -prefer-pic -pipe
> -I/usr/include/xmltok -I/usr/include/openssl -Wall -g -O2
> -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT
> -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -pipe
> -I/usr/include/xmltok -I/usr/include/openssl -Wall -g -O2 -pthread
> -I/usr/include/apache2 -I/usr/include/apr-0 -I/usr/include/apr-0
> -I/usr/include -I/tmp/mod_python/src/include -I/usr/include/apache2
> -I/usr/include/python2.3 -c -o mod_python.lo mod_python.c && touch
> mod_python.slo
> In file included from mod_python.c:28:
> /tmp/mod_python/src/include/mod_python.h:65: error: syntax error
> before 'ap_regex_t'
> /tmp/mod_python/src/include/mod_python.h:65: warning: useless type
> name in empty declaration
> In file included from mod_python.c:28:
> /tmp/mod_python/src/include/mod_python.h:66:1: warning:
> "AP_REG_EXTENDED" redefined


The AP_REG_EXTENDED macro shouldn't exist in Apache 2.0.55. It, along
with ap_regex_t only came along in Apache 2.1.? sometime.

The code in mod_python.h which tries to accommodate the change is:

#if !AP_MODULE_MAGIC_AT_LEAST(20050127,0)
typedef regex_t ap_regex_t;
#define AP_REG_EXTENDED REG_EXTENDED
#define AP_REG_ICASE REG_ICASE
#endif

The regex_t type comes from pcreposix.h which is include by httpd.h
which is included in mod_python.h prior to this point.

Either how I am using AP_MODULE_MAGIC_AT_LEAST is wrong, of you must be
picking up a wrong header file somehow.

Bar ensuring you did a make distclean between builds, not sure what
else to suggest.

Strange.

Graham

> In file included from /usr/include/apache2/httpd.h:44,
> from /tmp/mod_python/src/include/mod_python.h:42,
> from mod_python.c:28:
> /usr/include/apache2/ap_regex.h:44:1: warning: this is the location of
> the previous definition
> In file included from mod_python.c:28:
> /tmp/mod_python/src/include/mod_python.h:67:1: warning: "AP_REG_ICASE"
> redefined
> In file included from /usr/include/apache2/httpd.h:44,
> from /tmp/mod_python/src/include/mod_python.h:42,
> from mod_python.c:28:
> /usr/include/apache2/ap_regex.h:32:1: warning: this is the location of
> the previous definition
> In file included from /usr/include/python2.3/Python.h:8,
> from /tmp/mod_python/src/include/mod_python.h:75,
> from mod_python.c:28:
> /usr/include/python2.3/pyconfig.h:853:1: warning: "_POSIX_C_SOURCE"
> redefined
> In file included from /usr/include/sys/types.h:27,
> from /usr/include/apr-0/apr.h:113,
> from /usr/include/apache2/ap_config.h:20,
> from /usr/include/apache2/httpd.h:30,
> from /tmp/mod_python/src/include/mod_python.h:42,
> from mod_python.c:28:
> /usr/include/features.h:150:1: warning: this is the location of the
> previous definition
>
> <snip>
>
> mod_python.c: In function 'determine_context':
> mod_python.c:938: error: 'REG_EXTENDED' undeclared (first use in this
> function)
> mod_python.c:938: error: (Each undeclared identifier is reported only
> once
> mod_python.c:938: error: for each function it appears in.)
> mod_python.c: In function 'directive_PythonHandlerModule':
> mod_python.c:2264: warning: unused variable 'srv_conf'
> mod_python.c: In function 'PythonChildInitHandler':
> mod_python.c:2504: warning: unused variable 'ppath'
> apxs:Error: Command failed with rc=65536
>
> No time to dig in to this right now. Will investigate later.
>
> Jim



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com