php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34387 Apache cannot compile with PHP5.1 RC1 static module
Submitted: 2005-09-06 11:37 UTC Modified: 2005-09-06 12:23 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: gjd at devolia dot fr Assigned:
Status: Not a bug Package: Apache related
PHP Version: 5.1.0RC1 OS: Linux Fedora Core 1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gjd at devolia dot fr
New email:
PHP Version: OS:

 

 [2005-09-06 11:37 UTC] gjd at devolia dot fr
Description:
------------
Apache "make" fails with several errors while compiling PHP 5.1 RC1 static module

Reproduce code:
---------------
PHP Configure :

./configure --enable-soap --with-xml --with-dbase --with-filepro --enable-ftp --with-db --enable-bcmath --enable-calendar --with-jpeg-dir --with-png-dir --with-gd --enable-gd-native-tt --with-freetype-dir --with-gettext --with-mysql --with-zlib-dir --enable-trans-sid --with-imap=/usr/local/imap-2004c1 --with-kerberos --with-openssl --enable-sysvsem --enable-sysvshm --with-zip --enable-mbstring=all --with-apache=../apache_1.3.33 --with-ldap --with-xmlrpc

Apache Configure :
./configure \
    --prefix=/usr/local/apache \
    --activate-module=src/modules/php5/libmodphp5.a \
    --enable-suexec \
    --suexec-caller=nobody \
    --suexec-userdir=www \
    --suexec-docroot=/home \
    --suexec-logfile=/usr/local/apache/logs/cgi.log \
    --suexec-uidmin=99 \
    --suexec-gidmin=99 \
    --suexec-safepath=/usr/local/bin:/usr/bin:/bin \
    --enable-module=so \
    --enable-module=rewrite \
    --add-module=src/modules/extra/mod_gzip.c \
    --enable-module=ssl

Expected result:
----------------
"make" success

Actual result:
--------------
mod_php5.c: In function `php_merge_dir':
mod_php5.c:755: error: `HashTable' undeclared (first use in this function)
mod_php5.c:755: error: syntax error before ')' token
mod_php5.c:756: error: `addv' undeclared (first use in this function)
mod_php5.c: At top level:
mod_php5.c:762: error: syntax error before '*' token
mod_php5.c: In function `php_apache_value_handler_ex':
mod_php5.c:764: error: syntax error before "per_dir_entry"
mod_php5.c:774: error: `per_dir_entry' undeclared (first use in this function)
mod_php5.c:774: error: `mode' undeclared (first use in this function)
mod_php5.c:776: error: `arg2' undeclared (first use in this function)
mod_php5.c:780: error: `arg1' undeclared (first use in this function)
mod_php5.c:791: error: `conf' undeclared (first use in this function)
mod_php5.c:791: error: `NULL' undeclared (first use in this function)
mod_php5.c: At top level:
mod_php5.c:798: error: syntax error before '*' token
mod_php5.c: In function `php_apache_value_handler':
mod_php5.c:800: error: `cmd' undeclared (first use in this function)
mod_php5.c:800: error: `conf' undeclared (first use in this function)
mod_php5.c:800: error: `arg1' undeclared (first use in this function)
mod_php5.c:800: error: `arg2' undeclared (first use in this function)
mod_php5.c:800: error: `PHP_INI_PERDIR' undeclared (first use in this function)
mod_php5.c: At top level:
mod_php5.c:806: error: syntax error before '*' token
mod_php5.c: In function `php_apache_admin_value_handler':
mod_php5.c:808: error: `cmd' undeclared (first use in this function)
mod_php5.c:808: error: `conf' undeclared (first use in this function)
mod_php5.c:808: error: `arg1' undeclared (first use in this function)
mod_php5.c:808: error: `arg2' undeclared (first use in this function)
mod_php5.c:808: error: `PHP_INI_SYSTEM' undeclared (first use in this function)
mod_php5.c: At top level:
mod_php5.c:814: error: syntax error before '*' token
mod_php5.c: In function `php_apache_flag_handler_ex':
mod_php5.c:818: error: `arg2' undeclared (first use in this function)
mod_php5.c:825: error: `cmd' undeclared (first use in this function)
mod_php5.c:825: error: `conf' undeclared (first use in this function)
mod_php5.c:825: error: `arg1' undeclared (first use in this function)
mod_php5.c:825: error: `mode' undeclared (first use in this function)
mod_php5.c: At top level:
mod_php5.c:831: error: syntax error before '*' token
mod_php5.c: In function `php_apache_flag_handler':
mod_php5.c:833: error: `cmd' undeclared (first use in this function)
mod_php5.c:833: error: `conf' undeclared (first use in this function)
mod_php5.c:833: error: `arg1' undeclared (first use in this function)
mod_php5.c:833: error: `arg2' undeclared (first use in this function)
mod_php5.c:833: error: `PHP_INI_PERDIR' undeclared (first use in this function)
mod_php5.c: At top level:
mod_php5.c:839: error: syntax error before '*' token
mod_php5.c: In function `php_apache_admin_flag_handler':
mod_php5.c:841: error: `cmd' undeclared (first use in this function)
mod_php5.c:841: error: `conf' undeclared (first use in this function)
mod_php5.c:841: error: `arg1' undeclared (first use in this function)
mod_php5.c:841: error: `arg2' undeclared (first use in this function)
mod_php5.c:841: error: `PHP_INI_SYSTEM' undeclared (first use in this function)
mod_php5.c: At top level:
mod_php5.c:847: error: syntax error before '*' token
mod_php5.c: In function `php_xbithack_handler':
mod_php5.c:849: error: `HashTable' undeclared (first use in this function)
mod_php5.c:852: error: `r' undeclared (first use in this function)
mod_php5.c:852: error: `S_IXUSR' undeclared (first use in this function)
mod_php5.c:853: error: `METHODS' undeclared (first use in this function)
mod_php5.c:854: error: `DECLINED' undeclared (first use in this function)
mod_php5.c:856: error: syntax error before ')' token
mod_php5.c:858: error: syntax error before ')' token
mod_php5.c:860: error: `xbithack' undeclared (first use in this function)
mod_php5.c:862: error: `zend_try' undeclared (first use in this function)
mod_php5.c:862: error: syntax error before '{' token
mod_php5.c: At top level:
mod_php5.c:867: error: syntax error before "return"
mod_php5.c: In function `apache_php_module_shutdown_wrapper':
mod_php5.c:876: error: request for member `shutdown' in something not a structure or union
mod_php5.c: At top level:
mod_php5.c:908: error: syntax error before '*' token
mod_php5.c: In function `php_init_handler':
mod_php5.c:910: error: `p' undeclared (first use in this function)
mod_php5.c:910: error: `NULL' undeclared (first use in this function)
mod_php5.c:910: error: `php_module_shutdown_for_exec' undeclared (first use in this function)
mod_php5.c: At top level:
mod_php5.c:932: error: syntax error before "php_handlers"
mod_php5.c:934: warning: braces around scalar initializer
mod_php5.c:934: warning: (near initialization for `php_handlers[0]')
mod_php5.c:934: warning: initialization makes integer from pointer without a cast
mod_php5.c:934: warning: excess elements in scalar initializer
mod_php5.c:934: warning: (near initialization for `php_handlers[0]')
mod_php5.c:935: warning: braces around scalar initializer
mod_php5.c:935: warning: (near initialization for `php_handlers[1]')
mod_php5.c:935: warning: initialization makes integer from pointer without a cast
mod_php5.c:935: warning: excess elements in scalar initializer
mod_php5.c:935: warning: (near initialization for `php_handlers[1]')
mod_php5.c:936: warning: braces around scalar initializer
mod_php5.c:936: warning: (near initialization for `php_handlers[2]')
mod_php5.c:936: warning: initialization makes integer from pointer without a cast
mod_php5.c:936: warning: excess elements in scalar initializer
mod_php5.c:936: warning: (near initialization for `php_handlers[2]')
mod_php5.c:937: warning: braces around scalar initializer
mod_php5.c:937: warning: (near initialization for `php_handlers[3]')
mod_php5.c:937: error: `NULL' undeclared here (not in a function)
mod_php5.c:937: error: initializer element is not constant
mod_php5.c:937: error: (near initialization for `php_handlers[3]')
mod_php5.c:937: error: initializer element is not constant
mod_php5.c:937: error: (near initialization for `php_handlers[3]')
mod_php5.c:938: warning: data definition has no type or storage class
mod_php5.c:943: error: syntax error before "php_commands"
mod_php5.c:945: warning: braces around scalar initializer
mod_php5.c:945: warning: (near initialization for `php_commands[0]')
mod_php5.c:945: warning: initialization makes integer from pointer without a cast
mod_php5.c:945: warning: excess elements in scalar initializer
mod_php5.c:945: warning: (near initialization for `php_commands[0]')
mod_php5.c:945: error: `NULL' undeclared here (not in a function)
mod_php5.c:945: warning: excess elements in scalar initializer
mod_php5.c:945: warning: (near initialization for `php_commands[0]')
mod_php5.c:945: error: `OR_OPTIONS' undeclared here (not in a function)
mod_php5.c:945: warning: excess elements in scalar initializer
mod_php5.c:945: warning: (near initialization for `php_commands[0]')
mod_php5.c:945: error: `TAKE2' undeclared here (not in a function)
mod_php5.c:945: warning: excess elements in scalar initializer
mod_php5.c:945: warning: (near initialization for `php_commands[0]')
mod_php5.c:945: warning: excess elements in scalar initializer
mod_php5.c:945: warning: (near initialization for `php_commands[0]')
mod_php5.c:946: warning: braces around scalar initializer
mod_php5.c:946: warning: (near initialization for `php_commands[1]')
mod_php5.c:946: warning: initialization makes integer from pointer without a cast
mod_php5.c:946: warning: excess elements in scalar initializer
mod_php5.c:946: warning: (near initialization for `php_commands[1]')
mod_php5.c:946: error: `NULL' undeclared here (not in a function)
mod_php5.c:946: warning: excess elements in scalar initializer
mod_php5.c:946: warning: (near initialization for `php_commands[1]')
mod_php5.c:946: error: `OR_OPTIONS' undeclared here (not in a function)
mod_php5.c:946: warning: excess elements in scalar initializer
mod_php5.c:946: warning: (near initialization for `php_commands[1]')
mod_php5.c:946: error: `TAKE2' undeclared here (not in a function)
mod_php5.c:946: warning: excess elements in scalar initializer
mod_php5.c:946: warning: (near initialization for `php_commands[1]')
mod_php5.c:946: warning: excess elements in scalar initializer
mod_php5.c:946: warning: (near initialization for `php_commands[1]')
mod_php5.c:947: warning: braces around scalar initializer
mod_php5.c:947: warning: (near initialization for `php_commands[2]')
mod_php5.c:947: warning: initialization makes integer from pointer without a cast
mod_php5.c:947: warning: excess elements in scalar initializer
mod_php5.c:947: warning: (near initialization for `php_commands[2]')
mod_php5.c:947: error: `NULL' undeclared here (not in a function)
mod_php5.c:947: warning: excess elements in scalar initializer
mod_php5.c:947: warning: (near initialization for `php_commands[2]')
mod_php5.c:947: error: `ACCESS_CONF' undeclared here (not in a function)
mod_php5.c:947: error: `RSRC_CONF' undeclared here (not in a function)
mod_php5.c:947: warning: excess elements in scalar initializer
mod_php5.c:947: warning: (near initialization for `php_commands[2]')
mod_php5.c:947: error: `TAKE2' undeclared here (not in a function)
mod_php5.c:947: warning: excess elements in scalar initializer
mod_php5.c:947: warning: (near initialization for `php_commands[2]')
mod_php5.c:947: warning: excess elements in scalar initializer
mod_php5.c:947: warning: (near initialization for `php_commands[2]')
mod_php5.c:948: warning: braces around scalar initializer
mod_php5.c:948: warning: (near initialization for `php_commands[3]')
mod_php5.c:948: warning: initialization makes integer from pointer without a cast
mod_php5.c:948: warning: excess elements in scalar initializer
mod_php5.c:948: warning: (near initialization for `php_commands[3]')
mod_php5.c:948: error: `NULL' undeclared here (not in a function)
mod_php5.c:948: warning: excess elements in scalar initializer
mod_php5.c:948: warning: (near initialization for `php_commands[3]')
mod_php5.c:948: error: `ACCESS_CONF' undeclared here (not in a function)
mod_php5.c:948: error: `RSRC_CONF' undeclared here (not in a function)
mod_php5.c:948: warning: excess elements in scalar initializer
mod_php5.c:948: warning: (near initialization for `php_commands[3]')
mod_php5.c:948: error: `TAKE2' undeclared here (not in a function)
mod_php5.c:948: warning: excess elements in scalar initializer
mod_php5.c:948: warning: (near initialization for `php_commands[3]')
mod_php5.c:948: warning: excess elements in scalar initializer
mod_php5.c:948: warning: (near initialization for `php_commands[3]')
mod_php5.c:949: warning: braces around scalar initializer
mod_php5.c:949: warning: (near initialization for `php_commands[4]')
mod_php5.c:949: error: `NULL' undeclared here (not in a function)
mod_php5.c:949: error: initializer element is not constant
mod_php5.c:949: error: (near initialization for `php_commands[4]')
mod_php5.c:949: error: initializer element is not constant
mod_php5.c:949: error: (near initialization for `php_commands[4]')
mod_php5.c:950: warning: data definition has no type or storage class
mod_php5.c:955: error: syntax error before "MODULE_VAR_EXPORT"
mod_php5.c:957: error: `STANDARD_MODULE_STUFF' undeclared here (not in a function)
mod_php5.c:957: error: initializer element is not constant
mod_php5.c:957: error: (near initialization for `php5_module')
mod_php5.c:958: warning: excess elements in scalar initializer
mod_php5.c:958: warning: (near initialization for `php5_module')
mod_php5.c:959: warning: excess elements in scalar initializer
mod_php5.c:959: warning: (near initialization for `php5_module')
mod_php5.c:960: warning: excess elements in scalar initializer
mod_php5.c:960: warning: (near initialization for `php5_module')
mod_php5.c:961: error: `NULL' undeclared here (not in a function)
mod_php5.c:961: warning: excess elements in scalar initializer
mod_php5.c:961: warning: (near initialization for `php5_module')
mod_php5.c:962: error: `NULL' undeclared here (not in a function)
mod_php5.c:962: warning: excess elements in scalar initializer
mod_php5.c:962: warning: (near initialization for `php5_module')
mod_php5.c:963: warning: excess elements in scalar initializer
mod_php5.c:963: warning: (near initialization for `php5_module')
mod_php5.c:964: warning: excess elements in scalar initializer
mod_php5.c:964: warning: (near initialization for `php5_module')
mod_php5.c:965: error: `NULL' undeclared here (not in a function)
mod_php5.c:965: warning: excess elements in scalar initializer
mod_php5.c:965: warning: (near initialization for `php5_module')
mod_php5.c:966: error: `NULL' undeclared here (not in a function)
mod_php5.c:966: warning: excess elements in scalar initializer
mod_php5.c:966: warning: (near initialization for `php5_module')
mod_php5.c:967: error: `NULL' undeclared here (not in a function)
mod_php5.c:967: warning: excess elements in scalar initializer
mod_php5.c:967: warning: (near initialization for `php5_module')
mod_php5.c:968: error: `NULL' undeclared here (not in a function)
mod_php5.c:968: warning: excess elements in scalar initializer
mod_php5.c:968: warning: (near initialization for `php5_module')
mod_php5.c:969: error: `NULL' undeclared here (not in a function)
mod_php5.c:969: warning: excess elements in scalar initializer
mod_php5.c:969: warning: (near initialization for `php5_module')
mod_php5.c:970: error: `NULL' undeclared here (not in a function)
mod_php5.c:970: warning: excess elements in scalar initializer
mod_php5.c:970: warning: (near initialization for `php5_module')
mod_php5.c:984: error: `NULL' undeclared here (not in a function)
mod_php5.c:984: warning: excess elements in scalar initializer
mod_php5.c:984: warning: (near initialization for `php5_module')
mod_php5.c:984: warning: data definition has no type or storage class
../../include/http_conf_globals.h:42: error: storage size of `ap_bind_address' isn't known
../../include/http_conf_globals.h:78: error: storage size of `ap_server_root' isn't known
../../include/http_conf_globals.h:79: error: storage size of `ap_server_confname' isn't known
../../include/http_conf_globals.h:89: error: storage size of `ap_coredump_dir' isn't known
make[4]: *** [mod_php5.o] Error 1
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[1]: *** [build-std] Error 2
make: *** [build] Error 2


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-06 12:23 UTC] gjd at devolia dot fr
I think the problem is that PHP>5 cannot be compiled as statis modules, I am correct ?
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 17:01:35 2025 UTC