Re: [PHP-GTK] Problem with make php-gtk-2.0.1 cuz of gen_atk.lo

[email protected] ("Richard Lynch") Mon, 14 Dec 2009 09:31:21 -0600 (CST)
Newsgroups php.gtk.general
Message-ID <[email protected]>
A recent change in the guts of PHP declares some extension bits
"static" so they don't glut the global symbol space with functions
that are never called.

Alas, this means that any extensions, presumably including GTK, that
already put "static" in there for the same purpose will break.

Quick Hack Fix:
cd into your PHP source directory, and then find the GTK extension,
probably in ext/gtk* or similar.  Do:

grep -r static .

Anywhere in the bits that declare PHP functions or ZEND functions,
find the 'static' keywords and rip them out.

Disclaimer: I'm not an expert by any means...

On Mon, December 14, 2009 9:20 am, Michal Olber wrote:
> Hello All
> I Install phoronix-test-suite, but cant runnig gui, cuz I have some
> problems. I am using Fedora 12 with rpmfusion repository. I go with
> this:
> http://stackoverflow.com/questions/78392/how-to-install-php-gtk-in-the-acer-aspire-one
> but when I want make install it show me:
>
>> /bin/sh /home/orion/Pobrane/php-gtk-2.0.1/libtool --mode=compile cc
>> -Iext/gtk+/ -I/home/orion/Pobrane/php-gtk-2.0.1/ext/gtk+/
>> -DPHP_ATOM_INC
>> -I/home/orion/Pobrane/php-gtk-2.0.1/include
>> -I/home/orion/Pobrane/php-gtk-2.0.1/main
>> -I/home/orion/Pobrane/php-gtk-2.0.1
>> -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM
>> -I/usr/include/php/Zend -I/usr/include/php/ext
>> -I/usr/include/php/ext/date/lib -I/usr/include/glib-2.0
>> -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0
>> -I/usr/lib/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  -g -O2   -c ext/gtk+/gen_atk.c -o
>> ext/gtk+/gen_atk.lo
>> libtool: compile:  cc -Iext/gtk+/
>> -I/home/orion/Pobrane/php-gtk-2.0.1/ext/gtk+/ -DPHP_ATOM_INC
>> -I/home/orion/Pobrane/php-gtk-2.0.1/include
>> -I/home/orion/Pobrane/php-gtk-2.0.1/main
>> -I/home/orion/Pobrane/php-gtk-2.0.1
>> -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM
>> -I/usr/include/php/Zend -I/usr/include/php/ext
>> -I/usr/include/php/ext/date/lib -I/usr/include/glib-2.0
>> -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0
>> -I/usr/lib/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 -g -O2 -c ext/gtk+/gen_atk.c  -fPIC -DPIC -o
>> ext/gtk+/.libs/gen_atk.o
>> ext/gtk+/gen_atk.c:272: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:277: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:282: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:287: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:292: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:298: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:303: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:308: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:313: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:318: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:440: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:445: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:722: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:727: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:732: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:737: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:742: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:747: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:791: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:829: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:923: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:929: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:934: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:999: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:1147: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:1152: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:1157: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:1162: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:1167: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:1172: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:1341: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:1346: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:1351: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:1356: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:1361: error: duplicate 'static'
>> ext/gtk+/gen_atk.c:1366: error: duplicate 'static'
>> make: *** [ext/gtk+/gen_atk.lo] B³±d 1
>>
> I traying all posbilities, but dont know what to do now :( Pls help.
>
> With regards Olbi
>


-- 
Some people ask for gifts here.
I just want you to buy an Indie CD for yourself:
http://cdbaby.com/search/from/lynch