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

From: Date: Wed, 05 Sep 2007 13:51:46 +0000
Subject: #26679 [Opn->Fbk]: php error messages in c files
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-3948@lists.php.net to get a copy of this message
ID: 26679 Updated by: jani@php.net Reported By: steinm@php.net -Status: Open +Status: Feedback Bug Type: PHP-GTK related Operating System: Linux PHP Version: 4.4.2 New Comment: Does it happen with PHP 5.2.4? Previous Comments: ------------------------------------------------------------------------ [2006-04-18 14:24:43] steinm@php.net 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 ------------------------------------------------------------------------ [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 (#3948) next »