Hi,
I have a new system running Debian Linux 3.1 (Sarge) and have been attempting 
to install mod_perl 2.0.2 with Apache 2.2.2 using the recommended directions 
located at

   http://perl.apache.org/docs/2.0/user/install/install.html

... and I keep getting compilation errors.  It executes the apache configure 
and make fine, but when it tries to run make for mod_perl2, it always gives the 
following errors below.  I downloaded the latest code for apache and mod_perl, 
verified MD5 sums, etc.  Also, I attempted to compile apache 1.3.36 and 
mod_perl 1.29, just to see if that would work, and it linked fine the first 
time.

I linked my own non-threaded version of perl 5.8.8, and it worked fine.
gcc version 3.3.5

Here is my Makefile.PL statement I executed:

  perl_588 Makefile.PL \
     PREFIX=$PERL_LIB_INSTALL_DIR \
     MP_USE_STATIC=1 \
     MP_AP_PREFIX=$AP_SRC_DIR \
     MP_AP_CONFIGURE='--prefix=/home/nokesja/vendor/apache/2.2.2/install \
                       --with-mpm=prefork'

Since niether of these versions of apache or mod_perl are bleeding edge, and I 
have not seen any postings from others about errors like these, I think there 
may be something  fundamentally wrong somewhere.  Any help you can offer is 
appreciated.

Thanks,
- Jeff

(PS:  Yes, I could use the debian package for apache/mod_perl, but I prefer do 
it myself.  Sorry for the long posting.)

-------------------------------------------------
Configuring Apache/2.2.2*/ mod_perl2/2.0.2 Perl/v5.8.8
Checking if your kit is complete...
Looks good
[   info] generating script t/TEST
[   info] generating script ./t/cgi-bin/cookies.pl
Writing Makefile for Apache::Test
Checking for File::Spec...ok
Checking for Cwd...ok
[   info] generating script t/TEST
Checking if your kit is complete...
Looks good
Writing Makefile for ModPerl::Registry
Writing Makefile for APR::Base64
Writing Makefile for APR::Brigade
Writing Makefile for APR::Bucket
Writing Makefile for APR::BucketAlloc
Writing Makefile for APR::BucketType
Writing Makefile for APR::Date
Writing Makefile for APR::Error
Writing Makefile for APR::Finfo
Writing Makefile for APR::IpSubnet
Writing Makefile for APR::OS
Writing Makefile for APR::Pool
Writing Makefile for APR::SockAddr
Writing Makefile for APR::Socket
Writing Makefile for APR::Status
Writing Makefile for APR::String
Writing Makefile for APR::Table
Writing Makefile for APR::ThreadMutex
Writing Makefile for APR::URI
Writing Makefile for APR::UUID
Writing Makefile for APR::Util
Writing Makefile for APR
Writing Makefile for Apache2::Access
Writing Makefile for Apache2::CmdParms
Writing Makefile for Apache2::Command
Writing Makefile for Apache2::Connection
Writing Makefile for Apache2::Directive
Writing Makefile for Apache2::Filter
Writing Makefile for Apache2::FilterRec
Writing Makefile for Apache2::HookRun
Writing Makefile for Apache2::Log
Writing Makefile for Apache2::MPM
Writing Makefile for Apache2::Module
Writing Makefile for Apache2::Process
Writing Makefile for Apache2::RequestIO
Writing Makefile for Apache2::RequestRec
Writing Makefile for Apache2::RequestUtil
Writing Makefile for Apache2::Response
Writing Makefile for Apache2::ServerRec
Writing Makefile for Apache2::ServerUtil
Writing Makefile for Apache2::SubProcess
Writing Makefile for Apache2::SubRequest
Writing Makefile for Apache2::URI
Writing Makefile for Apache2::Util
Writing Makefile for Apache2
Writing Makefile for ModPerl::Global
Writing Makefile for ModPerl::Util
Writing Makefile for ModPerl
Writing Makefile for ModPerl::WrapXS
Unrecognized argument in LIBS ignored: 
'/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr-util/xml/expat/lib/libexpat.la'
Writing Makefile for APR
Writing Makefile for APR::Const
Writing Makefile for APR::PerlIO
Writing Makefile for libaprext
Writing Makefile for APR_build
Writing Makefile for Apache2::Const
Writing Makefile for Apache2_build
Writing Makefile for ModPerl::Const
Writing Makefile for ModPerl
Writing Makefile for ModPerl::XS
Writing Makefile for mod_perl2
[warning] mod_perl static library will be built as mod_perl.a

Execute `make` for mod_perl

cd "src/modules/perl" && make
make[1]: Entering directory 
`/usr/apps/perl/modules/mod_perl/mod_perl-2.0.2/src/modules/perl'
cc -I/usr/apps/perl/modules/mod_perl/mod_perl-2.0.2/src/modules/perl 
-I/usr/apps/perl/modules/mod_perl/mod_perl-2.0.2/xs 
-I/usr/apps/apache/2.2.2/httpd-2.2.2/include -I/usr/apps/a
pache/2.2.2/httpd-2.2.2/srclib/apr/include 
-I/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr-util/include 
-I/usr/apps/apache/2.2.2/httpd-2.2.2/os/unix -fno-strict-aliasing -pipe -I/
usr/local/include 
-I/usr/apps/perl/5.8.8/install/nothread/lib/5.8.8/i586-linux-ld/CORE -DMOD_PERL 
-DMP_COMPAT_1X -O2 -c mod_perl.c
In file included from /usr/apps/apache/2.2.2/httpd-2.2.2/include/ap_config.h:25,
                 from /usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:43,
                 from modperl_apache_includes.h:26,
                 from mod_perl.h:19,
                 from mod_perl.c:16:
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr/include/apr.h:270: error: syntax 
error before "apr_off_t"
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr/include/apr.h:270: warning: data 
definition has no type or storage class
In file included from 
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr/include/apr_file_io.h:29,
                 from 
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr/include/apr_network_io.h:26,
                 from /usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:53,
                 from modperl_apache_includes.h:26,
                 from mod_perl.h:19,
                 from mod_perl.c:16:
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr/include/apr_file_info.h:204: 
error: syntax error before "apr_off_t"
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr/include/apr_file_info.h:204: 
warning: no semicolon at end of struct or union
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr/include/apr_file_info.h:206: 
warning: data definition has no type or storage class
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr/include/apr_file_info.h:219: 
error: syntax error before '}' token
In file included from 
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr/include/apr_network_io.h:26,
                 from /usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:53,
                 from modperl_apache_includes.h:26,
                 from mod_perl.h:19,
                 from mod_perl.c:16:
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr/include/apr_file_io.h:548: error: 
syntax error before "apr_off_t"
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr/include/apr_file_io.h:740: error: 
syntax error before "apr_off_t"
In file included from /usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:53,
                 from modperl_apache_includes.h:26,
                 from mod_perl.h:19,
                 from mod_perl.c:16:
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr/include/apr_network_io.h:545: 
error: syntax error before "apr_off_t"
In file included from 
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr-util/include/apr_buckets.h:32,
                 from /usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:54,
                 from modperl_apache_includes.h:26,
                 from mod_perl.h:19,
                 from mod_perl.c:16:
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr/include/apr_mmap.h:134: error: 
syntax error before "apr_off_t"
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr/include/apr_mmap.h:161: error: 
syntax error before "apr_off_t"
In file included from /usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:54,
                 from modperl_apache_includes.h:26,
                 from mod_perl.h:19,
                 from mod_perl.c:16:
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr-util/include/apr_buckets.h:242: 
error: syntax error before "apr_off_t"
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr-util/include/apr_buckets.h:242: 
warning: no semicolon at end of struct or union
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr-util/include/apr_buckets.h:255: 
error: syntax error before '}' token
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr-util/include/apr_buckets.h:634: 
error: field `b' has incomplete type
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr-util/include/apr_buckets.h:706: 
error: syntax error before "apr_off_t"
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr-util/include/apr_buckets.h:718: 
error: syntax error before "apr_off_t"
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr-util/include/apr_buckets.h:754: 
error: syntax error before "apr_off_t"
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr-util/include/apr_buckets.h:890: 
error: syntax error before "apr_off_t"
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr-util/include/apr_buckets.h:1168: 
error: syntax error before "apr_off_t"
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr-util/include/apr_buckets.h:1367: 
error: syntax error before "apr_off_t"
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr-util/include/apr_buckets.h:1381: 
error: syntax error before "apr_off_t"
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr-util/include/apr_buckets.h:1431: 
error: syntax error before "apr_off_t"
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr-util/include/apr_buckets.h:1447: 
error: syntax error before "apr_off_t"
In file included from /usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:62,
                 from modperl_apache_includes.h:26,
                 from mod_perl.h:19,
                 from mod_perl.c:16:
/usr/include/stdlib.h:569: error: `free' redeclared as different kind of symbol
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr-util/include/apr_buckets.h:252: 
error: previous declaration of `free'
In file included from modperl_apache_includes.h:26,
                 from mod_perl.h:19,
                 from mod_perl.c:16:
/usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:826: error: syntax error 
before "apr_off_t"
/usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:826: warning: no semicolon 
at end of struct or union
/usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:828: warning: data 
definition has no type or storage class
/usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:839: error: syntax error 
before "clength"
/usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:839: warning: data 
definition has no type or storage class
/usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:842: error: syntax error 
before "remaining"
/usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:842: warning: data 
definition has no type or storage class
/usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:844: error: syntax error 
before "read_length"
/usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:844: warning: data 
definition has no type or storage class
/usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:975: error: syntax error 
before '}' token
In file included from /usr/include/pthread.h:21,
                 from 
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr/include/apr_portable.h:47,
                 from 
/usr/apps/apache/2.2.2/httpd-2.2.2/include/http_protocol.h:31,
                 from modperl_apache_includes.h:29,
                 from mod_perl.h:19,
                 from mod_perl.c:16:
/usr/include/time.h:254: error: `ctime' redeclared as different kind of symbol
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr/include/apr_file_info.h:212: 
error: previous declaration of `ctime'
In file included from 
/usr/apps/apache/2.2.2/httpd-2.2.2/include/http_protocol.h:34,
                 from modperl_apache_includes.h:29,
                 from mod_perl.h:19,
                 from mod_perl.c:16:
/usr/apps/apache/2.2.2/httpd-2.2.2/include/util_filter.h:142: error: syntax 
error before "apr_off_t"
/usr/apps/apache/2.2.2/httpd-2.2.2/include/util_filter.h:299: error: syntax 
error before "apr_off_t"
In file included from modperl_apache_includes.h:29,
                 from mod_perl.h:19,
                 from mod_perl.c:16:
/usr/apps/apache/2.2.2/httpd-2.2.2/include/http_protocol.h:111: error: syntax 
error before "apr_off_t"
/usr/apps/apache/2.2.2/httpd-2.2.2/include/http_protocol.h:203: error: syntax 
error before "apr_off_t"
In file included from modperl_apache_includes.h:33,
                 from mod_perl.h:19,
                 from mod_perl.c:16:
/usr/apps/apache/2.2.2/httpd-2.2.2/include/http_core.h:229: error: syntax error 
before "ap_get_limit_req_body"
/usr/apps/apache/2.2.2/httpd-2.2.2/include/http_core.h:229: warning: data 
definition has no type or storage class
/usr/apps/apache/2.2.2/httpd-2.2.2/include/http_core.h:288: error: 
`ap_auth_type' redeclared as different kind of symbol
/usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:898: error: previous 
declaration of `ap_auth_type'
/usr/apps/apache/2.2.2/httpd-2.2.2/include/http_core.h:510: error: syntax error 
before "apr_off_t"
/usr/apps/apache/2.2.2/httpd-2.2.2/include/http_core.h:510: warning: no 
semicolon at end of struct or union
/usr/apps/apache/2.2.2/httpd-2.2.2/include/http_core.h:525: error: conflicting 
types for `output_filters'
/usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:956: error: previous 
declaration of `output_filters'
/usr/apps/apache/2.2.2/httpd-2.2.2/include/http_core.h:526: error: conflicting 
types for `input_filters'
/usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:958: error: previous 
declaration of `input_filters'
/usr/apps/apache/2.2.2/httpd-2.2.2/include/http_core.h:544: error: syntax error 
before ':' token
/usr/apps/apache/2.2.2/httpd-2.2.2/include/http_core.h:549: error: syntax error 
before ':' token
/usr/apps/apache/2.2.2/httpd-2.2.2/include/http_core.h:550: error: syntax error 
before ':' token
/usr/apps/apache/2.2.2/httpd-2.2.2/include/http_core.h:556: error: syntax error 
before ':' token
/usr/apps/apache/2.2.2/httpd-2.2.2/include/http_core.h:558: warning: data 
definition has no type or storage class
/usr/apps/apache/2.2.2/httpd-2.2.2/include/http_core.h:605: error: syntax error 
before '*' token
/usr/apps/apache/2.2.2/httpd-2.2.2/include/http_core.h:611: error: syntax error 
before "apr_off_t"
/usr/apps/apache/2.2.2/httpd-2.2.2/include/http_core.h:672: error: syntax error 
before "apr_off_t"
In file included from modperl_apr_includes.h:28,
                 from modperl_common_includes.h:21,
                 from mod_perl.h:20,
                 from mod_perl.c:16:
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr/include/apr_strings.h:297: error: 
syntax error before "apr_off_t"
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr/include/apr_strings.h:313: error: 
syntax error before '*' token
/usr/apps/apache/2.2.2/httpd-2.2.2/srclib/apr/include/apr_strings.h:349: error: 
syntax error before "size"
In file included from mod_perl.h:71,
                 from mod_perl.c:16:
modperl_types.h:232: error: syntax error before "apr_off_t"
modperl_types.h:232: warning: no semicolon at end of struct or union
modperl_types.h:237: error: syntax error before '}' token
modperl_types.h:237: warning: data definition has no type or storage class
In file included from mod_perl.h:84,
                 from mod_perl.c:16:
modperl_filter.h:50: error: syntax error before '*' token
modperl_filter.h:55: error: syntax error before "apr_off_t"
modperl_filter.h:55: warning: data definition has no type or storage class
modperl_filter.h:57: error: syntax error before '*' token
modperl_filter.h:57: warning: data definition has no type or storage class
modperl_filter.h:62: error: syntax error before '*' token
modperl_filter.h:72: error: syntax error before '*' token
modperl_filter.h:73: error: syntax error before '*' token
modperl_filter.h:77: error: syntax error before '*' token
modperl_filter.h:82: error: syntax error before '*' token
modperl_filter.h:93: error: syntax error before "apr_off_t"
modperl_filter.h:100: error: syntax error before '*' token
modperl_filter.h:105: error: syntax error before '*' token
In file included from mod_perl.h:85,
                 from mod_perl.c:16:
modperl_bucket.h:20: error: syntax error before "apr_off_t"
In file included from mod_perl.h:86,
                 from mod_perl.c:16:
modperl_pcw.h:36: error: syntax error before "core_dir_config"
mod_perl.c: In function `modperl_startup':
mod_perl.c:307: error: storage size of `finfo' isn't known
mod_perl.c: In function `modperl_hook_create_request':
mod_perl.c:733: error: dereferencing pointer to incomplete type
mod_perl.c:735: error: dereferencing pointer to incomplete type
mod_perl.c: In function `modperl_response_init':
mod_perl.c:959: error: dereferencing pointer to incomplete type
mod_perl.c:960: error: dereferencing pointer to incomplete type
mod_perl.c:965: error: dereferencing pointer to incomplete type
mod_perl.c:972: error: dereferencing pointer to incomplete type
mod_perl.c:973: error: dereferencing pointer to incomplete type
mod_perl.c: In function `modperl_response_finish':
mod_perl.c:982: error: dereferencing pointer to incomplete type
mod_perl.c: In function `modperl_response_handler_run':
mod_perl.c:996: error: dereferencing pointer to incomplete type
mod_perl.c:997: error: dereferencing pointer to incomplete type
mod_perl.c:997: error: dereferencing pointer to incomplete type
mod_perl.c: In function `modperl_response_handler':
mod_perl.c:1012: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c:1020: error: dereferencing pointer to incomplete type
mod_perl.c: In function `modperl_response_handler_cgi':
mod_perl.c:1048: error: dereferencing pointer to incomplete type
mod_perl.c:1051: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c:1057: error: dereferencing pointer to incomplete type
mod_perl.c: At top level:
/usr/apps/apache/2.2.2/httpd-2.2.2/include/httpd.h:923: error: storage size of 
`finfo' isn't known
make[1]: *** [mod_perl.o] Error 1
make[1]: Leaving directory 
`/usr/apps/perl/modules/mod_perl/mod_perl-2.0.2/src/modules/perl'
make: *** [modperl_lib] Error 2




Reply via email to