Hello, I have big problem and I cant find any solutions, how to solve it :-( I Install libapache2-mod-layout on my Debian Lenny. In this version is problem, with php gd images, therefore I remove it and install this mod like perl module (Apache2::Layout). I install it from this site: http://search.cpan.org/~gozer/Apache2-Layout-0.6/lib/Apache2/Layout.pm and via CPAN too. In both types I get error with "make". There was many errors and I cannot locate problem of it. I try to find solution on internet, but I wasnt success :-(. I really dont know where is problem and how solve it :-( I need this module :-( Please, can anybody help me with this? :-( Thank you very very much!
Output from CPAN: Code: CPAN.pm: Going to build G/GO/GOZER/Apache2-Layout-0.6.tar.gz WARNING: EXTRA_META is not a known parameter. Checking if your kit is complete... Looks good 'EXTRA_META' is not a known MakeMaker parameter name. Writing Makefile for Apache2::Layout cp lib/Apache2/Layout.pm blib/lib/Apache2/Layout.pm /usr/bin/perl /usr/share/perl/5.10/ExtUtils/xsubpp -typemap /usr/share/perl/5.1 0/ExtUtils/typemap -typemap /usr/lib/perl5/auto/Apache2/typemap Layout.xs > Lay out.xsc && mv Layout.xsc Layout.c Please specify prototyping behavior for Layout.xs (see perlxs manual) cc -c -I/usr/include/httpd -I/usr/include/apache2/ -I/usr/include/apr-1 -D_REEN TRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -I/ usr/lib/perl/5.10/CORE -DMOD_PERL -DMP_USE_GTOP -DMP_COMPAT_1X -g -Wall -O2 -g -DVERSION=\"0.6\" -DXS_VERSION=\"0.6\" -fPIC "-I/usr/lib/perl/5.10/CORE" Layo ut.c In file included from /usr/include/apache2/httpd.h:43, from Layout.xs:5: /usr/include/apache2/ap_config.h:25:17: error: apr.h: No such file or directory /usr/include/apache2/ap_config.h:26:23: error: apr_hooks.h: No such file or dire ctory /usr/include/apache2/ap_config.h:27:32: error: apr_optional_hooks.h: No such fil e or directory In file included from /usr/include/apache2/httpd.h:46, from Layout.xs:5: /usr/include/apache2/ap_release.h:25:41: error: apr_general.h: No such file or d irectory In file included from Layout.xs:5: /usr/include/apache2/httpd.h:50:24: error: apr_tables.h: No such file or directo ry /usr/include/apache2/httpd.h:51:23: error: apr_pools.h: No such file or director y /usr/include/apache2/httpd.h:52:22: error: apr_time.h: No such file or directory /usr/include/apache2/httpd.h:53:28: error: apr_network_io.h: No such file or dir ectory /usr/include/apache2/httpd.h:54:25: error: apr_buckets.h: No such file or direct ory /usr/include/apache2/httpd.h:55:22: error: apr_poll.h: No such file or directory In file included from /usr/include/apache2/httpd.h:59, from Layout.xs:5: /usr/include/apache2/ap_regex.h:87: error: expected specifier-qualifier-list bef ore 'apr_size_t' /usr/include/apache2/ap_regex.h:118: error: expected declaration specifiers or ' ...' before 'apr_size_t' /usr/include/apache2/ap_regex.h:127: error: expected '=', ',', ';', 'asm' or '__ attribute__' before 'ap_regerror' In file included from Layout.xs:5: /usr/include/apache2/httpd.h:461: error: expected ')' before '*' token /usr/include/apache2/httpd.h:631: error: expected specifier-qualifier-list befor e 'apr_int64_t' /usr/include/apache2/httpd.h:755:21: error: apr_uri.h: No such file or directory /usr/include/apache2/httpd.h:762: error: expected specifier-qualifier-list befor e 'apr_pool_t' /usr/include/apache2/httpd.h:778: error: expected specifier-qualifier-list befor e 'apr_pool_t' /usr/include/apache2/httpd.h:1040: error: expected specifier-qualifier-list befo re 'apr_pool_t' /usr/include/apache2/httpd.h:1122: error: expected specifier-qualifier-list befo re 'APR_RING_ENTRY' /usr/include/apache2/httpd.h:1155: error: expected specifier-qualifier-list befo re 'apr_sockaddr_t' /usr/include/apache2/httpd.h:1183: error: expected specifier-qualifier-list befo re 'apr_port_t' /usr/include/apache2/httpd.h:1239: error: expected specifier-qualifier-list befo re 'apr_bucket_brigade' /usr/include/apache2/httpd.h:1247: error: expected specifier-qualifier-list befo re 'apr_bucket_brigade' /usr/include/apache2/httpd.h:1253: error: expected specifier-qualifier-list befo re 'apr_socket_t' /usr/include/apache2/httpd.h:1269: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1279: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1292: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1302: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1311: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1321: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1331: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1343: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1351: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1360: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1371: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1394: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1404: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1416: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1425: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1434: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1476: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1486: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1497: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1505: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1514: error: expected '=', ',', ';', 'asm' or '__at tribute__' before 'ap_escape_errorlog_item' /usr/include/apache2/httpd.h:1525: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1534: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1563: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1577: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1587: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1639: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1647: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1661: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1669: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1682: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1722: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1734: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1744: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1752: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1763: error: expected ')' before '*' token In file included from /usr/include/apache2/http_request.h:45, from Layout.xs:6: /usr/include/apache2/util_filter.h:136: error: expected declaration specifiers o r '...' before '*' token /usr/include/apache2/util_filter.h:137: error: expected declaration specifiers o r '...' before 'apr_bucket_brigade' /usr/include/apache2/util_filter.h:137: warning: type defaults to 'int' in decla ration of 'apr_status_t' /usr/include/apache2/util_filter.h:137: error: 'apr_status_t' declared as functi on returning a function /usr/include/apache2/util_filter.h:139: error: expected declaration specifiers o r '...' before 'apr_bucket_brigade' /usr/include/apache2/util_filter.h:141: error: expected declaration specifiers o r '...' before 'apr_read_type_e' /usr/include/apache2/util_filter.h:142: error: expected declaration specifiers o r '...' before 'apr_off_t' /usr/include/apache2/util_filter.h:142: error: 'ap_in_filter_func' declared as f unction returning a function /usr/include/apache2/util_filter.h:146: error: expected specifier-qualifier-list before 'ap_out_filter_func' /usr/include/apache2/util_filter.h:296: error: expected declaration specifiers o r '...' before 'apr_bucket_brigade' /usr/include/apache2/util_filter.h:298: error: expected declaration specifiers o r '...' before 'apr_read_type_e' /usr/include/apache2/util_filter.h:299: error: expected declaration specifiers o r '...' before 'apr_off_t' /usr/include/apache2/util_filter.h:299: error: 'ap_get_brigade' declared as func tion returning a function /usr/include/apache2/util_filter.h:310: error: expected declaration specifiers o r '...' before 'apr_bucket_brigade' /usr/include/apache2/util_filter.h:310: error: 'ap_pass_brigade' declared as fun ction returning a function /usr/include/apache2/util_filter.h:348: error: expected declaration specifiers o r '...' before 'ap_out_filter_func' /usr/include/apache2/util_filter.h:374: error: expected declaration specifiers o r '...' before 'ap_out_filter_func' /usr/include/apache2/util_filter.h:492: error: expected declaration specifiers o r '...' before 'apr_bucket_brigade' /usr/include/apache2/util_filter.h:493: error: expected declaration specifiers o r '...' before 'apr_bucket_brigade' /usr/include/apache2/util_filter.h:493: error: expected declaration specifiers o r '...' before 'apr_pool_t' /usr/include/apache2/util_filter.h:493: error: 'ap_save_brigade' declared as fun ction returning a function /usr/include/apache2/util_filter.h:503: error: expected ')' before '*' token /usr/include/apache2/util_filter.h:511: error: expected declaration specifiers o r '...' before 'apr_bucket_brigade' /usr/include/apache2/util_filter.h:511: error: 'ap_fflush' declared as function returning a function /usr/include/apache2/util_filter.h:548: error: expected declaration specifiers o r '...' before 'apr_bucket_brigade' /usr/include/apache2/util_filter.h:549: error: 'ap_fputstrs' declared as functio n returning a function /usr/include/apache2/util_filter.h:559: error: expected declaration specifiers o r '...' before 'apr_bucket_brigade' /usr/include/apache2/util_filter.h:562: error: 'ap_fprintf' declared as function returning a function /usr/include/apache2/util_filter.h:562: error: format string argument not a stri ng type In file included from Layout.xs:6: /usr/include/apache2/http_request.h:105: warning: type defaults to 'int' in decl aration of 'apr_finfo_t' /usr/include/apache2/http_request.h:105: error: expected ';', ',' or ')' before '*' token /usr/include/apache2/http_request.h:131: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/include/apache2/http_request.h:131: error: 'ap_sub_req_output_filter' decla red as function returning a function /usr/include/apache2/http_request.h:198: error: expected declaration specifiers or '...' before 'apr_time_t' /usr/include/apache2/http_request.h:261: error: expected ')' before 'int' make: *** [Layout.o] Error 1 GOZER/Apache2-Layout-0.6.tar.gz /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Failed during this command: GOZER/Apache2-Layout-0.6.tar.gz : make NO I try fix this: EXTRA_META' is not a known MakeMaker parameter name. Therefore I download this: http://search.cpan.org/CPAN/authors/id/G/GO/GOZER/Apache2-Layout-0.6.tar.gz and edit Makefile.PL and comment this: Code: if ($ExtUtils::MakeMaker::VERSION >= 6.36) { push @extra, ('EXTRA_META' => <<EOF); resources: license: http://dev.perl.org/licenses/ Repository: http://svn.ectoplasm.org/projects/perl/Apache2-Layout/trunk/ EOF } but when I enter: perl Makefile.PL I get this: Code: Checking if your kit is complete... Looks good Writing Makefile for Apache2::Layout # make cp lib/Apache2/Layout.pm blib/lib/Apache2/Layout.pm /usr/bin/perl /usr/share/perl/5.10/ExtUtils/xsubpp -typemap /usr/share/perl/5.10/ExtUtils/typemap -typemap /usr/lib/perl5/auto/Apache2/typemap Layout.xs > Layout.xsc && mv Layout.xsc Layout.c Please specify prototyping behavior for Layout.xs (see perlxs manual) cc -c -I/usr/include/httpd -I/usr/include/apache2/ -I/usr/include/apr-1 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/lib/perl/5.10/CORE -DMOD_PERL -DMP_USE_GTOP -DMP_COMPAT_1X -g -Wall -O2 -g -DVERSION=\"0.6\" -DXS_VERSION=\"0.6\" -fPIC "-I/usr/lib/perl/5.10/CORE" Layout.c In file included from /usr/include/apache2/httpd.h:43, from Layout.xs:5: /usr/include/apache2/ap_config.h:25:17: error: apr.h: No such file or directory /usr/include/apache2/ap_config.h:26:23: error: apr_hooks.h: No such file or directory /usr/include/apache2/ap_config.h:27:32: error: apr_optional_hooks.h: No such file or directory In file included from /usr/include/apache2/httpd.h:46, from Layout.xs:5: /usr/include/apache2/ap_release.h:25:41: error: apr_general.h: No such file or directory In file included from Layout.xs:5: /usr/include/apache2/httpd.h:50:24: error: apr_tables.h: No such file or directory /usr/include/apache2/httpd.h:51:23: error: apr_pools.h: No such file or directory /usr/include/apache2/httpd.h:52:22: error: apr_time.h: No such file or directory /usr/include/apache2/httpd.h:53:28: error: apr_network_io.h: No such file or directory /usr/include/apache2/httpd.h:54:25: error: apr_buckets.h: No such file or directory /usr/include/apache2/httpd.h:55:22: error: apr_poll.h: No such file or directory In file included from /usr/include/apache2/httpd.h:59, from Layout.xs:5: /usr/include/apache2/ap_regex.h:87: error: expected specifier-qualifier-list before 'apr_size_t' /usr/include/apache2/ap_regex.h:118: error: expected declaration specifiers or '...' before 'apr_size_t' /usr/include/apache2/ap_regex.h:127: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ap_regerror' In file included from Layout.xs:5: /usr/include/apache2/httpd.h:461: error: expected ')' before '*' token /usr/include/apache2/httpd.h:631: error: expected specifier-qualifier-list before 'apr_int64_t' /usr/include/apache2/httpd.h:755:21: error: apr_uri.h: No such file or directory /usr/include/apache2/httpd.h:762: error: expected specifier-qualifier-list before 'apr_pool_t' /usr/include/apache2/httpd.h:778: error: expected specifier-qualifier-list before 'apr_pool_t' /usr/include/apache2/httpd.h:1040: error: expected specifier-qualifier-list before 'apr_pool_t' /usr/include/apache2/httpd.h:1122: error: expected specifier-qualifier-list before 'APR_RING_ENTRY' /usr/include/apache2/httpd.h:1155: error: expected specifier-qualifier-list before 'apr_sockaddr_t' /usr/include/apache2/httpd.h:1183: error: expected specifier-qualifier-list before 'apr_port_t' /usr/include/apache2/httpd.h:1239: error: expected specifier-qualifier-list before 'apr_bucket_brigade' /usr/include/apache2/httpd.h:1247: error: expected specifier-qualifier-list before 'apr_bucket_brigade' /usr/include/apache2/httpd.h:1253: error: expected specifier-qualifier-list before 'apr_socket_t' /usr/include/apache2/httpd.h:1269: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1279: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1292: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1302: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1311: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1321: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1331: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1343: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1351: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1360: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1371: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1394: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1404: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1416: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1425: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1434: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1476: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1486: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1497: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1505: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1514: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ap_escape_errorlog_item' /usr/include/apache2/httpd.h:1525: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1534: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1563: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1577: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1587: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1639: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1647: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1661: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1669: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1682: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1722: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1734: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1744: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1752: error: expected ')' before '*' token /usr/include/apache2/httpd.h:1763: error: expected ')' before '*' token In file included from /usr/include/apache2/http_request.h:45, from Layout.xs:6: /usr/include/apache2/util_filter.h:136: error: expected declaration specifiers or '...' before '*' token /usr/include/apache2/util_filter.h:137: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/include/apache2/util_filter.h:137: warning: type defaults to 'int' in declaration of 'apr_status_t' /usr/include/apache2/util_filter.h:137: error: 'apr_status_t' declared as function returning a function /usr/include/apache2/util_filter.h:139: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/include/apache2/util_filter.h:141: error: expected declaration specifiers or '...' before 'apr_read_type_e' /usr/include/apache2/util_filter.h:142: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apache2/util_filter.h:142: error: 'ap_in_filter_func' declared as function returning a function /usr/include/apache2/util_filter.h:146: error: expected specifier-qualifier-list before 'ap_out_filter_func' /usr/include/apache2/util_filter.h:296: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/include/apache2/util_filter.h:298: error: expected declaration specifiers or '...' before 'apr_read_type_e' /usr/include/apache2/util_filter.h:299: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apache2/util_filter.h:299: error: 'ap_get_brigade' declared as function returning a function /usr/include/apache2/util_filter.h:310: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/include/apache2/util_filter.h:310: error: 'ap_pass_brigade' declared as function returning a function /usr/include/apache2/util_filter.h:348: error: expected declaration specifiers or '...' before 'ap_out_filter_func' /usr/include/apache2/util_filter.h:374: error: expected declaration specifiers or '...' before 'ap_out_filter_func' /usr/include/apache2/util_filter.h:492: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/include/apache2/util_filter.h:493: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/include/apache2/util_filter.h:493: error: expected declaration specifiers or '...' before 'apr_pool_t' /usr/include/apache2/util_filter.h:493: error: 'ap_save_brigade' declared as function returning a function /usr/include/apache2/util_filter.h:503: error: expected ')' before '*' token /usr/include/apache2/util_filter.h:511: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/include/apache2/util_filter.h:511: error: 'ap_fflush' declared as function returning a function /usr/include/apache2/util_filter.h:548: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/include/apache2/util_filter.h:549: error: 'ap_fputstrs' declared as function returning a function /usr/include/apache2/util_filter.h:559: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/include/apache2/util_filter.h:562: error: 'ap_fprintf' declared as function returning a function /usr/include/apache2/util_filter.h:562: error: format string argument not a string type In file included from Layout.xs:6: /usr/include/apache2/http_request.h:105: warning: type defaults to 'int' in declaration of 'apr_finfo_t' /usr/include/apache2/http_request.h:105: error: expected ';', ',' or ')' before '*' token /usr/include/apache2/http_request.h:131: error: expected declaration specifiers or '...' before 'apr_bucket_brigade' /usr/include/apache2/http_request.h:131: error: 'ap_sub_req_output_filter' declared as function returning a function /usr/include/apache2/http_request.h:198: error: expected declaration specifiers or '...' before 'apr_time_t' /usr/include/apache2/http_request.h:261: error: expected ')' before 'int' Thank you very much :-(
libapr1-dev is already the newest version. libapr1-dev set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. :-/
I guess that make thinks that apr.h is in /usr/include/apr-1, not /usr/include/apr-1.0. Please try this: Code: ln -s /usr/include/apr-1.0 /usr/include/apr-1
WOW, Im on the next step. Now is this problem... I dont know If I set good "httpd executable": Code: First we need to know where the 'httpd' executable is located. If you have more than one Apache server is installed, make sure you supply the path to the one you are going to use for testing. You can always override this setting at run time via the '-httpd' option. For example: % t/TEST -httpd /path/to/alternative/httpd or via the environment variable APACHE_TEST_HTTPD. For example: % APACHE_TEST_HTTPD=/path/to/alternative/httpd t/TEST If for some reason you want to skip the test suite, type: skip Please provide a full path to 'httpd' executable: [] The path '' is not an absolute path. Please specify an absolute path Please provide a full path to 'httpd' executable: [] /etc/init.d/apache2 Next we need to know where the 'apxs' script is located. This script provides a lot of information about the apache installation, and makes it easier to find things. However it's not available on all platforms, therefore it's optional. If you don't have it installed it's not a problem. Just press Enter. Notice that if you have Apache 2.x installed that script could be called as 'apxs2'. If you have more than one Apache server is installed, make sure you supply the path to the apxs script you are going to use for testing. You can always override this setting at run time via the '-apxs' option. For example: % t/TEST -apxs /path/to/alternative/apxs or via the environment variable APACHE_TEST_APXS. For example: % APACHE_TEST_APXS=/path/to/alternative/apxs t/TEST Please provide a full path to (optional) 'apxs' executable or choose from the following options: [1] /usr/bin/apxs2 [1] [warning] running with new config opts: /usr/bin/perl /root/Apache2-Layout-0.6/t/TEST -bugreport -verbose=0 -httpd /etc/init.d/apache2 -apxs /usr/bin/apxs2 [ error] You are using mod_perl response handlers [ error] but do not have a mod_perl capable Apache. make: *** [run_tests] Error 1 please, can you help me with this else? THANK YOU SO MUCH