Bug 5784 - samba 3.3s PAM changes fail to build on solaris
samba 3.3s PAM changes fail to build on solaris
Status: RESOLVED FIXED
Product: Samba 3.2
Classification: Unclassified
Component: Winbind
unspecified
x86 Solaris
: P3 normal
: ---
Assigned To: Guenther Deschner
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-23 11:56 UTC by mchugh19@yahoo.com
Modified: 2008-09-24 08:49 UTC (History)
0 users

See Also:


Attachments
fix pam_winbind diff (925 bytes, patch)
2008-09-23 20:44 UTC, Guenther Deschner
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description mchugh19@yahoo.com 2008-09-23 11:56:23 UTC
Testing out samba 3.3 from git, pam_winbind fails to compile. Commenting out the undeclared PAM lines, allows compilation to continue.

Compiling nsswitch/pam_winbind.c
nsswitch/pam_winbind.c: In function '_pam_error_code_str':
nsswitch/pam_winbind.c:74: error: 'PAM_MODULE_UNKNOWN' undeclared (first use in
this function)
nsswitch/pam_winbind.c:74: error: (Each undeclared identifier is reported only
once
nsswitch/pam_winbind.c:74: error: for each function it appears in.)
nsswitch/pam_winbind.c:76: error: 'PAM_BAD_ITEM' undeclared (first use in this
function)
nsswitch/pam_winbind.c:78: error: 'PAM_CONV_AGAIN' undeclared (first use in
this function)
nsswitch/pam_winbind.c:80: error: 'PAM_INCOMPLETE' undeclared (first use in
this function)
nsswitch/pam_winbind.c: In function '_pam_get_item':
nsswitch/pam_winbind.c:115: warning: passing argument 3 of 'pam_get_item' from
incompatible pointer type
nsswitch/pam_winbind.c: In function '_pam_log_state_datum':
nsswitch/pam_winbind.c:251: warning: passing argument 3 of 'pam_get_item' from
incompatible pointer type
nsswitch/pam_winbind.c: In function 'converse':
nsswitch/pam_winbind.c:575: warning: passing argument 2 of 'conv->conv' from
incompatible pointer type
nsswitch/pam_winbind.c: In function 'pam_sm_authenticate':
nsswitch/pam_winbind.c:2039: warning: passing argument 2 of 'pam_get_user' from
incompatible pointer type
nsswitch/pam_winbind.c: In function 'pam_sm_acct_mgmt':
nsswitch/pam_winbind.c:2242: warning: passing argument 2 of 'pam_get_user' from
incompatible pointer type
nsswitch/pam_winbind.c: In function 'pam_sm_close_session':
nsswitch/pam_winbind.c:2376: warning: passing argument 2 of 'pam_get_user' from
incompatible pointer type
nsswitch/pam_winbind.c: In function 'pam_sm_chauthtok':
nsswitch/pam_winbind.c:2518: warning: passing argument 2 of 'pam_get_user' from
incompatible pointer type
The following command failed:
gcc -I/opt/csw/include -O -I. -I/usr/local/src/samba3.3/source3 
-I/usr/local/src/samba3.3/source3/iniparser/src -Iinclude -I./include  -I. -I.
-I./../lib/replace -I./../lib/talloc -I./../lib/tdb/include -I./libaddns
-I./librpc -DHAVE_CONFIG_H  -I/opt/csw/include -I/opt/csw/include
-D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Iinclude -I./include
-I. -I. -I./../lib/replace -I./../lib/talloc -I./../lib/tdb/include
-I./libaddns -I./librpc -I./../lib/popt -DLDAP_DEPRECATED -DSUNOS5 -I/include 
-I/usr/local/src/samba3.3/source3/lib -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIC
-c nsswitch/pam_winbind.c -o nsswitch/pam_winbind.o
gmake: *** [nsswitch/pam_winbind.o] Error 1
Comment 1 Guenther Deschner 2008-09-23 20:44:39 UTC
Created attachment 3620 [details]
fix pam_winbind diff

This should be fixed in recent git, can you try the attached patch?
Comment 2 mchugh19@yahoo.com 2008-09-24 08:49:54 UTC
Updated to today's git checkout. Seems to have fixed it. Thanks!