Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I have successfully installed PHP and Apache. I am configuring suPHP with these options: Code: ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-apache-user=daemon --with-apr=/usr/local/apr/ --with-setid-mode=paranoid But I still get this error during compilation: Code: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2012
    Posts
    6

    Smile Installing suPHP


    Hi,
    I have successfully installed PHP and Apache.
    I am configuring suPHP with these options:

    Code:
    ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-apache-user=daemon --with-apr=/usr/local/apr/ --with-setid-mode=paranoid
    But I still get this error during compilation:
    Code:
    /usr/local/apache2/include/http_core.h:549: error: expected specifier-qualifier-list before ‘apr_off_t’
    /usr/local/apache2/include/http_core.h:641: error: expected specifier-qualifier-list before ‘apr_array_header_t’
    /usr/local/apache2/include/http_core.h:673: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_core.h:678: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_core.h:679: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_core.h:683: error: expected declaration specifiers or ‘...’ before ‘apr_bucket_brigade’
    /usr/local/apache2/include/http_core.h:684: error: expected declaration specifiers or ‘...’ before ‘apr_read_type_e’
    /usr/local/apache2/include/http_core.h:685: error: expected declaration specifiers or ‘...’ before ‘apr_off_t’
    /usr/local/apache2/include/http_core.h:685: error: ‘ap_core_input_filter’ declared as function returning a function
    /usr/local/apache2/include/http_core.h:686: error: expected declaration specifiers or ‘...’ before ‘apr_bucket_brigade’
    /usr/local/apache2/include/http_core.h:686: error: ‘ap_core_output_filter’ declared as function returning a function
    /usr/local/apache2/include/http_core.h:697: error: expected specifier-qualifier-list before ‘apr_socket_t’
    /usr/local/apache2/include/http_core.h:716: error: expected ‘)’ before ‘apr_status_t’
    /usr/local/apache2/include/http_core.h:728: warning: data definition has no type or storage class
    /usr/local/apache2/include/http_core.h:733: error: expected specifier-qualifier-list before ‘apr_hash_t’
    /usr/local/apache2/include/http_core.h:739: error: expected specifier-qualifier-list before ‘ap_mgmt_type_e’
    /usr/local/apache2/include/http_core.h:762: error: expected ‘)’ before ‘int’
    /usr/local/apache2/include/http_core.h:775: error: expected declaration specifiers or ‘...’ before ‘ap_logio_add_bytes_in’
    /usr/local/apache2/include/http_core.h:776: error: expected declaration specifiers or ‘...’ before ‘(’ token
    /usr/local/apache2/include/http_core.h:775: warning: data definition has no type or storage class
    /usr/local/apache2/include/http_core.h:778: error: expected ‘)’ before ‘(’ token
    /usr/local/apache2/include/http_core.h:807: error: expected specifier-qualifier-list before ‘apr_pool_t’
    /usr/local/apache2/include/http_core.h:848: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_core.h:887: error: expected ‘)’ before ‘void’
    /usr/local/apache2/include/http_core.h:891: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_core.h:898: error: expected declaration specifiers or ‘...’ before ‘ap_ident_lookup’
    /usr/local/apache2/include/http_core.h:899: error: expected declaration specifiers or ‘...’ before ‘(’ token
    /usr/local/apache2/include/http_core.h:898: warning: data definition has no type or storage class
    /usr/local/apache2/include/http_core.h:898: error: conflicting types for ‘APR_DECLARE_OPTIONAL_FN’
    /usr/local/apache2/include/http_core.h:775: note: previous declaration of ‘APR_DECLARE_OPTIONAL_FN’ was here
    /usr/local/apache2/include/http_core.h:906: error: expected declaration specifiers or ‘...’ before ‘authz_some_auth_required’
    /usr/local/apache2/include/http_core.h:906: error: expected declaration specifiers or ‘...’ before ‘(’ token
    /usr/local/apache2/include/http_core.h:906: warning: data definition has no type or storage class
    /usr/local/apache2/include/http_core.h:906: error: conflicting types for ‘APR_DECLARE_OPTIONAL_FN’
    /usr/local/apache2/include/http_core.h:775: note: previous declaration of ‘APR_DECLARE_OPTIONAL_FN’ was here
    /usr/local/apache2/include/http_core.h:907: error: expected declaration specifiers or ‘...’ before ‘authn_ap_auth_type’
    /usr/local/apache2/include/http_core.h:907: error: expected declaration specifiers or ‘...’ before ‘(’ token
    /usr/local/apache2/include/http_core.h:907: warning: data definition has no type or storage class
    /usr/local/apache2/include/http_core.h:907: error: conflicting types for ‘APR_DECLARE_OPTIONAL_FN’
    /usr/local/apache2/include/http_core.h:775: note: previous declaration of ‘APR_DECLARE_OPTIONAL_FN’ was here
    /usr/local/apache2/include/http_core.h:908: error: expected declaration specifiers or ‘...’ before ‘authn_ap_auth_name’
    /usr/local/apache2/include/http_core.h:908: error: expected declaration specifiers or ‘...’ before ‘(’ token
    /usr/local/apache2/include/http_core.h:908: warning: data definition has no type or storage class
    /usr/local/apache2/include/http_core.h:908: error: conflicting types for ‘APR_DECLARE_OPTIONAL_FN’
    /usr/local/apache2/include/http_core.h:775: note: previous declaration of ‘APR_DECLARE_OPTIONAL_FN’ was here
    /usr/local/apache2/include/http_core.h:915: error: expected declaration specifiers or ‘...’ before ‘access_compat_ap_satisfies’
    /usr/local/apache2/include/http_core.h:915: error: expected declaration specifiers or ‘...’ before ‘(’ token
    /usr/local/apache2/include/http_core.h:915: warning: data definition has no type or storage class
    /usr/local/apache2/include/http_core.h:915: error: conflicting types for ‘APR_DECLARE_OPTIONAL_FN’
    /usr/local/apache2/include/http_core.h:775: note: previous declaration of ‘APR_DECLARE_OPTIONAL_FN’ was here
    In file included from mod_suphp.c:28:
    /usr/local/apache2/include/http_protocol.h:30:26: error: apr_portable.h: No such file or directory
    /usr/local/apache2/include/http_protocol.h:31:22: error: apr_mmap.h: No such file or directory
    In file included from mod_suphp.c:28:
    /usr/local/apache2/include/http_protocol.h:44: error: expected ‘)’ before ‘void’
    /usr/local/apache2/include/http_protocol.h:76: error: expected declaration specifiers or ‘...’ before ‘apr_bucket_brigade’
    /usr/local/apache2/include/http_protocol.h:110: error: expected declaration specifiers or ‘...’ before ‘apr_off_t’
    /usr/local/apache2/include/http_protocol.h:126: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ap_rationalize_mtime’
    /usr/local/apache2/include/http_protocol.h:146: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_protocol.h:200: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_protocol.h:227: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_protocol.h:234: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_protocol.h:252: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_protocol.h:346: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
    /usr/local/apache2/include/http_protocol.h:367: error: expected declaration specifiers or ‘...’ before ‘va_list’
    /usr/local/apache2/include/http_protocol.h:437: error: expected declaration specifiers or ‘...’ before ‘apr_size_t’
    /usr/local/apache2/include/http_protocol.h:475: error: expected ‘)’ before ‘int’
    /usr/local/apache2/include/http_protocol.h:547: error: expected declaration specifiers or ‘...’ before ‘apr_size_t’
    /usr/local/apache2/include/http_protocol.h:548: error: expected declaration specifiers or ‘...’ before ‘apr_size_t’
    /usr/local/apache2/include/http_protocol.h:550: error: expected declaration specifiers or ‘...’ before ‘apr_bucket_brigade’
    /usr/local/apache2/include/http_protocol.h:550: error: ‘ap_rgetline_core’ declared as function returning a function
    /usr/local/apache2/include/http_protocol.h:567: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_protocol.h:582: error: expected ‘)’ before ‘void’
    /usr/local/apache2/include/http_protocol.h:634: error: expected specifier-qualifier-list before ‘apr_bucket_refcount’
    /usr/local/apache2/include/http_protocol.h:642: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ap_bucket_type_error’
    /usr/local/apache2/include/http_protocol.h:659: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    /usr/local/apache2/include/http_protocol.h:670: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    /usr/local/apache2/include/http_protocol.h:674: error: expected declaration specifiers or ‘...’ before ‘apr_bucket_brigade’
    /usr/local/apache2/include/http_protocol.h:674: error: ‘ap_byterange_filter’ declared as function returning a function
    /usr/local/apache2/include/http_protocol.h:675: error: expected declaration specifiers or ‘...’ before ‘apr_bucket_brigade’
    /usr/local/apache2/include/http_protocol.h:675: error: ‘ap_http_header_filter’ declared as function returning a function
    /usr/local/apache2/include/http_protocol.h:677: error: expected declaration specifiers or ‘...’ before ‘apr_bucket_brigade’
    /usr/local/apache2/include/http_protocol.h:677: error: ‘ap_content_length_filter’ declared as function returning a function
    /usr/local/apache2/include/http_protocol.h:678: error: expected declaration specifiers or ‘...’ before ‘apr_bucket_brigade’
    /usr/local/apache2/include/http_protocol.h:678: error: ‘ap_old_write_filter’ declared as function returning a function
    In file included from mod_suphp.c:29:
    /usr/local/apache2/include/http_main.h:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    /usr/local/apache2/include/http_main.h:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    /usr/local/apache2/include/http_main.h:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    /usr/local/apache2/include/http_main.h:71: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    /usr/local/apache2/include/http_main.h:81: error: expected declaration specifiers or ‘...’ before ‘ap_signal_server’
    /usr/local/apache2/include/http_main.h:81: error: expected declaration specifiers or ‘...’ before ‘(’ token
    /usr/local/apache2/include/http_main.h:81: warning: data definition has no type or storage class
    /usr/local/apache2/include/http_main.h:81: error: conflicting types for ‘APR_DECLARE_OPTIONAL_FN’
    /usr/local/apache2/include/http_core.h:775: note: previous declaration of ‘APR_DECLARE_OPTIONAL_FN’ was here
    In file included from mod_suphp.c:30:
    /usr/local/apache2/include/http_log.h:289: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_log.h:296: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_log.h:308: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_log.h:319: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_log.h:415: error: expected declaration specifiers or ‘...’ before ‘apr_pool_t’
    /usr/local/apache2/include/http_log.h:417: error: format string argument not a string type
    /usr/local/apache2/include/http_log.h:567: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_log.h:574: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_log.h:581: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_log.h:589: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_log.h:602: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_log.h:611: error: expected ‘)’ before ‘*’ token
    /usr/local/apache2/include/http_log.h:626: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    /usr/local/apache2/include/http_log.h:633: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    /usr/local/apache2/include/http_log.h:643: error: expected ‘)’ before ‘int’
    In file included from mod_suphp.c:31:
    /usr/local/apache2/include/util_script.h:91: error: expected declaration specifiers or ‘...’ before ‘apr_file_t’
    /usr/local/apache2/include/util_script.h:104: error: expected declaration specifiers or ‘...’ before ‘apr_file_t’
    /usr/local/apache2/include/util_script.h:120: error: expected declaration specifiers or ‘...’ before ‘apr_bucket_brigade’
    /usr/local/apache2/include/util_script.h:135: error: expected declaration specifiers or ‘...’ before ‘apr_bucket_brigade’
    /usr/local/apache2/include/util_script.h:226: error: expected declaration specifiers or ‘...’ before ‘apr_table_t’
    mod_suphp.c:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘suphp_module’
    mod_suphp.c:59: error: expected specifier-qualifier-list before ‘table’
    mod_suphp.c:66: error: expected ‘)’ before ‘*’ token
    mod_suphp.c:84: error: expected ‘)’ before ‘*’ token
    mod_suphp.c:125: error: expected ‘)’ before ‘*’ token
    mod_suphp.c:145: error: expected ‘)’ before ‘*’ token
    mod_suphp.c: In function ‘suphp_handle_cmd_engine’:
    mod_suphp.c:191: error: ‘cmd_parms’ has no member named ‘server’
    mod_suphp.c:191: error: ‘suphp_module’ undeclared (first use in this function)
    mod_suphp.c:191: error: (Each undeclared identifier is reported only once
    mod_suphp.c:191: error: for each function it appears in.)
    mod_suphp.c: In function ‘suphp_handle_cmd_config’:
    mod_suphp.c:207: error: ‘cmd_parms’ has no member named ‘pool’
    mod_suphp.c: In function ‘suphp_handle_cmd_user_group’:
    mod_suphp.c:222: error: ‘cmd_parms’ has no member named ‘server’
    mod_suphp.c:222: error: ‘suphp_module’ undeclared (first use in this function)
    mod_suphp.c:224: error: ‘cmd_parms’ has no member named ‘pool’
    mod_suphp.c:225: error: ‘cmd_parms’ has no member named ‘pool’
    mod_suphp.c: In function ‘suphp_handle_cmd_add_handler’:
    mod_suphp.c:238: error: ‘cmd_parms’ has no member named ‘server’
    mod_suphp.c:238: error: ‘suphp_module’ undeclared (first use in this function)
    mod_suphp.c:241: error: ‘suphp_conf’ has no member named ‘handlers’
    mod_suphp.c: In function ‘suphp_handle_cmd_remove_handler’:
    mod_suphp.c:253: error: ‘cmd_parms’ has no member named ‘server’
    mod_suphp.c:253: error: ‘suphp_module’ undeclared (first use in this function)
    mod_suphp.c:256: error: ‘suphp_conf’ has no member named ‘handlers’
    mod_suphp.c: In function ‘suphp_handle_cmd_phppath’:
    mod_suphp.c:266: error: ‘cmd_parms’ has no member named ‘server’
    mod_suphp.c:266: error: ‘suphp_module’ undeclared (first use in this function)
    mod_suphp.c:268: error: ‘suphp_conf’ has no member named ‘php_path’
    mod_suphp.c:268: error: ‘cmd_parms’ has no member named ‘pool’
    mod_suphp.c: At top level:
    mod_suphp.c:277: warning: initialization from incompatible pointer type
    mod_suphp.c:279: warning: initialization from incompatible pointer type
    mod_suphp.c:282: warning: initialization from incompatible pointer type
    mod_suphp.c:285: warning: initialization from incompatible pointer type
    mod_suphp.c:287: warning: initialization from incompatible pointer type
    mod_suphp.c:289: warning: initialization from incompatible pointer type
    mod_suphp.c:296: error: expected declaration specifiers or ‘...’ before ‘child_info’
    mod_suphp.c: In function ‘suphp_source_child’:
    mod_suphp.c:299: error: ‘pool’ undeclared (first use in this function)
    mod_suphp.c:299: error: ‘p’ undeclared (first use in this function)
    mod_suphp.c:299: error: ‘request_rec’ has no member named ‘main’
    mod_suphp.c:299: error: ‘request_rec’ has no member named ‘main’
    mod_suphp.c:299: error: ‘request_rec’ has no member named ‘pool’
    mod_suphp.c:302: error: ‘request_rec’ has no member named ‘server’
    mod_suphp.c:302: error: ‘suphp_module’ undeclared (first use in this function)
    mod_suphp.c:305: error: ‘request_rec’ has no member named ‘server’
    mod_suphp.c:310: error: ‘suphp_conf’ has no member named ‘php_path’
    mod_suphp.c:312: error: ‘request_rec’ has no member named ‘filename’
    mod_suphp.c:317: error: ‘request_rec’ has no member named ‘subprocess_env’
    mod_suphp.c:325: error: ‘suphp_conf’ has no member named ‘php_path’
    mod_suphp.c:329: error: ‘suphp_conf’ has no member named ‘php_path’
    mod_suphp.c:329: warning: passing argument 6 of ‘ap_log_error_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:372: note: expected ‘const struct server_rec *’ but argument is of type ‘char *’
    mod_suphp.c:330: warning: incompatible implicit declaration of built-in function ‘exit’
    mod_suphp.c: At top level:
    mod_suphp.c:336: error: expected declaration specifiers or ‘...’ before ‘child_info’
    mod_suphp.c: In function ‘suphp_child’:
    mod_suphp.c:339: error: ‘pool’ undeclared (first use in this function)
    mod_suphp.c:339: error: ‘p’ undeclared (first use in this function)
    mod_suphp.c:339: error: ‘request_rec’ has no member named ‘main’
    mod_suphp.c:339: error: ‘request_rec’ has no member named ‘main’
    mod_suphp.c:339: error: ‘request_rec’ has no member named ‘pool’
    mod_suphp.c:343: error: ‘request_rec’ has no member named ‘per_dir_config’
    mod_suphp.c:347: error: ‘request_rec’ has no member named ‘server’
    mod_suphp.c:357: error: ‘request_rec’ has no member named ‘subprocess_env’
    mod_suphp.c:412: warning: passing argument 6 of ‘ap_log_error_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:372: note: expected ‘const struct server_rec *’ but argument is of type ‘char *’
    mod_suphp.c:413: warning: incompatible implicit declaration of built-in function ‘exit’
    mod_suphp.c: In function ‘suphp_source_handler’:
    mod_suphp.c:424: error: ‘pool’ undeclared (first use in this function)
    mod_suphp.c:424: error: ‘p’ undeclared (first use in this function)
    mod_suphp.c:426: error: ‘BUFF’ undeclared (first use in this function)
    mod_suphp.c:426: error: ‘script_in’ undeclared (first use in this function)
    mod_suphp.c:426: error: ‘script_out’ undeclared (first use in this function)
    mod_suphp.c:426: error: ‘script_err’ undeclared (first use in this function)
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:429: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:433: error: ‘request_rec’ has no member named ‘server’
    mod_suphp.c:433: error: ‘suphp_module’ undeclared (first use in this function)
    mod_suphp.c:434: error: ‘suphp_conf’ has no member named ‘php_path’
    mod_suphp.c:438: error: ‘request_rec’ has no member named ‘main’
    mod_suphp.c:438: error: ‘request_rec’ has no member named ‘main’
    mod_suphp.c:438: error: ‘request_rec’ has no member named ‘pool’
    mod_suphp.c:440: error: ‘request_rec’ has no member named ‘filename’
    mod_suphp.c:440: error: ‘O_NOCTTY’ undeclared (first use in this function)
    mod_suphp.c:440: error: ‘O_RDONLY’ undeclared (first use in this function)
    mod_suphp.c:443: error: ‘errno’ undeclared (first use in this function)
    mod_suphp.c:443: error: ‘EACCES’ undeclared (first use in this function)
    mod_suphp.c:445: error: ‘request_rec’ has no member named ‘filename’
    mod_suphp.c:445: warning: passing argument 5 of ‘ap_log_rerror_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:456: note: expected ‘int (*)()’ but argument is of type ‘struct request_rec *’
    mod_suphp.c:445: warning: passing argument 6 of ‘ap_log_rerror_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:456: note: expected ‘const struct request_rec *’ but argument is of type ‘char *’
    mod_suphp.c:447: error: ‘ENOENT’ undeclared (first use in this function)
    mod_suphp.c:447: error: ‘ENOTDIR’ undeclared (first use in this function)
    mod_suphp.c:449: error: ‘request_rec’ has no member named ‘filename’
    mod_suphp.c:449: warning: passing argument 5 of ‘ap_log_rerror_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:456: note: expected ‘int (*)()’ but argument is of type ‘struct request_rec *’
    mod_suphp.c:449: warning: passing argument 6 of ‘ap_log_rerror_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:456: note: expected ‘const struct request_rec *’ but argument is of type ‘char *’
    mod_suphp.c:453: error: ‘request_rec’ has no member named ‘filename’
    mod_suphp.c:453: warning: passing argument 5 of ‘ap_log_rerror_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:456: note: expected ‘int (*)()’ but argument is of type ‘struct request_rec *’
    mod_suphp.c:453: warning: passing argument 6 of ‘ap_log_rerror_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:456: note: expected ‘const struct request_rec *’ but argument is of type ‘char *’
    mod_suphp.c:459: error: ‘kill_after_timeout’ undeclared (first use in this function)
    mod_suphp.c:462: error: ‘request_rec’ has no member named ‘filename’
    mod_suphp.c:462: warning: passing argument 5 of ‘ap_log_rerror_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:456: note: expected ‘int (*)()’ but argument is of type ‘struct request_rec *’
    mod_suphp.c:462: warning: passing argument 6 of ‘ap_log_rerror_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:456: note: expected ‘const struct request_rec *’ but argument is of type ‘char *’
    mod_suphp.c:474: error: too many arguments to function ‘ap_get_client_block’
    mod_suphp.c:490: error: ‘request_rec’ has no member named ‘content_type’
    mod_suphp.c:492: error: ‘request_rec’ has no member named ‘header_only’
    mod_suphp.c: In function ‘suphp_handler’:
    mod_suphp.c:514: error: storage size of ‘finfo’ isn’t known
    mod_suphp.c:521: error: ‘pool’ undeclared (first use in this function)
    mod_suphp.c:521: error: ‘p’ undeclared (first use in this function)
    mod_suphp.c:523: error: ‘BUFF’ undeclared (first use in this function)
    mod_suphp.c:523: error: ‘script_in’ undeclared (first use in this function)
    mod_suphp.c:523: error: ‘script_out’ undeclared (first use in this function)
    mod_suphp.c:523: error: ‘script_err’ undeclared (first use in this function)
    mod_suphp.c:527: error: ‘request_rec’ has no member named ‘server’
    mod_suphp.c:527: error: ‘suphp_module’ undeclared (first use in this function)
    mod_suphp.c:528: error: ‘request_rec’ has no member named ‘per_dir_config’
    mod_suphp.c:530: error: ‘request_rec’ has no member named ‘main’
    mod_suphp.c:530: error: ‘request_rec’ has no member named ‘main’
    mod_suphp.c:530: error: ‘request_rec’ has no member named ‘pool’
    mod_suphp.c:534: error: ‘request_rec’ has no member named ‘handler’
    mod_suphp.c:535: error: ‘request_rec’ has no member named ‘handler’
    mod_suphp.c:537: error: ‘request_rec’ has no member named ‘content_type’
    mod_suphp.c:539: error: ‘suphp_conf’ has no member named ‘handlers’
    mod_suphp.c:540: error: ‘suphp_conf’ has no member named ‘handlers’
    mod_suphp.c:541: error: ‘suphp_conf’ has no member named ‘handlers’
    mod_suphp.c:544: error: ‘suphp_conf’ has no member named ‘handlers’
    mod_suphp.c:558: error: ‘request_rec’ has no member named ‘filename’
    mod_suphp.c:561: error: ‘errno’ undeclared (first use in this function)
    mod_suphp.c:561: error: ‘EACCES’ undeclared (first use in this function)
    mod_suphp.c:563: error: ‘request_rec’ has no member named ‘filename’
    mod_suphp.c:563: warning: passing argument 5 of ‘ap_log_rerror_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:456: note: expected ‘int (*)()’ but argument is of type ‘struct request_rec *’
    mod_suphp.c:563: warning: passing argument 6 of ‘ap_log_rerror_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:456: note: expected ‘const struct request_rec *’ but argument is of type ‘char *’
    mod_suphp.c:565: error: ‘ENOENT’ undeclared (first use in this function)
    mod_suphp.c:565: error: ‘ENOTDIR’ undeclared (first use in this function)
    mod_suphp.c:567: error: ‘request_rec’ has no member named ‘filename’
    mod_suphp.c:567: warning: passing argument 5 of ‘ap_log_rerror_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:456: note: expected ‘int (*)()’ but argument is of type ‘struct request_rec *’
    mod_suphp.c:567: warning: passing argument 6 of ‘ap_log_rerror_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:456: note: expected ‘const struct request_rec *’ but argument is of type ‘char *’
    mod_suphp.c:571: error: ‘request_rec’ has no member named ‘filename’
    mod_suphp.c:571: warning: passing argument 5 of ‘ap_log_rerror_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:456: note: expected ‘int (*)()’ but argument is of type ‘struct request_rec *’
    mod_suphp.c:571: warning: passing argument 6 of ‘ap_log_rerror_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:456: note: expected ‘const struct request_rec *’ but argument is of type ‘char *’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:586: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:587: error: ‘request_rec’ has no member named ‘pool’
    mod_suphp.c:587: error: ‘request_rec’ has no member named ‘uri’
    mod_suphp.c:594: error: ‘gid_t’ undeclared (first use in this function)
    mod_suphp.c:594: error: expected ‘;’ before ‘gid’
    mod_suphp.c:596: warning: assignment makes pointer from integer without a cast
    mod_suphp.c:597: error: ‘gid’ undeclared (first use in this function)
    mod_suphp.c:597: error: dereferencing pointer to incomplete type
    mod_suphp.c:600: error: dereferencing pointer to incomplete type
    mod_suphp.c:602: error: ‘request_rec’ has no member named ‘pool’
    mod_suphp.c:620: warning: passing argument 5 of ‘ap_log_rerror_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:456: note: expected ‘int (*)()’ but argument is of type ‘struct request_rec *’
    mod_suphp.c:620: warning: passing argument 6 of ‘ap_log_rerror_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:456: note: expected ‘const struct request_rec *’ but argument is of type ‘char *’
    mod_suphp.c:620: error: too few arguments to function ‘ap_log_rerror_’
    mod_suphp.c:632: error: ‘request_rec’ has no member named ‘subprocess_env’
    mod_suphp.c:633: error: ‘request_rec’ has no member named ‘subprocess_env’
    mod_suphp.c:634: error: ‘request_rec’ has no member named ‘subprocess_env’
    mod_suphp.c:637: error: ‘request_rec’ has no member named ‘subprocess_env’
    mod_suphp.c:638: error: ‘request_rec’ has no member named ‘subprocess_env’
    mod_suphp.c:642: error: ‘request_rec’ has no member named ‘subprocess_env’
    mod_suphp.c:645: error: ‘request_rec’ has no member named ‘subprocess_env’
    mod_suphp.c:647: error: ‘request_rec’ has no member named ‘headers_in’
    mod_suphp.c:649: error: ‘request_rec’ has no member named ‘headers_in’
    mod_suphp.c:666: error: ‘request_rec’ has no member named ‘subprocess_env’
    mod_suphp.c:667: error: ‘request_rec’ has no member named ‘subprocess_env’
    mod_suphp.c:672: error: ‘request_rec’ has no member named ‘subprocess_env’
    mod_suphp.c:674: error: ‘request_rec’ has no member named ‘subprocess_env’
    mod_suphp.c:676: error: ‘request_rec’ has no member named ‘subprocess_env’
    mod_suphp.c:680: error: ‘request_rec’ has no member named ‘subprocess_env’
    mod_suphp.c:682: error: ‘request_rec’ has no member named ‘subprocess_env’
    mod_suphp.c:684: error: ‘request_rec’ has no member named ‘subprocess_env’
    mod_suphp.c:690: error: ‘kill_after_timeout’ undeclared (first use in this function)
    mod_suphp.c:693: error: ‘request_rec’ has no member named ‘filename’
    mod_suphp.c:693: warning: passing argument 5 of ‘ap_log_rerror_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:456: note: expected ‘int (*)()’ but argument is of type ‘struct request_rec *’
    mod_suphp.c:693: warning: passing argument 6 of ‘ap_log_rerror_’ from incompatible pointer type
    /usr/local/apache2/include/http_log.h:456: note: expected ‘const struct request_rec *’ but argument is of type ‘char *’
    mod_suphp.c:710: error: too many arguments to function ‘ap_get_client_block’
    mod_suphp.c:715: error: too many arguments to function ‘ap_get_client_block’
    mod_suphp.c:742: error: ‘request_rec’ has no member named ‘headers_out’
    mod_suphp.c:743: error: ‘request_rec’ has no member named ‘status’
    mod_suphp.c:755: error: ‘request_rec’ has no member named ‘method’
    mod_suphp.c:756: error: ‘request_rec’ has no member named ‘method_number’
    mod_suphp.c:760: error: ‘request_rec’ has no member named ‘headers_in’
    mod_suphp.c:768: error: ‘REDIRECT’ undeclared (first use in this function)
    mod_suphp.c:775: error: ‘request_rec’ has no member named ‘header_only’
    mod_suphp.c: At top level:
    mod_suphp.c:789: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘suphp_handlers’
    mod_suphp.c:798: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘suphp_module’
    make[3]: *** [mod_suphp.lo] Error 1
    make[3]: Leaving directory `/home/miso/Downloads/suphp-0.7.1/src/apache'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/miso/Downloads/suphp-0.7.1/src'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/home/miso/Downloads/suphp-0.7.1/src'
    make: *** [all-recursive] Error 1
    Thank you for help!

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,318
    my ubuntu box isn't up right now, but, isn't suPHP in the ubuntu apt sources? that would be much easier for you than compiling from source, unless of course you need some particular feature that was not compiled into the ubuntu version.

    see this guide for installing suphp via apt-get.

  3. #3
    Just Joined!
    Join Date
    Jul 2012
    Posts
    6
    I know where is the problem! suPHP doesn't support Apache 2.4. In official Ubuntu repositories is not Apache 2.4 package. This version of Apache has changed the way how some modules are installed.
    However development of suPHP haven't moved much since 2009! I really don't know how will Linux community solve this problem.
    Your opinion?

  4. #4
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,318
    Quote Originally Posted by ubuntu2 View Post
    I know where is the problem! suPHP doesn't support Apache 2.4. In official Ubuntu repositories is not Apache 2.4 package. This version of Apache has changed the way how some modules are installed.
    However development of suPHP haven't moved much since 2009! I really don't know how will Linux community solve this problem.
    Your opinion?
    ah, yes, that would be a problem. i would try this guide for installing Apache 2.4 on several versions of Ubuntu.

    btw, as to your original compile errors, i noticed these errors:
    Code:
    /usr/local/apache2/include/http_protocol.h:30:26: error: apr_portable.h: No such file or directory
    /usr/local/apache2/include/http_protocol.h:31:22: error: apr_mmap.h: No such file or directory
    you may need to install the packages that provide those files via apt-get. I'm not sure the name of the packages you need, but you should be able to search the apt sources for them.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •