SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2004
    Location
    Planet Earth
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    installing php 5 woes

    I'm trying to install a test version of PHP 5 on an Apache 1.3.29 webserver but it keeps erroring out. I'm using the same configuration used to success configure and comple Apache 1.3.29 + PHP 4.

    I start with:
    ./configure --prefix=/usr/local/dev/apache --enable-module=so

    Then move into PHP directory:
    ./configure --prefix=/usr/local/dev/php --with-config-file-path=/usr/local/dev/php --with-apache=../apache_1.3.29 --with-mysql --with-pgsql --with-zlib=/usr --with-gd --with-jpeg-dir=/usr/lib --enable-ftp --enable-sockets --enable-track-vars --enable-debugger --enable-magic-quotes

    make
    make install

    Compiles perfectly with no errors.

    Now I move back into apache directory and run:
    ./configure --prefix=/usr/local/dev/apache --enable-module=rewrite --enable-rule=SHARED_CORE --enable-module=so --activate-module=src/modules/php5/libmodphp5.a

    Configures OK, but when I run "make" it starts spitting out a bunch of PHP related error messages:

    ===> src/modules/php5
    gcc -c -I../../os/unix -I../../include -DLINUX=22 -I/usr/include/gdbm -DUSE_HSREGEX -fpic -DSHARED_CORE `../../apaci` mod_php5.c
    mod_php5.c:22:29: php_apache_http.h: No such file or directory
    In file included from mod_php5.c:23:
    ../../include/http_conf_globals.h:70: syntax error before "int"
    ../../include/http_conf_globals.h:71: syntax error before "int"
    ../../include/http_conf_globals.h:73: syntax error before "uid_t"
    ../../include/http_conf_globals.h:73: warning: data definition has no type or storage class
    ../../include/http_conf_globals.h:74: syntax error before "char"
    ../../include/http_conf_globals.h:75: syntax error before "gid_t"
    ../../include/http_conf_globals.h:75: warning: data definition has no type or storage class
    ../../include/http_conf_globals.h:82: syntax error before "int"
    ../../include/http_conf_globals.h:83: syntax error before "int"
    ../../include/http_conf_globals.h:84: syntax error before "int"
    ../../include/http_conf_globals.h:85: syntax error before "struct"
    ../../include/http_conf_globals.h:86: syntax error before '*' token
    ../../include/http_conf_globals.h:86: warning: data definition has no type or storage class
    ../../include/http_conf_globals.h:87: syntax error before "int"
    ../../include/http_conf_globals.h:88: syntax error before "int"
    ../../include/http_conf_globals.h:89: syntax error before "int"
    ../../include/http_conf_globals.h:90: syntax error before "int"
    ../../include/http_conf_globals.h:91: syntax error before "int"
    ../../include/http_conf_globals.h:92: syntax error before "int"
    ../../include/http_conf_globals.h:97: syntax error before "int"
    ../../include/http_conf_globals.h:99: syntax error before "char"
    ../../include/http_conf_globals.h:100: syntax error before "char"
    ../../include/http_conf_globals.h:101: syntax error before "char"
    ../../include/http_conf_globals.h:102: syntax error before "char"
    ../../include/http_conf_globals.h:106: syntax error before "int"
    ../../include/http_conf_globals.h:107: syntax error before "int"
    ../../include/http_conf_globals.h:115: syntax error before "char"
    ../../include/http_conf_globals.h:115: `MAX_STRING_LEN' undeclared here (not in a function)
    ../../include/http_conf_globals.h:116: syntax error before "char"
    ../../include/http_conf_globals.h:116: `MAX_STRING_LEN' undeclared here (not in a function)
    ../../include/http_conf_globals.h:119: syntax error before "array_header"
    ../../include/http_conf_globals.h:119: warning: data definition has no type or storage class
    ../../include/http_conf_globals.h:120: syntax error before "array_header"
    ../../include/http_conf_globals.h:120: warning: data definition has no type or storage class
    ../../include/http_conf_globals.h:121: syntax error before "array_header"
    ../../include/http_conf_globals.h:121: warning: data definition has no type or storage class
    ../../include/http_conf_globals.h:126: syntax error before "char"
    ../../include/http_conf_globals.h:126: `MAX_STRING_LEN' undeclared here (not in a function)
    mod_php5.c:37: syntax error before '*' token
    mod_php5.c:40: syntax error before "uint"
    mod_php5.c:41: warning: parameter names (without types) in function declaration
    mod_php5.c:42: syntax error before '*' token
    mod_php5.c:43: syntax error before '*' token
    mod_php5.c:44: syntax error before '*' token
    mod_php5.c:45: syntax error before '*' token
    Any idea what's going wrong here?

  2. #2
    SitePoint Member
    Join Date
    Aug 2004
    Location
    Virginia
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Very Similar problem; and a thought for you

    1. Since you are enabling shared objects, you don't need to give the PHP compile the source of the apache source, and you don't need to use the "activate module" in your apache. That is if you aren't using shared object. Instead in the PHP comile use --with-apxs=/[path to your apxs]

    and in your Apache, just use --enable-module=so

    then check through the apahce.conf to make sure the needed PHP lines to load PHP and interpret .php lines are there.

    2. I AM having very similar errors to what you report, and I don't want to use the shared object. On FreeBSD 4.10, I configure PHP
    ./configure --with-mysql \
    --with-apache=../apache_1.3.31 \
    --disable-cgi \
    --with-curl=/usr/local/bin/curl \
    --with-curlwrappers \
    --with-iconv=/usr/local/bin/iconv
    [works fine]

    then
    ./configure --prefix=/usr/local/apache \
    --enable-module=rewrite \
    --activate-module=src/modules/php5/libmodphp5.a \
    --activate-module=src/modules/perl/libperl.a
    [digests the mod_perl great, chokes on the PHP 5.01]

    mod_php5.c:22: php_apache_http.h: No such file or directory
    In file included from mod_php5.c:23:
    ../../include/http_conf_globals.h:27: syntax error before `int'
    ../../include/http_conf_globals.h:28: syntax error before `int'
    ../../include/http_conf_globals.h:30: syntax error before `uid_t'
    ../../include/http_conf_globals.h:30: warning: data definition has no type or storage class
    ../../include/http_conf_globals.h:31: syntax error before `char'
    ../../include/http_conf_globals.h:32: syntax error before `gid_t'
    ../../include/http_conf_globals.h:32: warning: data definition has no type or storage class
    ../../include/http_conf_globals.h:39: syntax error before `int'
    ../../include/http_conf_globals.h:40: syntax error before `int'
    ../../include/http_conf_globals.h:41: syntax error before `int'
    ../../include/http_conf_globals.h:42: syntax error before `struct'
    ../../include/http_conf_globals.h:43: syntax error before `*'
    ../../include/http_conf_globals.h:43: warning: data definition has no type or storage class
    ../../include/http_conf_globals.h:44: syntax error before `int'
    ../../include/http_conf_globals.h:45: syntax error before `int'
    ../../include/http_conf_globals.h:46: syntax error before `int'
    ../../include/http_conf_globals.h:47: syntax error before `int'
    ../../include/http_conf_globals.h:48: syntax error before `int'
    ../../include/http_conf_globals.h:49: syntax error before `int'
    ../../include/http_conf_globals.h:54: syntax error before `int'
    ../../include/http_conf_globals.h:56: syntax error before `char'
    ../../include/http_conf_globals.h:57: syntax error before `char'
    ../../include/http_conf_globals.h:58: syntax error before `char'
    ../../include/http_conf_globals.h:59: syntax error before `char'
    ../../include/http_conf_globals.h:66: syntax error before `int'
    ../../include/http_conf_globals.h:67: syntax error before `int'
    ../../include/http_conf_globals.h:75: syntax error before `char'
    ../../include/http_conf_globals.h:75: `MAX_STRING_LEN' undeclared here (not in a function)
    ../../include/http_conf_globals.h:76: syntax error before `char'
    ../../include/http_conf_globals.h:76: `MAX_STRING_LEN' undeclared here (not in a function)
    ../../include/http_conf_globals.h:79: syntax error before `array_header'
    ../../include/http_conf_globals.h:79: warning: data definition has no type or storage class
    ../../include/http_conf_globals.h:80: syntax error before `array_header'
    ../../include/http_conf_globals.h:80: warning: data definition has no type or storage class
    ../../include/http_conf_globals.h:81: syntax error before `array_header'
    ../../include/http_conf_globals.h:81: warning: data definition has no type or storage class
    ../../include/http_conf_globals.h:86: syntax error before `char'
    ../../include/http_conf_globals.h:86: `MAX_STRING_LEN' undeclared here (not in a function)
    mod_php5.c:37: syntax error before `*'
    mod_php5.c:40: syntax error before `uint'
    mod_php5.c:41: warning: parameter names (without types) in function declaration
    mod_php5.c:42: syntax error before `*'
    mod_php5.c:43: syntax error before `*'
    mod_php5.c:44: syntax error before `*'
    mod_php5.c:45: syntax error before `*'
    mod_php5.c:46: syntax error before `*'
    mod_php5.c:47: syntax error before `*'
    mod_php5.c:48: syntax error before `*'
    mod_php5.c:60: syntax error before `*'
    mod_php5.c:61: syntax error before `*'
    mod_php5.c:62: syntax error before `*'
    mod_php5.c:63: syntax error before `*'
    mod_php5.c:64: syntax error before `*'
    mod_php5.c:65: syntax error before `*'
    mod_php5.c:71: syntax error before `MODULE_VAR_EXPORT'
    mod_php5.c:71: warning: data definition has no type or storage class
    mod_php5.c:79: syntax error before `uint'
    mod_php5.c:97: syntax error before `uint'
    mod_php5.c: In function `sapi_apache_ub_write':
    mod_php5.c:101: `server_context' undeclared (first use in this function)
    mod_php5.c:101: (Each undeclared identifier is reported only once
    mod_php5.c:101: for each function it appears in.)
    mod_php5.c:102: `str' undeclared (first use in this function)
    mod_php5.c:102: `str_length' undeclared (first use in this function)
    mod_php5.c:102: `request_rec' undeclared (first use in this function)
    mod_php5.c:102: syntax error before `)'
    mod_php5.c: In function `sapi_apache_flush':
    mod_php5.c:119: `request_rec' undeclared (first use in this function)
    m


Bookmarks

Posting Permissions

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