lists.arthurdejong.org
RSS feed

Re: Erros Compiling nss-pam-ldapd on Solaris 10/x86

[Date Prev][Date Next] [Thread Prev][Thread Next]

Re: Erros Compiling nss-pam-ldapd on Solaris 10/x86



On Fri, 2010-10-01 at 14:31 +0200, Peter Ohlerich wrote:
> gcc -DHAVE_CONFIG_H -I. -I..  -I..   -fPIC  -MT pam_get_authtok.o -MD -MP -MF 
> .deps/pam_get_authtok.Tpo -c -o pam_get_authtok.o pam_get_authtok.c
> pam_get_authtok.c: In function `pam_get_authtok':
> pam_get_authtok.c:55: warning: passing arg 3 of `pam_get_item' from 
> incompatible pointer type
> pam_get_authtok.c:64: warning: passing arg 3 of `pam_get_item' from 
> incompatible pointer type
> pam_get_authtok.c:100: warning: passing arg 3 of `pam_get_item' from 
> incompatible pointer type

These are harmless (Linux has an extra const and gcc can't auto-cast
(char **) to (const char **).

> gcc -DHAVE_CONFIG_H -I. -I..  -I..   -fPIC  -MT ldap_passwd_s.o -MD -MP -MF 
> .deps/ldap_passwd_s.Tpo -c -o ldap_passwd_s.o ldap_passwd_s.c
> ldap_passwd_s.c:61: error: conflicting types for 'ldap_extended_operation_s'
> /usr/include/ldap.h:622: error: previous declaration of 
> 'ldap_extended_operation_s' was here
> ldap_passwd_s.c:61: error: conflicting types for 'ldap_extended_operation_s'
> /usr/include/ldap.h:622: error: previous declaration of 
> 'ldap_extended_operation_s' was here

This was meant to be fixed. Is your config.h regenerated? Sometimes I
have to do "make Makefile" or "make config.h" followed by "make clean"
before some changes from the configure script are available.

> gcc -DHAVE_CONFIG_H -I. -I..  -I..  -D_REENTRANT -pthreads  -MT myldap.o -MD 
> -MP -MF .deps/myldap.Tpo -c -o myldap.o myldap.c
> myldap.c: In function `do_sasl_interact':
> myldap.c:311: error: `sasl_interact_t' undeclared (first use in this function)
> myldap.c:311: error: (Each undeclared identifier is reported only once
> myldap.c:311: error: for each function it appears in.)
> myldap.c:311: error: `interact' undeclared (first use in this function)
> myldap.c:312: error: `SASL_CB_LIST_END' undeclared (first use in this 
> function)
> myldap.c:316: error: `SASL_CB_GETREALM' undeclared (first use in this 
> function)
> myldap.c:326: error: `SASL_CB_AUTHNAME' undeclared (first use in this 
> function)
> myldap.c:336: error: `SASL_CB_USER' undeclared (first use in this function)
> myldap.c:346: error: `SASL_CB_PASS' undeclared (first use in this function)
> myldap.c: In function `do_bind':
> myldap.c:419: error: `rc' undeclared (first use in this function)
> myldap.c:429: error: `LDAP_SASL_QUIET' undeclared (first use in this function)
> myldap.c: In function `do_set_options':
> myldap.c:501: warning: passing arg 2 of `ldap_set_rebind_proc' from 
> incompatible pointer type
> gmake[2]: *** [myldap.o] Error 1

Can you see if the attached patch fixes things? myldap.c should be
including the proper SASL headers. You could also pass --disable-sasl to
work around these errors.

Thanks for providing the feedback.

Btw, you could also give the -solaris branch a try [0]. It has the
changes provided by Ted Cheng and should build a functional NSS module
but we're in the process of reorganising things so it may not work all
the time.

[0] http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris/
-- 
-- arthur - arthur@arthurdejong.org - http://arthurdejong.org --

Attachment: nss-pam-ldapd-fix-sasl-h.patch
Description: Text Data

--
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users