Bug 3373 - Winbind fails to build on Solaris 2.6/7
Summary: Winbind fails to build on Solaris 2.6/7
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: winbind (show other bugs)
Version: 3.0.21a
Hardware: Sparc Solaris
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-04 11:31 UTC by Albert Chin (temp failure)
Modified: 2016-11-14 21:36 UTC (History)
1 user (show)

See Also:


Attachments
Proposed patch (2.16 KB, patch)
2006-01-04 11:31 UTC, Albert Chin (temp failure)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Albert Chin (temp failure) 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 Albert Chin (temp failure) 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!

Comment 3 Björn Jacke 2016-11-14 21:36:21 UTC
this bug was fixed long time ago