[CentOS-pt-br] PHP_GTK no CentOS4?

Rodrigo Barbosa rodrigob em darkover.org
Quarta Agosto 15 15:17:29 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Aug 15, 2007 at 12:08:18PM -0300, Bruno L. F. Cabral wrote:
>  Ola
> 
>  Estou tentando compilar o php_gtk-1.0.2 (stable) no meu CentOS4
>  e apesar dele compilar e instalar corretamente, nao roda
> 
>  [root em try test]# php gtk.php
>  [...]
>  PHP Warning:  dl(): Unable to load dynamic library 
>  '/usr/lib/php4/php_gtk.so' - /usr/lib/php4/php_gtk.so: undefined symbol: 
>  gtk_shpaned_new in /usr/src/redhat/BUILD/php_gtk-1.0.2/test/gtk.php on line 
>  5


Problem

Get this error when trying to load PHP-GTK files:

undefined symbol: gtk_shpaned_new 

Solution

Delete the source directory (make clean does not seem to work properly) and extract it again. Edit the file /main/php_gtk_ext.c.in in any text editor and add the line:

#include "ext/spaned/gtkshpaned.c" 

Now recompile as usual.


- -- 
Rodrigo Barbosa (Moderador)
Lista centos-pt-br
http://lists.centos.org/mailman/listinfo/centos-pt-br

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFGwxkJpdyWzQ5b5ckRAnLDAJ9NuRZAhJjpykIcYZwOWeBeJ4LLwACeJT43
5ryUHuzRj1VLxP3FtMB5k/8=
=xbBX
-----END PGP SIGNATURE-----



Mais detalhes sobre a lista de discussão CentOS-pt-br