php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26679 php error messages in c files
Submitted: 2003-12-19 23:45 UTC Modified: 2007-09-13 01:00 UTC
Votes:16
Avg. Score:4.7 ± 0.7
Reproduced:13 of 14 (92.9%)
Same Version:10 (76.9%)
Same OS:11 (84.6%)
From: steinm@php.net Assigned:
Status: No Feedback Package: PHP-GTK related
PHP Version: 4.4.2 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: steinm@php.net
New email:
PHP Version: OS:

 

 [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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-13 09:39 UTC] 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.
 [2005-03-30 08:57 UTC] sniper@php.net
Does this happen still..?

 [2006-04-18 14:24 UTC] 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
 [2007-09-05 13:51 UTC] jani@php.net
Does it happen with PHP 5.2.4?
 [2007-09-13 01:00 UTC] 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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 10 08:01:27 2024 UTC