Bug 3373 - Winbind fails to build on Solaris 2.6/7
Winbind fails to build on Solaris 2.6/7
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: winbind
3.0.21a
Sparc Solaris
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-01-04 11:31 UTC by The Written Word
Modified: 2006-02-28 13:40 UTC (History)
1 user (show)

See Also:


Attachments
Proposed patch (2.16 KB, patch)
2006-01-04 11:31 UTC, The Written Word
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description The Written Word 2006-01-04 11:31:06 UTC
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
Comment 1 The Written Word 2006-01-04 11:31:41 UTC
Created attachment 1641 [details]
Proposed patch
Comment 2 Brian Dudek 2006-02-28 13:40:38 UTC
(In reply to comment #1)
> Created an attachment (id=1641) [edit]
> Proposed patch
> 

Same issue with 3.0.21c - the patch works!