#26679 [Fbk->NoF]: php error messages in c files
| From: | php-gtk-dev at lists dot php dot net | Date: | Wed, 06 Apr 2005 23:00:06 +0000 |
| Subject: | #26679 [Fbk->NoF]: php error messages in c files | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-1062@lists.php.net to get a copy of this message | ||
ID: 26679
Updated by: php-gtk-dev@lists.php.net
Reported By: vpupkin at comcast dot net
-Status: Feedback
+Status: No Feedback
Bug Type: PHP-GTK related
Operating System: Linux
PHP Version: Irrelevant
New Comment:
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".
Previous Comments:
------------------------------------------------------------------------
[2005-03-30 08:57:57] sniper@php.net
Does this happen still..?
------------------------------------------------------------------------
[2004-08-13 09:39:37] gbp at reddleman dot org
I have the same problem and it looks like it might be a bug in Pear's
Getopt.
The problem is with calling PHP in this fashion
php -f file.php -- -o opt_value argument
The '--' is not interpreted as the end of PHP arguments, but rather as
the first script argument. The solution is, after configure, to replace
all occurences with a line in this style:
php -q file.php -o opt_value argument
i.e., replace -f with -q and remove the --
After that, run
make clean
find -name "gen_*" -exec rm {} \;
make
That did it for me.
------------------------------------------------------------------------
[2003-12-19 23:45:24] vpupkin at comcast dot net
Description:
------------
to reproduce (php-gtk-1.0.0)
$./buildconf
$./configure
...
./configure: line 3665: syntax error near unexpected token `debug,'
./configure: line 3665: `PHP_GTK_ARG_ENABLE(debug, whether to include
debugging symbols,'
$aclocal
$./buildconf
$./configure
$make
files:
/ext/gtk+/gen_gtk.c contains (it's inside the file):
br />
<b>Warning</b>: fopen(--): failed to open stream: No such file or
directory in <b>/dev/php-gtk/generator/scheme.php</b> on line
<b>110</b><br />
<br />
<b>Warning</b>: fgets(): supplied argument is not a valid stream
resource in <b>/dev/php-gtk/generator/scheme.php</b> on line
<b>34</b><br />
/ext/gtk+/get_gdk.c contains:
<br />
<b>Warning</b>: filemtime(): Stat failed for -- (errno=2 - No such
file or directory) in <b>/dev/php-gtk/generator/scheme.php</b> on line
<b>101</b><br />
you can remove those line from the files and do "make" (it will go a
bit farther) again, but then you receive the folliwing:
/dev/php-gtk/main/php_gtk_object.c: In function
`php_gtk_arg_from_value':
/dev/php-gtk/main/php_gtk_object.c:615: error: `gtk_object_ce'
undeclared (first use in this function)
/dev/php-gtk/main/php_gtk_object.c:615: error: (Each undeclared
identifier is reported only once
/dev/php-gtk/main/php_gtk_object.c:615: error: for each function it
appears in.)
/dev/php-gtk/main/php_gtk_object.c: In function
`php_gtk_ret_from_value':
/dev/php-gtk/main/php_gtk_object.c:892: error: `gtk_object_ce'
undeclared (first use in this function)
make: *** [main/php_gtk_object.lo] Error 1
Hope it helps. Thanks
Alexander Kabanov
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26679&edit=1