Hi list: I need to compile mod_perl as static module in apache, i try to compile like oleg with a few changes, but i got different problems when i hit make, my line of configuration in mod_perl is:
perl Makefile.PL MP_USE_STATIC=1 MP_AP_PREFIX=../httpd-2.2.9/ MP_AP_CONFIGURE=" --prefix=/usr/local/apache3 --with-mpm=prefork --enable-rewrite --with-included-apr" And the problems are: repuesto mod_perl-2.0.4 # make cd "src/modules/perl" && make make[1]: se ingresa al directorio `/root/apache_modperl2/mod_perl-2.0.4/src/modules/perl' i686-pc-linux-gnu-gcc -I/root/apache_modperl2/mod_perl-2.0.4/src/modules/perl -I/root/apache_modperl2/mod_perl-2.0.4/xs -I/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include -I/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include -I/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include -I/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/os/unix -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/include/gdbm -I/usr/lib/perl5/5.8.8/i686-linux/CORE -DMOD_PERL -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Werror -Wdeclaration-after-statement -DMP_COMPAT_1X -g -DMP_DEBUG -DMP_TRACE -c mod_perl.c In file included from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/ap_config.h:25, from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/httpd.h:43, from modperl_apache_includes.h:27, from mod_perl.h:20, from mod_perl.c:17: /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr.h:285: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'apr_off_t' In file included from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_file_io.h:29, from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_network_io.h:26, from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/httpd.h:53, from modperl_apache_includes.h:27, from mod_perl.h:20, from mod_perl.c:17: /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_file_info.h:198: error: expected specifier-qualifier-list before 'apr_off_t' In file included from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_network_io.h:26, from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/httpd.h:53, from modperl_apache_includes.h:27, from mod_perl.h:20, from mod_perl.c:17: /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_file_io.h:632: error: expected declaration specifiers or '...' before 'apr_off_t' /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_file_io.h:859: error: expected declaration specifiers or '...' before 'apr_off_t' In file included from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/httpd.h:53, from modperl_apache_includes.h:27, from mod_perl.h:20, from mod_perl.c:17: /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_network_io.h:550: error: expected declaration specifiers or '...' before 'apr_off_t' In file included from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:32, from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/httpd.h:54, from modperl_apache_includes.h:27, from mod_perl.h:20, from mod_perl.c:17: /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_mmap.h:134: error: expected declaration specifiers or '...' before 'apr_off_t' /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_mmap.h:161: error: expected declaration specifiers or '...' before 'apr_off_t' In file included from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/httpd.h:54, from modperl_apache_includes.h:27, from mod_perl.h:20, from mod_perl.c:17: /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:242: error: expected specifier-qualifier-list before 'apr_off_t' /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:725: error: expected declaration specifiers or '...' before 'apr_off_t' /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:738: error: expected declaration specifiers or '...' before 'apr_off_t' /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:774: error: expected declaration specifiers or '...' before 'apr_off_t' /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:910: error: expected declaration specifiers or '...' before 'apr_off_t' /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:911: error: expected declaration specifiers or '...' before 'apr_off_t' /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:1202: error: expected declaration specifiers or '...' before 'apr_off_t' /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:1401: error: expected declaration specifiers or '...' before 'apr_off_t' /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:1415: error: expected declaration specifiers or '...' before 'apr_off_t' /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:1471: error: expected declaration specifiers or '...' before 'apr_off_t' /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:1487: error: expected declaration specifiers or '...' before 'apr_off_t' In file included from modperl_apache_includes.h:27, from mod_perl.h:20, from mod_perl.c:17: /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/httpd.h:858: error: expected specifier-qualifier-list before 'apr_off_t' In file included from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/http_protocol.h:34, from modperl_apache_includes.h:30, from mod_perl.h:20, from mod_perl.c:17: /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/util_filter.h:142: error: expected declaration specifiers or '...' before 'apr_off_t' /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/util_filter.h:299: error: expected declaration specifiers or '...' before 'apr_off_t' In file included from modperl_apache_includes.h:30, from mod_perl.h:20, from mod_perl.c:17: /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/http_protocol.h:111: error: expected declaration specifiers or '...' before 'apr_off_t' /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/http_protocol.h:203: error: expected declaration specifiers or '...' before 'apr_off_t' In file included from modperl_apache_includes.h:34, from mod_perl.h:20, from mod_perl.c:17: /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/http_core.h:229: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ap_get_limit_req_body' /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/http_core.h:510: error: expected specifier-qualifier-list before 'apr_off_t' /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/http_core.h:611: error: expected declaration specifiers or '...' before 'apr_off_t' /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/http_core.h:672: error: expected declaration specifiers or '...' before 'apr_off_t' /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/http_core.h:675: error: expected declaration specifiers or '...' before 'apr_off_t' In file included from modperl_apr_includes.h:29, from modperl_common_includes.h:22, from mod_perl.h:21, from mod_perl.c:17: /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_strings.h:299: error: expected declaration specifiers or '...' before 'apr_off_t' /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_strings.h:317: error: expected ')' before '*' token /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_strings.h:353: error: expected ')' before 'size' In file included from mod_perl.h:72, from mod_perl.c:17: modperl_types.h:232: error: expected specifier-qualifier-list before 'apr_off_t' In file included from mod_perl.h:85, from mod_perl.c:17: modperl_filter.h:56: error: expected declaration specifiers or '...' before 'apr_off_t' modperl_filter.h:94: error: expected declaration specifiers or '...' before 'apr_off_t' In file included from mod_perl.h:86, from mod_perl.c:17: modperl_bucket.h:21: error: expected declaration specifiers or '...' before 'apr_off_t' mod_perl.c: En la función 'modperl_hook_create_request': mod_perl.c:738: error: 'request_rec' no tiene un miembro llamado 'request_config' mod_perl.c:740: error: 'request_rec' no tiene un miembro llamado 'request_config' mod_perl.c: En la función 'modperl_response_init': mod_perl.c:965: error: 'request_rec' no tiene un miembro llamado 'request_config' mod_perl.c:966: error: 'request_rec' no tiene un miembro llamado 'per_dir_config' mod_perl.c:979: error: 'request_rec' no tiene un miembro llamado 'output_filters' mod_perl.c: En la función 'modperl_response_finish': mod_perl.c:988: error: 'request_rec' no tiene un miembro llamado 'request_config' mod_perl.c: En la función 'modperl_response_handler_run': mod_perl.c:1002: error: 'request_rec' no tiene un miembro llamado 'content_type' mod_perl.c:1003: error: 'request_rec' no tiene un miembro llamado 'handler' mod_perl.c:1003: error: 'request_rec' no tiene un miembro llamado 'content_type' mod_perl.c: En la función 'modperl_response_handler': mod_perl.c:1018: error: 'request_rec' no tiene un miembro llamado 'per_dir_config' mod_perl.c:1019: error: 'request_rec' no tiene un miembro llamado 'request_config' mod_perl.c:1027: error: 'request_rec' no tiene un miembro llamado 'handler' cc1: warnings being treated as errors mod_perl.c:1019: aviso: variable 'rcfg' sin usar mod_perl.c: En la función 'modperl_response_handler_cgi': mod_perl.c:1059: error: 'request_rec' no tiene un miembro llamado 'per_dir_config' mod_perl.c:1062: error: 'request_rec' no tiene un miembro llamado 'request_config' mod_perl.c:1068: error: 'request_rec' no tiene un miembro llamado 'handler' make[1]: *** [mod_perl.o] Error 1 make[1]: se sale del directorio `/root/apache_modperl2/mod_perl-2.0.4/src/modules/perl' make: *** [modperl_lib] Error 2 I have compiles with different versions of apache 2.2.6, 2.2.8 and 2.2.9 and the result is the same, i think that the problem is the version of apr, because with the version 2.0.63 no errors appears and compile perfectly, someone knows how I can solve this problem? Thanks Atte: ISC Mario Ignacio Rodríguez Cortés. > Date: Sat, 26 Jul 2008 05:42:52 +0300 > From: [EMAIL PROTECTED] > To: modperl@perl.apache.org > Subject: Can't compile Apache2.2.9 + ModPerl2.0.4 > > Hi, just got a fresh VPS server and wanted to install the second apache > on 8080 but without success > > The configure process was ok, with only one warning: > > Your Perl is configured to link against libgdbm, > but libgdbm.so was not found. > You could just symlink it to /usr/lib/libgdbm.so.2.0.0 > > perl Makefile.PL MP_USE_STATIC=1 > MP_AP_PREFIX=/usr/local/src/httpd_perl2/httpd-2.2.9 > MP_AP_CONFIGURE="--prefix=/usr/local/httpd_perl --with-mpm=prefork > --disable-cgi --with-port=8080" > > But when I hit make, a lot off error messages appears, almost all of > them with a "perl.h" problem, here are some lines: > ------------------------------------- > /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/perl.h:3852: error: > storage class specified for parameter ???PerlExitListEntry??? > In file included from > /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/perl.h:3881, > from modperl_perl_includes.h:65, > from modperl_common_includes.h:24, > from mod_perl.h:21, > from mod_perl.c:17: > /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/thrdvar.h:34: error: > expected specifier-qualifier-list before ???SV??? > In file included from modperl_perl_includes.h:65, > from modperl_common_includes.h:24, > from mod_perl.h:21, > from mod_perl.c:17: > /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/perl.h:3889: warning: > empty declaration > ------------------------------------- > > There is one apache on this server that already have mod_perl as a > shared module, but I don't think this is the cause. > > here some lines from perl -V: > Summary of my perl5 (revision 5 version 8 subversion 8) configuration: > osname=linux, osvers=2.6.18-53.1.14.el5pae, archname=i386-linux-thread-multi > Linker and Libraries: > ld='gcc', ldflags =' -L/usr/local/lib' > libpth=/usr/local/lib /lib /usr/lib > libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc > perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc > libc=/lib/libc-2.5.so, so=so, useshrplib=true, libperl=libperl.so > gnulibc_version='2.5' > Dynamic Linking: > dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E > -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE' > Characteristics of this binary (from libperl): > Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT > PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES > USE_PERLIO USE_REENTRANT_API > > Does someone know where the shoe pinches? > Thanks. _________________________________________________________________ Reveal your inner athlete and share it with friends on Windows Live. http://revealyourinnerathlete.windowslive.com?locale=en-us&ocid=TXT_TAGLM_WLYIA_whichathlete_us