Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 83562 invoked from network); 12 Jul 2006 03:01:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Jul 2006 03:01:19 -0000 Received: (qmail 44130 invoked by uid 500); 12 Jul 2006 03:01:17 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 44092 invoked by uid 500); 12 Jul 2006 03:01:17 -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 44080 invoked by uid 99); 12 Jul 2006 03:01:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 20:01:17 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of kimleng.goh@gmail.com designates 66.249.92.173 as permitted sender) Received: from [66.249.92.173] (HELO ug-out-1314.google.com) (66.249.92.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 20:01:16 -0700 Received: by ug-out-1314.google.com with SMTP id m2so114517uge for ; Tue, 11 Jul 2006 20:00:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=T18QEWNsZ/l23MaO41S25xSOcbxyfQVI5FKUaZ9GiDLN+und4eGuizN+oiy1xSXaZNyOe/e7cPE+NpB804EsVKH0YfafsgNATZieue0M7cN8s7ahRxPPsjfprLsDpQUCozoA7n4nDjJLcyGsPJaOPjca9geGwpJFpdHwkTeyFOU= Received: by 10.66.219.11 with SMTP id r11mr162559ugg; Tue, 11 Jul 2006 20:00:55 -0700 (PDT) Received: by 10.67.103.17 with HTTP; Tue, 11 Jul 2006 20:00:55 -0700 (PDT) Message-ID: Date: Wed, 12 Jul 2006 11:00:55 +0800 From: "Kim Leng Goh" To: dev@apr.apache.org Subject: Fwd: Problem with undeclared identifiers (declared in apr_file_io.h, apr_errno.h) In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'm forwarding this to the APR developer mailing list hoping that someone might provide a clue. ---------- Forwarded message ---------- [...] Date: Jul 10, 2006 10:12 PM Subject: Problem with undeclared identifiers (declared in apr_file_io.h, apr_errno.h) To: modperl@perl.apache.org Hi all, I'm using apr-0.9.12, apr-util-0.9.12, httpd-2.0.58 and mod_perl-2.0.2 and gcc-3.2.2-5: ~/mod_perl-2.0.2$ perl Makefile.PL MP_APXS=/usr/sbin/apxs Reading Makefile.PL args from @ARGV MP_APXS = /usr/sbin/apxs no conflicting prior mod_perl version found - good. Configuring Apache/2.0.58 mod_perl2/2.0.2 Perl/v5.8.0 It seems that gcc fails to know about some apr identifiers which are defined in /usr/include/apr-0/apr_errno.h and /usr/include/apr-0/apr_file_io.h even though both are included in src/modules/perl/modperl_io_apache.h and xs/APR/PerlIO/modperl_apr_perlio.h : ~/mod_perl-2.0.2$ make && make test [...] gcc -I/home/anon/mod_perl-2.0.2/src/modules/perl -I/home/anon/mod_perl-2.0.2/xs -I/usr/include/apr-0 -I/usr/include/apr-0 -I/usr/include/httpd -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -DMOD_PERL -DMP_COMPAT_1X -DLINUX=2 -O2 -g -pipe -march=i386 -mcpu=i686 -fPIC \ -c modperl_util.c && mv modperl_util.o modperl_util.lo modperl_util.c: In function `modperl_errsv': modperl_util.c:210: `APR_OS_START_USERERR' undeclared (first use in this function) modperl_util.c:210: (Each undeclared identifier is reported only once modperl_util.c:210: for each function it appears in.) modperl_util.c: In function `modperl_perl_exit': modperl_util.c:500: `APR_OS_START_USERERR' undeclared (first use in this function) make[1]: *** [modperl_util.lo] Error 1 make[1]: Leaving directory `/home/anon/mod_perl-2.0.2/src/modules/perl' make: *** [modperl_lib] Error 2 If I put the following lines in src/modules/perl/mod_perl.h, compilation is successful: #include "apr_file_io.h" #include "apr_errno.h" However, if I didn't put #include "apr_file_io.h" in mod_perl.h, compilation is unsuccessful: gcc -I/home/anon/mod_perl-2.0.2/src/modules/perl -I/home/anon/mod_perl-2.0.2/xs -I/usr/include/apr-0 -I/usr/include/apr-0 -I/usr/include/httpd -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -DMOD_PERL -DMP_COMPAT_1X -DLINUX=2 -O2 -g -pipe -march=i386 -mcpu=i686 -fPIC \ -c modperl_constants.c && mv modperl_constants.o modperl_constants.lo modperl_constants.c: In function `modperl_constants_lookup_apr_const': modperl_constants.c:1340: `APR_UNKFILE' undeclared (first use in this function) modperl_constants.c:1340: (Each undeclared identifier is reported only once modperl_constants.c:1340: for each function it appears in.) modperl_constants.c:1380: `APR_FILEPATH_ENCODING_UNKNOWN' undeclared (first use in this function) modperl_constants.c:1385: `APR_FILEPATH_ENCODING_LOCALE' undeclared (first use in this function) modperl_constants.c:1390: `APR_FILEPATH_ENCODING_UTF8' undeclared (first use in this function) make[1]: *** [modperl_constants.lo] Error 1 make[1]: Leaving directory `/home/anon/mod_perl-2.0.2/src/modules/perl' make: *** [modperl_lib] Error 2 It seems that I have the same problem with older mod_perl releases such as 1.99. Thanks in advance to anyone who offers some clues. Regards, KL