Re: [PHP-GTK-DEV] Bugzilla

[email protected] (Elizabeth M Smith) Mon, 05 Oct 2009 14:58:48 -0400
Newsgroups php.gtk.dev
Message-ID <[email protected]>
Joop Boonen wrote:
> On Mon, October 5, 2009 4:05 pm, Elizabeth M Smith wrote:
>> Joop Boonen wrote:
>>> On Mon, October 5, 2009 1:03 am, Elizabeth M Smith wrote:
>>>
>>>> Joop Boonen wrote:
>>>>
>>>>> Hello,
>>>>> Is there a bugzilla for php-gtk?
>>>>> The latest cvs build does build against php 5.3 but not any more
>>>>>
>>> against
>>>
>>>>> php < 5.3.
>>>>> Regards,
>>>>> Joop
>>>>>
>>>> Builds fine against the lastest PHP 5.2 branch (I've built it about 50
>>>>
>>> times this weekend hunting a bug)
>>>
>>>> There are some issues with the configure stuff with automake however
>>>>
>>> since it now requires the cairo extension as well (adding -DHAVE_CAIRO
>>> to CFLAGS ...)
>>
>> As I mentioned - you need the PECL cairo extension (see
>> pecl.php.net/package/cairo) and you need to add -DHAVE_CAIRO to your
>> CFLAGS
> 
> I did this. But than it calls the ext/cairo/php_cairo_api.h file. This
> file doesn't exist (anymore).
> 
> <build_log>
> creating libtool
> appending configuration tag "CXX" to libtool
> configure: creating ./config.status
> config.status: creating config.h
> configure: WARNING: unrecognized options: --enable-sourceview,
> --enable-spell, --disable-rpath
> + /usr/bin/make
> /bin/sh /usr/src/packages/BUILD/php-gtk-2.0.1+svn289211/libtool
> --mode=compile cc -I./ext/gtk+/
> -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn289211/./ext/gtk+/
> -DPHP_ATOM_INC -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn289211/include
> -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn289211/main
> -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn289211 -I/usr/include/php5
> -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend
> -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0
> -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1
> -I/usr/include/freetype2 -I/usr/include/libpng12
> -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -DHAVE_CONFIG_H
> -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
> -funwind-tables -fasynchronous-unwind-tables -fno-strict-aliasing
> -DHAVE_CAIRO -c
> /usr/src/packages/BUILD/php-gtk-2.0.1+svn289211/./ext/gtk+/php_gtk+.c -o
> ./ext/gtk+/php_gtk+.lo
> mkdir ./ext/gtk+/.libs
> cc -I./ext/gtk+/
> -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn289211/./ext/gtk+/
> -DPHP_ATOM_INC -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn289211/include
> -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn289211/main
> -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn289211 -I/usr/include/php5
> -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend
> -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0
> -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1
> -I/usr/include/freetype2 -I/usr/include/libpng12
> -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -DHAVE_CONFIG_H
> -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
> -funwind-tables -fasynchronous-unwind-tables -fno-strict-aliasing
> -DHAVE_CAIRO -c
> /usr/src/packages/BUILD/php-gtk-2.0.1+svn289211/./ext/gtk+/php_gtk+.c
> -fPIC -DPIC -o ./ext/gtk+/.libs/php_gtk+.o
> In file included from
> /usr/src/packages/BUILD/php-gtk-2.0.1+svn289211/./ext/gtk+/php_gtk+.c:23:
> /usr/src/packages/BUILD/php-gtk-2.0.1+svn289211/main/php_gtk.h:34:37:
> error: ext/cairo/php_cairo_api.h: No such file or directory
> make: *** [ext/gtk+/php_gtk+.lo] Error 1
> error: Bad exit status from /var/tmp/rpm-tmp.PoWCRG (%build)
> 
> 
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.PoWCRG (%build)
> System halted.
> </buildlog>
> 
>> the automake stuff is all messed up, I've asked for help since I know
>> nothing about it - but no one else seems to know how to fix it either
>>
>> thanks,
>> Elizabeth Smith
>>
> 
> 

First of all, update your source - there were some changes made this 
morning ;)

Secondly, the php_cairo_api.h is from the PECL cairo extension - you'll 
need to make sure this location is where the php-gtk build system can 
find it (INCLUDES environment variable most likely?) - again, another 
thing the configure system doesn't take care of and needs to.

Thanks,
Elizabeth Smith