#26679 [NoF->Opn]: php error messages in c files

From: Date: Tue, 18 Apr 2006 14:24:44 +0000
Subject: #26679 [NoF->Opn]: php error messages in c files
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2772@lists.php.net to get a copy of this message
ID: 26679 Updated by: steinm@php.net -Reported By: vpupkin at comcast dot net +Reported By: steinm@php.net -Status: No Feedback +Status: Open Bug Type: PHP-GTK related Operating System: Linux -PHP Version: Irrelevant +PHP Version: 4.4.2 New Comment: This bug seems to be still there with php-gtk 1.0.2 and php 4.4.2-1+b1. The line number just has changed. It's now 612. Uwe Previous Comments: ------------------------------------------------------------------------ [2005-04-07 01:00:04] php-gtk-dev 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". ------------------------------------------------------------------------ [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] steinm@php.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

« previous php.gtk.dev (#2772) next »