Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171514 - dev-php5/php-gtk does not install php_gtk.so
Summary: dev-php5/php-gtk does not install php_gtk.so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Anant Narayanan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-20 02:51 UTC by Zach
Modified: 2007-03-20 20:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zach 2007-03-20 02:51:42 UTC
I am running PHP5 on my AMD64 box compiled as follows:

[ebuild   R   ] dev-lang/php-5.2.1-r3  USE="apache2 bcmath berkdb calendar cgi cli crypt ctype fastbuild force-cgi-redirect ftp gd gdbm iconv imap ipv6 json ldap mysql mysqli ncurses nls pcntl pcre pdo posix postgres readline reflection session simplexml snmp soap sockets spell spl sqlite ssl threads tokenizer truetype unicode xml xsl zip zlib (-adabas) -apache (-birdstep) -bzip2 -cdb -cjk -concurrentmodphp -curl -curlwrappers -db2 -dbase (-dbmaker) -debug -discard-path -doc (-empress) (-empress-bcs) (-esoob) -exif (-fdftk) -filter (-firebird) -flatfile (-frontbase) -gd-external -gmp -hash -inifile -interbase -iodbc -java-external -kerberos -ldap-sasl -libedit -mcve -mhash -msql -mssql -oci8 (-oci8-instant-client) -odbc -pdo-external -pic -qdbm -recode -sapdb -sharedext -sharedmem (-solid) -suhosin (-sybase) (-sybase-ct) -sysvipc -tidy -wddx -xmlreader -xmlrpc -xmlwriter -xpm -yaz -zip-external" 

I compiled php-gtk without any flags. It compiles fine however the file [b]php_gtk.so [/b]never got installed into the directory. So as a result php -v outputs the following:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php5/lib/php/extensions/no-debug-zts-20060613/php_gtk2.so' - /usr/lib64/php5/lib/php/extensions/no-debug-zts-20060613/php_gtk2.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.2.1-pl3-gentoo (cli) (built: Mar 16 2007 12:21:28)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    with eAccelerator v0.9.5, Copyright (c) 2004-2006 eAccelerator, by eAccelerator

here is the emerge log-Notice the error line [b]cp: cannot stat `/var/tmp/portage/dev-php5/php-gtk-2.0.0_alpha/work/php_gtk2-default.so': No such file or directory[/b] not sure that may be the problem?:
>>> Emerging (1 of 1) dev-php5/php-gtk-2.0.0_alpha to /
 * Using dev-lang/php-5.2.1-r3
 *
 * Checking for required PHP feature(s) ...
>>> Unpacking source...
>>> Unpacking php-gtk-2.0.0alpha.tar.gz to /var/tmp/portage/dev-php5/php-gtk-2.0.0_alpha/work
 * Applying gtkmozembed.patch ...                                                                                                                   [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-php5/php-gtk-2.0.0_alpha/work/php-gtk-2.0.0alpha ...
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
....................
Libraries have been installed in:
   /var/tmp/portage/dev-php5/php-gtk-2.0.0_alpha/work/php-gtk-2.0.0alpha/modules

>>> Test phase [not enabled]: dev-php5/php-gtk-2.0.0_alpha

>>> Install php-gtk-2.0.0_alpha into /var/tmp/portage/dev-php5/php-gtk-2.0.0_alpha/image/ category dev-php5
[b]cp: cannot stat `/var/tmp/portage/dev-php5/php-gtk-2.0.0_alpha/work/php_gtk2-default.so': No such file or directory[/b]
 * Extension added to /etc/php/apache2-php5/ext/php_gtk2.ini
 * Extension added to /etc/php/cli-php5/ext/php_gtk2.ini
 * Extension added to /etc/php/cgi-php5/ext/php_gtk2.ini
>>> Completed installing php-gtk-2.0.0_alpha into /var/tmp/portage/dev-php5/php-gtk-2.0.0_alpha/image/
>>> Merging dev-php5/php-gtk-2.0.0_alpha to /
--- /etc/
--- /etc/php/
--- /etc/php/cgi-php5/
--- /etc/php/cgi-php5/ext/
>>> /etc/php/cgi-php5/ext/php_gtk2.ini
--- /etc/php/cgi-php5/ext-active/
>>> /etc/php/cgi-php5/ext-active/php_gtk2.ini -> /etc/php/cgi-php5/ext/php_gtk2.ini
--- /etc/php/apache2-php5/
--- /etc/php/apache2-php5/ext/
>>> /etc/php/apache2-php5/ext/php_gtk2.ini
--- /etc/php/apache2-php5/ext-active/
>>> /etc/php/apache2-php5/ext-active/php_gtk2.ini -> /etc/php/apache2-php5/ext/php_gtk2.ini
--- /etc/php/cli-php5/
--- /etc/php/cli-php5/ext/
>>> /etc/php/cli-php5/ext/php_gtk2.ini
--- /etc/php/cli-php5/ext-active/
>>> /etc/php/cli-php5/ext-active/php_gtk2.ini -> /etc/php/cli-php5/ext/php_gtk2.ini
--- /usr/
--- /usr/lib64/
--- /usr/lib64/php5/
--- /usr/lib64/php5/lib/
--- /usr/lib64/php5/lib/php/
--- /usr/lib64/php5/lib/php/extensions/
--- /usr/lib64/php5/lib/php/extensions/no-debug-zts-20060613/
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/dev-php5/
--- /usr/share/doc/dev-php5/php-gtk-2.0.0_alpha/
>>> /usr/share/doc/dev-php5/php-gtk-2.0.0_alpha/README.gz
>>> /usr/share/doc/dev-php5/php-gtk-2.0.0_alpha/TODO2.gz
>>> /usr/share/doc/dev-php5/php-gtk-2.0.0_alpha/NEWS.gz
>>> /usr/share/doc/dev-php5/php-gtk-2.0.0_alpha/INSTALL.gz
>>> /usr/share/doc/dev-php5/php-gtk-2.0.0_alpha/AUTHORS.gz
>>> /usr/share/doc/dev-php5/php-gtk-2.0.0_alpha/README.KNOWN-ISSUES.gz
>>> /usr/share/doc/dev-php5/php-gtk-2.0.0_alpha/ChangeLog.gz
>>> dev-php5/php-gtk-2.0.0_alpha merged.

Thanks.

Reproducible: Always

Steps to Reproduce:
1.emerge dev-php5/php-gtk (package.keywords ~amd64)
2.php -v
3.read output - missing shared object file
Comment 1 Anant Narayanan (RETIRED) gentoo-dev 2007-03-20 07:40:14 UTC
Thanks, fixed in CVS.
Comment 2 Zach 2007-03-20 19:27:33 UTC
Thanks for the quick fix on this, however a new issue has been identified. Although php_gtk.so is created in the correct directory structure, calling it using "extension=php_gtk2.so" causes php_cli to not respond?

for example php -v at command prompt gives no output. However disabling the extension resumes normal operation. 

Sorry I am not sure if this requires a new bug, since it appears related to the existing "resolved" bug I have placed it as reopen. 

Also I find no output in any logs pointing to the issue. If there is a procedure or command please let me know and I can try to gather more information.

Thanks again.
Comment 3 Zach 2007-03-20 20:24:28 UTC
I re-emerged php dev-php5/eaccelerator dev-php5/php-gtk. All is fine and working as expected. Please disregard my comment above.

thanks again.