Re: Close but no go.
| From: | Kevin | Date: | Thu, 17 May 2001 11:49:22 +0000 |
| Subject: | Re: Close but no go. | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-1860@lists.php.net to get a copy of this message | ||
The best I can tell, the linker isn't bringing in the gtk libs (in fact,
it doesn't bring lin libgdk, libgtk, or libglade) when it loads the
php-gtk extension. The reason is clear:
$ ldd php_gtk.so
libc.so.6 => /lib/libc.so.6 (0x4007e000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
(Note you may have to set LD_LIBRARY_PATH for this to work)
What is not clear is why php_gtk.so is not linked against these
libraries properly.
As a temporary solution, you can use LD_PRELOAD thus:
export
LD_PRELOAD='/usr/lib/libgtk.so:/usr/lib/libgdk.so:/usr/lib/libglade.so'
but a better solution would be to fix how php_gtk.so is built. I'll let
you know if I figure out how it should be.
--Kevin
Jason Morehouse wrote:
>
> Was able to get the latest cvs of php & php-gtk to install, but now I get
> an error when running a test script.
>
> php_gtk.so is in /usr/local/lib/php/extensions
>
> root-office>php -q hello.php
> [~/php-gtk/test]
> <br>
> <b>Warning</b>: Unable to load dynamic library
> '/usr/local/lib/php/extensions/php_gtk.so' -
> /usr/local/lib/php/extensions/php_gtk.so: undefined symbol:
> g_dataset_destroy in <b>hello.php</b> on line <b>6</b><br>
> <br>
> <b>Fatal error</b>: Cannot instantiate non-existent class: gtkwindow in
> <b>hello.php</b> on line <b>40</b><br>
>
> Any ideas?
>
> Thanks,
> -Jason
>
> --
> PHP GTK Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net
> For additional commands, e-mail: php-gtk-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net