Hi Mike,
Are there more errors above that? It looks to me as though there may be more
informative errors earlier in the output.
regards,
Peter
--- Mike <mavila@xxxxxxxxxxxxxxxxx> wrote:
> I am using Ubuntu 6.06 Linux with PHP 5.1.4. I needed to include MS SQL
> support in PHP so I needed to compile it. I downloaded many packages to make
> the compile work but I am now stuck on why I cannot get the past the
> following errors.
>
>
> In file included from /usr/src/php-5.1.4/sapi/apache2handler/mod_php5.c:26:
> /usr/src/php-5.1.4/sapi/apache2handler/php_apache.h:29: error: syntax error
> before 'php5_module'
> /usr/src/php-5.1.4/sapi/apache2handler/php_apache.h:29: warning: data
> definition has no type or storage class
> /usr/src/php-5.1.4/sapi/apache2handler/php_apache.h:38: error: syntax error
> before 'apr_bucket_brigade'
> /usr/src/php-5.1.4/sapi/apache2handler/php_apache.h:38: warning: no
> semicolon at end of struct or union
> /usr/src/php-5.1.4/sapi/apache2handler/php_apache.h:47: error: syntax error
> before '}' token
> /usr/src/php-5.1.4/sapi/apache2handler/php_apache.h:47: warning: data
> definition has no type or storage class
> /usr/src/php-5.1.4/sapi/apache2handler/php_apache.h:49: error: syntax error
> before '*' token
> /usr/src/php-5.1.4/sapi/apache2handler/php_apache.h:50: error: syntax error
> before '*' token
> /usr/src/php-5.1.4/sapi/apache2handler/php_apache.h:54: error: syntax error
> before '*' token
> /usr/src/php-5.1.4/sapi/apache2handler/mod_php5.c:28: error: syntax error
> before 'module'
> /usr/src/php-5.1.4/sapi/apache2handler/mod_php5.c:28: error: conflicting
> types for 'php5_module'
> /usr/src/php-5.1.4/sapi/apache2handler/php_apache.h:29: error: previous
> declaration of 'php5_module' was here
> /usr/src/php-5.1.4/sapi/apache2handler/mod_php5.c:29: error:
> 'STANDARD20_MODULE_STUFF' undeclared here (not in a function)
> /usr/src/php-5.1.4/sapi/apache2handler/mod_php5.c:30: warning:
> initialization makes integer from pointer without a cast
> /usr/src/php-5.1.4/sapi/apache2handler/mod_php5.c:31: warning:
> initialization makes integer from pointer without a cast
> /usr/src/php-5.1.4/sapi/apache2handler/mod_php5.c:34: warning:
> initialization from incompatible pointer type
> /usr/src/php-5.1.4/sapi/apache2handler/mod_php5.c:36: warning:
> initialization makes integer from pointer without a cast
> make: *** [sapi/apache2handler/mod_php5.lo] Error 1
>
>
> I am new to Linux and have never compiled PHP before. Someone suggested that
> I may have to change some of the C source but that sounds like it should not
> be. (Plus I have not programmed in C for a looooong time.) I still feel that
> I am missing something as I would think others would get the same error. I
> have installed Apache2 dev header packages but still no good compile. Do I
> need to download the whole Apache source?
>
> Any help is greatly appreciated.
>
> TIA.
>
> Mike
>
Send instant messages to your online friends http://au.messenger.yahoo.com
[Index of Archives]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[Postgresql]
[PHP Books]
[PHP Databases]
[PHP SOAP]