New PECL Module: kpasswd
| From: | Tim Gustafson | Date: | Fri, 03 Dec 2010 18:29:13 +0000 |
| Subject: | New PECL Module: kpasswd | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-7859@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to make a new PECL module that will allow users to change their Kerberos passwords
from inside of PHP. The kadm5 module seems to not be maintained anymore, and doesn't seem to
provide the "krb5_change_password" function anyhow.
I'm having a bit of trouble when it comes to running "./configure". I'm
attaching my module so far. I can run "phpize" just fine, but I get the following
warnings:
----------
tjg@host: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
configure.in:3: warning: prefer named diversions
configure.in:3: warning: prefer named diversions
----------
Then when I run ./configure, I get:
----------
tjg@host: ./configure
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... yes
checking build system type... amd64-unknown-freebsd8.1
checking host system type... amd64-unknown-freebsd8.1
checking target system type... amd64-unknown-freebsd8.1
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext
-I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/20090626
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for krb5 support... yes, shared
checking for krb5 files in default path... found in /usr
checking for krb5_change_password in -lkrb5... no
configure: error: libkrb5 not found
----------
I know for a fact that the library does exist, and I can compile a standard C program against the
library without any problem, and the C program runs as expected. I suspect that I'm doing
something wrong in config.m4, but I can't seem to nail down what it is.
Any help is greatly appreciated. Thanks!
Tim Gustafson
Baskin School of Engineering
UC Santa Cruz
tjg@soe.ucsc.edu
831-459-5354
Attachment: [application/x-compressed-tar] kpasswd.tgz
Attachment: [application/x-compressed-tar] kpasswd.tgz