note 117 added to install.unix.php
| From: | tychay at mac dot com | Date: | Thu, 21 Mar 2002 11:46:55 +0000 |
| Subject: | note 117 added to install.unix.php | ||
| Groups: | php.gtk.webmaster | ||
| Request: | Send a blank email to php-gtk-webmaster+get-310@lists.php.net to get a copy of this message | ||
To the users having a compile trouble in any file named gen_*. The problem is not with buildconf or
anything like that. To understand php-gtk, realize that some source code (the gen_* stuff) is
generated by php scripts that are located in the generate/ subdir of the distribution. If the php
does not successfully run, it will dump PHP error output in the generated gen_* c source and header
files and a flood of errors (because the c compiler is trying to compile your PHP errors!).
The best way to troubleshoot this is to go into the subdir that crashed and look at the errors in
the gen_*. Then you modify your php.ini, delete the gen_* files and type make (and then control-c)
and look at the output until the generated files don't return warnings or errors. DO NOT TURN
OFF PHP ERROR OUTPUT because the compiler will crash because certain symbols and such will not be
written to these gen_* files.
I'll tell you what worked for me.
1) I disabled extension=ncurses.so which RedHat Rawhide installs and enables even though ncurses is
an experimental and super buggy module.
2) I turned on register_globals and register_argc_argv. Why? Because generator.php reads $argc and
$argv instead of $_SERVER["argc"] (it also has some minor problems like using the new
construct without an & but that isn't important).
3) I set memory_limit to "32M" instead of the default "8M" because gen_gtk.c
needed around 13 megs to be generated.
I hope this helps those of you who have been banging your heads.
terry
http://gtk.php.net/manual/en/install.unix.php