RE: [PHP-GTK-DEV] problem compiling php-gtk on debian linux system
| From: | Steph | Date: | Thu, 02 Sep 2004 14:41:27 +0000 |
| Subject: | RE: [PHP-GTK-DEV] problem compiling php-gtk on debian linux system | ||
| References: | 1 | Groups: | php.gtk.dev php.gtk.general |
| Request: | Send a blank email to php-gtk-dev+get-747@lists.php.net to get a copy of this message | ||
Nate, hi,
Please download 1.0.1 - Andrei killed the old make system in the latest
release.
Cheers,
- Steph
> -----Original Message-----
> From: Nate Daly [mailto:nate@tenkan.org]
> Sent: 02 September 2004 14:01
> To: php-gtk-general@lists.php.net
> Cc: php-gtk-dev@lists.php.net
> Subject: [PHP-GTK-DEV] problem compiling php-gtk on debian linux system
>
>
> Hello,
>
> I'm trying to get php-gtk working on a debian linux system and am having
> some
> trouble. I'm using:
>
> machine:~$ gtk-config --version
> 1.2.10
>
> and:
>
> machine:~$ php --version
> PHP 4.3.9RC2 (cgi) (built: Sep 1 2004 15:12:50)
>
> I've downloaded the 1.0.0 source tar.gz from the website, and
> when I try to
> run buildconf, I get the following:
>
> machine:~/php-gtk-1.0.0$ ./buildconf
> configure.in:9: warning: underquoted definition of PHP_WITH_PHP_CONFIG
> run info '(automake)Extending aclocal'
> or see
>
> http://sources.redhat.com/automake/automake.html#Extending%20aclocal
> configure.in:32: warning: underquoted definition of PHP_EXT_BUILDDIR
> configure.in:33: warning: underquoted definition of PHP_EXT_DIR
> configure.in:34: warning: underquoted definition of PHP_EXT_SRCDIR
> configure.in:35: warning: underquoted definition of PHP_ALWAYS_SHARED
> aclocal: cannot open php_gtk.m4: No such file or directory
> make: *** [buildmk.stamp] Error 1
>
> So I looked around and I see php_gtk_new.m4 and php_gtk_old.m4. Being
> optimistic,
> I coped php_gtk_new.m4 to php_gtk.m4 and buildconf then completed
> successfully
> in spite of about 100 "underquoted definition of" warning messages. Then
> I did
> ./configure and that completed also. The make starts off fine, but then
> blows up
> part way through with this:
>
> ext/gtk+/gen_gtk.c:1: syntax error before '<' token
> ext/gtk+/gen_gtk.c:2: too many decimal points in floating constant
> ext/gtk+/gen_gtk.c:4: too many decimal points in floating constant
> In file included from /usr/include/_G_config.h:44,
> from /usr/include/libio.h:32,
> from
> /usr/lib/gcc-lib/i386-linux/3.2.3/include/stdio.h:81,
> from /usr/local/include/php/Zend/zend.h:35,
> from /usr/local/include/php/main/php.h:34,
> from /root/packages/php-gtk-1.0.0/main/php_gtk.h:26,
> from ext/gtk+/gen_gtk.c:5:
> /usr/include/gconv.h:72: syntax error before "size_t"
> /usr/include/gconv.h:88: syntax error before "size_t"
> /usr/include/gconv.h:97: syntax error before "size_t"
> /usr/include/gconv.h:174: syntax error before "size_t"
> /usr/include/gconv.h:177: syntax error before '}' token
> In file included from /usr/include/libio.h:32,
> from
> /usr/lib/gcc-lib/i386-linux/3.2.3/include/stdio.h:81,
> from /usr/local/include/php/Zend/zend.h:35,
> from /usr/local/include/php/main/php.h:34,
> from /root/packages/php-gtk-1.0.0/main/php_gtk.h:26,
> from ext/gtk+/gen_gtk.c:5:
> /usr/include/_G_config.h:47: field `__cd' has incomplete type
> /usr/include/_G_config.h:50: field `__cd' has incomplete type
> /usr/include/_G_config.h:52: confused by earlier errors, bailing out
> make: *** [ext/gtk+/gen_gtk.lo] Error 1
>
> looking at the file ext/gtk+/gen_gtk.c I see that the first 4 lines are
> as follows:
>
> <br />
> <b>Warning</b>: fopen(--): failed to open stream: No such file or
> directory in <b>/root/packages/php-gtk-1.0.0/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>/root/packages/php-gtk-1.0.0/generator/scheme.php</b> on
> line <b>34</b><br />
>
> which is of course not valid C code. These errors are, I believe, coming
> from the
> Defs_Parser constructor (in generator/scheme.php) which is being
> called from
> generator/generator.php, which is being executed directly from the
> Makefiles in
> many places with "--" as the first argument. I was hoping perhaps
> someone could
> point me at the root of the problem. Thanks very much!
>
> -Nate Daly
> nate@tenkan.org
>
> --
> PHP-GTK Development Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>