From:             [EMAIL PROTECTED]
Operating system: AIX 4.3
PHP version:      4.0.4pl1
PHP Bug Type:     Compile Failure
Bug description:  syntax error in ext/ftp/ftp.h

Hi, I got this symptom by compiling PHP:
xlc  -I. -I/home/pistoor/php-4.0.4pl1/ext/ftp -I/home/pistoor/php-4.0.4pl1/main 
-I/home/pistoor/php-4.0.4pl1 -I/home/pistoor/php-4.0.4pl1/Zend 
-I/home/pistoor/php-4.0.4pl1/ext/mysql/libmysql 
-I/home/pistoor/php-4.0.4pl1/ext/xml/expat/xmltok 
-I/home/pistoor/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/pistoor/php-4.0.4pl1/TSRM  
-DXML_BYTE_ORDER=21 -qsource -qshowinc -I/home/pistoor  -c php_ftp.c && touch 
php_ftp.lo
"ftp.h", line 47.22: 1506-046 (S) Syntax error.

 I use the xlc-version of the C Set ++ for AIX compiler, as it is more ANSI-C than the 
cc-version. It also shows more errors.
 My configuration of PHP (as a CGI-program to be used by Lynx):
CC=xlc ./configure --prefix=/home/pistoor/php \
  --with-config-file-path=/home/pistoor/php --enable-debug \
  --enable-sigchild --enable-calendar --enable-ftp \
  --enable-trans-sid --enable-shmop --with-regex=php \
  --enable-sysvsem --enable-sysvshm --enable-wddx \
  --enable-yp

The file ext/ftp/ftp.h contains these lines:
typedef enum ftptype {
        FTPTYPE_ASCII,
        FTPTYPE_IMAGE,
} ftptype_t;

The last "," is too much. I removed it.

 Regard
 Andreas Pistoor


-- 
Edit Bug report at: http://bugs.php.net/?id=9707&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to