|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-12-19 23:45 UTC] 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 12:00:01 2025 UTC |
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.