Edit report at https://bugs.php.net/bug.php?id=51625&edit=1

 ID:                 51625
 Comment by:         mike dot mackintosh at angrystatic dot com
 Reported by:        Eduards dot Samersovs at inbox dot lv
 Summary:            php: threads.c:321: krb5int_key_register: Assertion
                     `keynum >= 0 && keynum < K5
 Status:             Assigned
 Type:               Bug
 Package:            OCI8 related
 Operating System:   Ubuntu 9.10
 PHP Version:        5.3.2
 Assigned To:        sixd
 Block user comment: N
 Private report:     N

 New Comment:

I have duplicated this currently on versions including 5.3.6 and on Debian 
Squeeze, CentOS6, and Ubuntu 11.1.

I've done the following steps to reproduce the issue:

unzip instantclient-basic-linux32-11.2.0.2.0.zip
unzip instantclient-sdk-linux32-11.2.0.2.0.zip
mv instantclient_11_2/sdk/ instantclient_11_2/
sudo mkdir /usr/local/oracle
mv instantclient_11_2/ /usr/local/oracle/instantclient
sudo mv instantclient_11_2/ /usr/local/oracle/instantclient
cd /usr/local/oracle/instantclient/
sudo ln -s /usr/local/oracle/instantclient/libclntsh.so.11.1 libclntsh.so
sudo ln -s /usr/local/oracle/instantclient/libocci.so.11.1 libocci.so.11.1
sudo ln -s /usr/local/oracle/instantclient/libocci.so.11.1 libocci.so
sudo ln -s /usr/local/oracle/instantclient/*.so /usr/lib
mkdir lib
cd lib/
sudo ln -s /usr/local/oracle/instantclient/*.so 
/usr/local/oracle/instantclient/lib


My configure string:

./configure  '--prefix=/usr/local/php-5.3.6' '--enable-cli' '--disable-debug' 
'--disable-rpath' '--disable-static' '--with-pic' '--with-openssl=/usr' 
'--enable-bcmath' '--with-bz2' '--enable-calendar' '--enable-ctype' 
'--with-curl' '--with-zlib-dir=/usr' '--with-xsl' '--enable-exif' 
'--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' 
'--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-freetype-dir=/usr' 
'--with-gettext' '--with-iconv' '--with-imap' '--with-kerberos=/usr' 
'--with-imap-ssl=/usr' '--enable-mbstring' '--with-mcrypt' '--with-mhash' 
'--with-mime-magic' '--with-mysql=/usr/local/mysql-5.1.57' 
'--with-pcre-regex=/usr' '--with-pspell=/usr' '--enable-sockets' 
'--enable-wddx' '--with-xmlrpc' '--with-zlib=/usr' '--with-pear' 
'--with-layout=GNU' '--with-ldap' '--enable-pdo' '--enable-soap' 
'--with-apxs2=/usr/local/apache-2.2.19/bin/apxs' '--enable-pcntl' 
'--enable-mailparse' '--enable-zip' '--with-zip=/usr' '--with-bz2=/usr' 
'--with-config-file-path=/etc' 
'--with-config-file-scan-dir=/usr/local/php-5.3.6/etc' 
'--with-pdo-mysql=/usr/local/mysql-5.1.57' '--with-openssl=/usr' '--enable-zip' 
'--with-snmp' '--with-mysqli=/usr/local/mysql-5.1.57/bin/mysql_config' 
'--with-phar' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' 
'--with-tidy'  --with-oci8=instantclient,/usr/local/oracle/instantclient 
--with-pdo-oci=instantclient,/usr/local/oracle/instantclient,11.2.0.2

make

Ran into an issue where PHP tried to compile LDAP from the Oracle SDK, removed 
sdk/ldap.h

re-ran the above, and received the error:
php: threads.c:321: krb5int_key_register: Assertion `keynum >= 0 && keynum < 
K5_KEY_MAX' failed.


Removed the --with-kerberos option,and received:

configure: error: This c-client library is built with Kerberos support.

      Add --with-kerberos to your configure line. Check config.log for details.

Even with libc-client2007e for imap, i continue to receive the above.


I only receive an issue when compiling in oci support using the 11.x family

Removing all IMAP from the configure fixed the issue.


Previous Comments:
------------------------------------------------------------------------
[2011-02-21 05:21:13] thinice at gmail dot com

I resolved the issue by manually downloading libc-client2007e, Updating 
'--with-imap' config str to point to the libc-client2007e dir, 
(--with-imap=/path/to/libc-client2007e --with-imap-ssl). This allowed me to 
drop the '--with-kerberos' directive and elminating the error.

------------------------------------------------------------------------
[2011-02-21 01:38:02] thinice at gmail dot com

Using:

./configure --prefix=/usr --with-config-file-path=/etc/php5 
--with-config-file-scan-dir=/etc/php5/apache2/conf.d 
--with-exec-dir=/usr/lib/php5/libexec --mandir=/usr/share/man --enable-cli 
--enable-sysvsem --enable-mbstring --enable-sockets --enable-soap 
--with-apxs2=/usr/bin/apxs2 --with-iconv --with-curl --with-zlib --with-openssl 
--with-ldap --with-mysql --with-mysqli --with-tidy --with-xmlrpc 
--with-oci8=instantclient,/opt/oracle/instantclient_11_1 --with-gd 
--enable-gd-native-ttf --with-jpeg-dir=/usr --with-xpm-dir=/usr/X11R6 
--with-png-dir=/usr --with-freetype-dir=/usr --with-t1lib=/usr --with-mssql 
--enable-soap --with-imap --with-imap-ssl --with-kerberos --with-xsl 
--with-pspell --disable-phar


Console snip:
--------------
Build complete.
Don't forget to run 'make test'.

mhd-www:~/php-5.3.5# make install
Installing PHP SAPI module:       apache2handler
/usr/share/apache2/build/instdso.sh 
SH_LIBTOOL='/usr/share/apr-1.0/build/libtool' libphp5.la 
/usr/lib/apache2/modules
/usr/share/apr-1.0/build/libtool --mode=install cp libphp5.la 
/usr/lib/apache2/modules/
libtool: install: cp .libs/libphp5.so /usr/lib/apache2/modules/libphp5.so
libtool: install: cp .libs/libphp5.lai /usr/lib/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish 
/root/php-5.3.5/libs'
chmod 644 /usr/lib/apache2/modules/libphp5.so
[preparing module `php5' in /etc/apache2/mods-available/php5.load]
Module php5 already enabled
Installing PHP CLI binary:        /usr/bin/
Installing PHP CLI man page:      /usr/share/man/man1/
Installing build environment:     /usr/lib/php/build/
Installing header files:          /usr/include/php/
Installing helper programs:       /usr/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/share/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/lib/php/
php: threads.c:321: krb5int_key_register: Assertion `keynum >= 0 && keynum < 
K5_KEY_MAX' failed.
Aborted
make[1]: *** [install-pear-installer] Error 134
make: *** [install-pear] Error 2

------------------------------------------------------------------------
[2011-02-20 23:36:57] thinice at gmail dot com

Another side note, I removed '--with-imap --with-imap-ssl --with-kerberos' from 
my config and compile+install was successful. This isn't completely oci8's 
fault...

Working config - changed from my post above: 

./configure --prefix=/usr --with-config-file-path=/etc/php5 
--with-config-file-scan-dir=/etc/php5/apache2/conf.d 
--with-exec-dir=/usr/lib/php5/libexec --mandir=/usr/share/man --enable-cli 
--enable-sysvsem --enable-mbstring --enable-sockets --enable-soap 
--with-apxs2=/usr/bin/apxs2 --with-iconv --with-curl --with-zlib --with-openssl 
--with-ldap --with-mysql --with-mysqli --with-tidy --with-xmlrpc 
--with-oci8=instantclient,/opt/oracle/instantclient_11_1 --with-gd 
--enable-gd-native-ttf --with-jpeg-dir=/usr --with-xpm-dir=/usr/X11R6 
--with-png-dir=/usr --with-freetype-dir=/usr --with-t1lib=/usr --with-mssql 
--enable-soap --with-xsl --with-pspell

------------------------------------------------------------------------
[2011-02-20 23:31:22] thinice at gmail dot com

A possible solution: http://ubuntuforums.org/showthread.php?t=1434835

I will try this and add a remark.

------------------------------------------------------------------------
[2011-02-20 23:28:09] thinice at gmail dot com

This happened to me after an upgrade from Debian Lenny to Debian Squeeze. 
Attempted a fresh compile and got identical error. 

php 5.3.5 with oci8 instantclient. 

./configure --prefix=/usr --with-config-file-path=/etc/php5 
--with-config-file-scan-dir=/etc/php5/apache2/conf.d 
--with-exec-dir=/usr/lib/php5/libexec --mandir=/usr/share/man --enable-cli 
--enable-sysvsem --enable-mbstring --enable-sockets --enable-soap 
--with-apxs2=/usr/bin/apxs2 --with-iconv --with-curl --with-zlib --with-openssl 
--with-ldap --with-mysql --with-mysqli --with-tidy --with-xmlrpc 
--with-oci8=instantclient,/opt/oracle/instantclient_11_1 --with-gd 
--enable-gd-native-ttf --with-jpeg-dir=/usr --with-xpm-dir=/usr/X11R6 
--with-png-dir=/usr --with-freetype-dir=/usr --with-t1lib=/usr --with-mssql 
--enable-soap --with-imap --with-imap-ssl --with-kerberos --with-xsl 
--with-pspell

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=51625


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=51625&edit=1

Reply via email to