Click to See Complete Forum and Search --> : No Working Pam Support for PHP4?


Anon
06-28-2002, 06:09 PM
Does anyone know of an alternative PAM module to the netexpress.net one, which sadly doesn't compile at all? Or does anyone know how to get that module to compile into a php that is new enough to be usable?

I'm using php 4.2.1 and and I have tried all version of the netexpress.net module. I get this error:

/bin/sh /usr/src/php-4.2.1/libtool --silent --mode=compile gcc -I. -I/usr/src/php-4.2.1/ext/pam -I/usr/src/php-4.2.1/main -I/usr/src/php-4.2.1 -I/usr/local/apache/include -I/usr/src/php-4.2.1/Zend -I/usr/src/php-4.2.1/ext/mysql/libmysql -I/usr/src/php-4.2.1/ext/xml/expat -DLINUX=22 -DMOD_SSL=208110 -DUSE_HSREGEX -DEAPI -I/usr/src/php-4.2.1/TSRM -g -O2 -prefer-pic -c pam.c && touch pam.slo
pam.c:112: warning: initialization makes integer from pointer without a cast
pam.c:112: initializer element is not computable at load time
pam.c:112: (near initialization for `pam_module_entry.size')
pam.c:113: warning: initialization makes integer from pointer without a cast
pam.c:115: warning: initialization makes integer from pointer without a cast
pam.c:115: initializer element is not computable at load time
pam.c:115: (near initialization for `pam_module_entry.zend_debug')
pam.c:116: warning: initialization makes integer from pointer without a cast
pam.c:117: warning: initialization from incompatible pointer type
pam.c:118: warning: initialization from incompatible pointer type
pam.c:119: warning: initialization from incompatible pointer type
pam.c: In function `our_conv':
pam.c:835: warning: passing arg 2 of `add_next_index_string' discards qualifiers from pointer target type
make[3]: *** [pam.slo] Error 1
make[3]: Leaving directory `/usr/src/php-4.2.1/ext/pam'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php-4.2.1/ext/pam'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php-4.2.1/ext'
make: *** [all-recursive] Error 1

Anon
06-28-2002, 11:43 PM
I got it. made a patch against pam.c... here goes:

111a112,114
> #if ZEND_MODULE_API_NO >= 20010901
> STANDARD_MODULE_HEADER,
> #endif
846,847c849
< if (call_user_function_ex( CG(function_table), NULL,
< &php_conv_func, &conv_retval, 2, args, 0 ) != SUCCESS)
---
> if (call_user_function_ex( CG(function_table), NULL, &php_conv_func, &conv_retval, 2, args, 0, NULL ) != SUCCESS)


have fun!

ken