Re: Inconv in PHP5 compile
| From: | (PHPDiscuss - PHP Newsgroups and mailing lists) | Date: | Sun, 21 Mar 2004 00:32:47 +0000 |
| Subject: | Re: Inconv in PHP5 compile | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181060@lists.php.net to get a copy of this message | ||
I'm having PHP5 compile problems as well. Here's some shortened output
from commands giving a picture of my problem.
The first thing that troubles me is vi giving this output:
[root@pdc php-5.0.0RC1]# vi ext/mysql/php_mysql.c
"ext/mysql/php_mysql.c" 2514L, 70348C
Error detected while processing modelines:
line 2512:
E518: Unknown option: fdm=marker
Hit ENTER or type command to continue
I ran into this after:
[root@pdc php-5.0.0RC1]# gcc --version
gcc (GCC) 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
..
[root@pdc php-5.0.0RC1]# ./configure
--with-apsx2=/usr/local/apache2/bin/apxs --with-mysql=/data/sw/mysql-4.0.18
..
[root@pdc php-5.0.0RC1]# make
..
..
gcc -Iext/mysql/ -I/data/sw/php-5.0.0RC1/ext/mysql/ -DPHP_ATOM_INC
-I/data/sw/php-5.0.0RC1/include -I/data/sw/php-5.0.0RC1/main
-I/data/sw/php-5.0.0RC1 -I/data/sw/php-5.0.0RC1/Zend
-I/usr/include/libxml2 -I/data/sw/mysql-4.0.18/include
-I/data/sw/php-5.0.0RC1/TSRM -g -O2 -c
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c -o ext/mysql/php_mysql.o &&
echo > ext/mysql/php_mysql.lo
In file included from /data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:59:
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.h:51:5: token "@" is not valid
in preprocessor expressions
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:72:5: token "@" is not valid
in preprocessor expressions
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:82:5: token "@" is not valid
in preprocessor expressions
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:86:5: token "@" is not valid
in preprocessor expressions
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:90:5: token "@" is not valid
in preprocessor expressions
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:101:5: token "@" is not valid
in preprocessor expressions
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:122:5: token "@" is not valid
in preprocessor expressions
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:181:5: token "@" is not valid
in preprocessor expressions
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:376:5: token "@" is not valid
in preprocessor expressions
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c: In function
`php_mysql_do_connect':
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:482: error: syntax error at
'@' token
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:482: error: syntax error at
'@' token
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:482: error: `MYSQL_TCP_PORT'
undeclared (first use in this function)
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:482: error: (Each undeclared
identifier is reported only once
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:482: error: for each function
it appears in.)
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:485:5: token "@" is not valid
in preprocessor expressions
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:502: error: syntax error at
'@' token
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:502: error: syntax error at
'@' token
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:639:5: token "@" is not valid
in preprocessor expressions
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:666:5: token "@" is not valid
in preprocessor expressions
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:674: warning: comparison
between pointer and integer
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:703:5: token "@" is not valid
in preprocessor expressions
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:706: error: `handler'
undeclared (first use in this function)
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:715:5: token "@" is not valid
in preprocessor expressions
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:718: warning: comparison
between pointer and integer
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:726:5: token "@" is not valid
in preprocessor expressions
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:771:5: token "@" is not valid
in preprocessor expressions
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:779: warning: comparison
between pointer and integer
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:1123:5: token "@" is not valid
in preprocessor expressions
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:1259:5: token "@" is not valid
in preprocessor expressions
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c: In function
`zif_mysql_result':
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:1779: warning: assignment from
incompatible pointer type
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c: In function
`php_mysql_fetch_hash':
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:1949: warning: assignment from
incompatible pointer type
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c: In function
`zif_mysql_fetch_lengths':
/data/sw/php-5.0.0RC1/ext/mysql/php_mysql.c:2135: warning: assignment from
incompatible pointer type
make: *** [ext/mysql/php_mysql.lo] Error 1