[Samba] unable to build pam_winbind on Solaris 9

Robert M. Martel bob at urban.csuohio.edu
Wed Jun 15 16:01:00 GMT 2005


Greetings,

Still trying to get Samba 3.0.15pre2 built on a Solaris 9 box with PAM 
support.  I am using gcc 3.3.2 and I have openldap-2.2.24, krb5-1.4, and
Cyrus SASL 2.1.20 installed.

I have found other posting by people with problems building on Solaris 
as well as asking about the "_pam_macros.h" file that seems to be 
missing on Solaris.  Posting about problems, but not with answers.

Can anyone that had gotten pam_winbind to build on Solaris shed any light?


I have the following flags:
LDFLAGS="-L/opt/local/openldap/lib -Wl,-R/opt/local/openldap/lib 
-L/opt/local/ossl/lib -R/opt/local/ossl/lib -L/usr/lib/security 
-R/usr/lib/security"
CPPFLAGS="-I/opt/local/openldap/include -I/usr/include/security"


and the following configure:
./configure --prefix=/opt/local/samba --with-automount --with-profile 
--with-acl-support --with-utmp --with-winbind --with-ads --with-ldap 
--with-krb5=/opt/local/kerberos5 --with-pam



The make errors out with:

...
Compiling nsswitch/pam_winbind.c with -fPIC
nsswitch/pam_winbind.c: In function `converse':
nsswitch/pam_winbind.c:71: warning: passing arg 3 of `pam_get_item' from 
incompatible pointer type
nsswitch/pam_winbind.c:74: warning: passing arg 2 of pointer to function 
from incompatible pointer type
nsswitch/pam_winbind.c: In function `_make_remark':
nsswitch/pam_winbind.c:89: warning: assignment discards qualifiers from 
pointer target type
nsswitch/pam_winbind.c: In function `_pam_delete':
nsswitch/pam_winbind.c:292: error: parse error before "void"
nsswitch/pam_winbind.c: In function `_winbind_read_password':
nsswitch/pam_winbind.c:329: warning: passing arg 3 of `pam_get_item' 
from incompatible pointer type
nsswitch/pam_winbind.c:362: warning: assignment discards qualifiers from 
pointer target type
nsswitch/pam_winbind.c:370: warning: assignment discards qualifiers from 
pointer target type
nsswitch/pam_winbind.c:376: warning: assignment discards qualifiers from 
pointer target type
nsswitch/pam_winbind.c:434: warning: passing arg 3 of `pam_get_item' 
from incompatible pointer type
nsswitch/pam_winbind.c: In function `pam_sm_authenticate':
nsswitch/pam_winbind.c:462: warning: passing arg 2 of `pam_get_user' 
from incompatible pointer type
nsswitch/pam_winbind.c: In function `pam_sm_acct_mgmt':
nsswitch/pam_winbind.c:534: warning: passing arg 2 of `pam_get_user' 
from incompatible pointer type
nsswitch/pam_winbind.c: In function `pam_sm_chauthtok':
nsswitch/pam_winbind.c:612: warning: passing arg 2 of `pam_get_user' 
from incompatible pointer type
nsswitch/pam_winbind.c:689: warning: passing arg 3 of `pam_get_item' 
from incompatible pointer type
make: *** [nsswitch/pam_winbind.po] Error 1

TIA
-Bob
-- 
***********************************************************************
Bob Martel,System Administrator  I met someone who looks a lot like you
Levin College of Urban Affairs   She does the things you do
Cleveland State University       But she is an IBM
(216) 687-2214
bob at urban.csuohio.edu                                -Jeff Lynne
***********************************************************************


More information about the samba mailing list