Seems nsswitch/winbind_nss_solaris.c in 3.0.21 assumes IPV6 which Solaris 2.6/7 do not have: Compiling nsswitch/winbind_nss_solaris.c with -KPIC cc -I. -I/opt/build/samba-3.0.21a/source -I/opt/TWWfsw/krb5141/include -mr -Qn -xO2 -xtarget=generic -D_SAMBA_BUILD_ -I./popt -Iinclude -I/opt/build/samba-3.0.21a/source/include -I/opt/build/samba-3.0.21a/source/ubiqx -I/opt/build/samba-3.0.21a/source/tdb -I/opt/build/samba-3.0.21a/source/smbwrapper -I. -I/opt/TWWfsw/krb5141/include -I/opt/TWWfsw/readline50/include -I/opt/TWWfsw/readline50/include -I/opt/TWWfsw/openldap2229/include -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/opt/TWWfsw/libiconv19/include -DLDAP_DEPRECATED -DSUNOS5 -I/opt/build/samba-3.0.21a/source -D_SAMBA_BUILD_ -KPIC -c nsswitch/winbind_nss_solaris.c -o nsswitch/winbind_nss_solaris.po.o "nsswitch/winbind_nss_solaris.c", line 286: warning: implicit function declaration: _nss_winbind_initgroups_dyn "nsswitch/winbind_nss_solaris.c", line 394: incomplete struct/union/enum in6_addr: sizeof() "nsswitch/winbind_nss_solaris.c", line 395: incomplete struct/union/enum in6_addr: sizeof() "nsswitch/winbind_nss_solaris.c", line 397: cannot do pointer arithmetic on operand of unknown size "nsswitch/winbind_nss_solaris.c", line 421: cannot do pointer arithmetic on operand of unknown size "nsswitch/winbind_nss_solaris.c", line 423: undefined symbol: AF_INET6 "nsswitch/winbind_nss_solaris.c", line 423: cannot do pointer arithmetic on operand of unknown size "nsswitch/winbind_nss_solaris.c", line 433: warning: implicit function declaration: IN6_INADDR_TO_V4MAPPED "nsswitch/winbind_nss_solaris.c", line 433: cannot do pointer arithmetic on operand of unknown size "nsswitch/winbind_nss_solaris.c", line 491: undefined symbol: AF_INET6 "nsswitch/winbind_nss_solaris.c", line 540: undefined symbol: AF_INET6 "nsswitch/winbind_nss_solaris.c", line 545: warning: implicit function declaration: inet_ntop "nsswitch/winbind_nss_solaris.c", line 546: undefined symbol: INET6_ADDRSTRLEN "nsswitch/winbind_nss_solaris.c", line 546: warning: improper pointer/integer combination: op "=" cc: acomp failed for nsswitch/winbind_nss_solaris.c gmake: *** [nsswitch/winbind_nss_solaris.po.o] Error 2
Created attachment 1641 [details] Proposed patch
(In reply to comment #1) > Created an attachment (id=1641) [edit] > Proposed patch > Same issue with 3.0.21c - the patch works!
this bug was fixed long time ago