php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31290 Syntax error reported in /usr/include/rpc/rpc_msg.h
Submitted: 2004-12-25 01:04 UTC Modified: 2005-01-07 01:00 UTC
Votes:8
Avg. Score:5.0 ± 0.0
Reproduced:8 of 8 (100.0%)
Same Version:7 (87.5%)
Same OS:4 (50.0%)
From: will dot spencer at internet-search-engines-faq Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 4.3.10 OS: FreeBSD 4.10-BETA #6
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
26 - 12 = ?
Subscribe to this entry?

 
 [2004-12-25 01:04 UTC] will dot spencer at internet-search-engines-faq
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-30 06:44 UTC] sniper@php.net
First try rebuilding the world.

 [2004-12-30 18:39 UTC] will at internet-search-engines-faq dot com
I have done a cvsup to RELENG_5, and rebuilt both the world and the kernel.

I am now running kernel 5.3-STABLE.

I receive the same general error when I make php4.3.10, but with a slightly different error message:


In file included from /usr/include/rpc/rpc.h:59,
                 from /usr/include/crypt.h:9,
                 from /root/php-4.3.10/ext/standard/crypt.c:31:
/usr/include/rpc/rpc_msg.h:66: error: syntax error before numeric constant
*** Error code 1
 [2005-01-07 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 01 00:01:30 2024 UTC