From: will dot spencer at internet-search-engines-faq dot com
Operating system: FreeBSD 4.10-BETA #6
PHP version: 4.3.10
PHP Bug Type: Compile Failure
Bug description: Syntax error reported in /usr/include/rpc/rpc_msg.h
Description:
------------
I am experiencing something similar to bug report #6713, except with php
4.3.10.
I cannot see an issue with FreeBSD's /usr/include/rpc/rpc_msg.h, which has
remained unchanged since 1999/08/27.
I see the same results when I use ./configure with no options or when I
use ./configure with the entire set of desired options.
Reproduce code:
---------------
rpc_msg.h lines 53-70 are:
enum msg_type {
CALL=0,
REPLY=1
};
enum reply_stat {
MSG_ACCEPTED=0,
MSG_DENIED=1
};
enum accept_stat {
SUCCESS=0,
PROG_UNAVAIL=1,
PROG_MISMATCH=2,
PROC_UNAVAIL=3,
GARBAGE_ARGS=4,
SYSTEM_ERR=5
};
Expected result:
----------------
I was hoping that 4.3.10 would make with no warnings or errors. :)
Actual result:
--------------
# make
/bin/sh /root/php-4.3.10/libtool --silent --preserve-dup-deps
--mode=compile gcc -Iext/standard/ -I/root/php-4.3.10/ext/standard/
-DPHP_ATOM_INC -I/root/php-4.3.10/include -I/root/php-4.3.10/main
-I/root/php-4.3.10 -I/root/php-4.3.10/Zend -I/usr/local/include/mysql
-I/usr/local/include -I/root/php-4.3.10/TSRM -g -O2 -prefer-pic -c
/root/php-4.3.10/ext/standard/crypt.c -o ext/standard/crypt.lo
In file included from /usr/include/rpc/rpc.h:56,
from /usr/include/crypt.h:9,
from /root/php-4.3.10/ext/standard/crypt.c:31:
/usr/include/rpc/rpc_msg.h:64: syntax error before `0'
*** Error code 1
--
Edit bug report at http://bugs.php.net/?id=31290&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31290&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=31290&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=31290&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31290&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31290&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31290&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31290&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31290&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31290&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31290&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=31290&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=31290&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31290&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31290&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31290&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31290&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31290&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31290&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31290&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31290&r=mysqlcfg