[Samba] Re: SAMBA 3.0.21 - Compile error on SOLARIS 7 & SOLARIS
2.5.1
Pierre Lebrun
ple001 at artic.fr
Tue Jan 31 16:26:36 GMT 2006
Solved by 3.0.21b
Many thanks to the Samba Team
Pierre
Pierre Lebrun a écrit :
> Hi,
>
> Compilation fails on Solaris 7 + GCC and Solaris 2.5.1 + SUN CC.
> Each time the problem is on winbind. I have no idea about what's going
> wrong. I didn't have any trouble with SAMBA 3.0.21rc1.
>
> Can you help me ?
>
> Thank you,
>
> Pierre
>
> ---------
> SOLARIS 7
> ---------
> Configure
>
> ./configure --with-acl-support --with-ldap=no --disable-cups
> --enable-static=yes --with-included-popt
>
> --------
> $ gcc -v
> Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0.3/specs
> Configured with: ../configure --with-as=/usr/local/bin/as
> --with-ld=/usr/local/bin/ld
> Thread model: posix
> gcc version 3.0.3
>
> -----------------------------
> ...
> Compiling utils/eventlogadm.c
> Linking bin/eventlogadm
> Compiling nsswitch/wbinfo.c
> Linking bin/wbinfo
> Compiling nsswitch/wb_common.c with -fPIC
> Compiling lib/replace1.c with -fPIC
> Compiling nsswitch/winbind_nss_solaris.c with -fPIC
> nsswitch/winbind_nss_solaris.c: In function `parse_response':
> nsswitch/winbind_nss_solaris.c:394: sizeof applied to an incomplete type
> nsswitch/winbind_nss_solaris.c:395: sizeof applied to an incomplete type
> nsswitch/winbind_nss_solaris.c:397: arithmetic on pointer to an
> incomplete type
> nsswitch/winbind_nss_solaris.c:421: arithmetic on pointer to an
> incomplete type
> nsswitch/winbind_nss_solaris.c:421: dereferencing pointer to incomplete
> type
> nsswitch/winbind_nss_solaris.c:423: `AF_INET6' undeclared (first use in
> this function)
> nsswitch/winbind_nss_solaris.c:423: (Each undeclared identifier is
> reported only once
> nsswitch/winbind_nss_solaris.c:423: for each function it appears in.)
> nsswitch/winbind_nss_solaris.c:423: arithmetic on pointer to an
> incomplete type
> nsswitch/winbind_nss_solaris.c:423: dereferencing pointer to incomplete
> type
> nsswitch/winbind_nss_solaris.c:433: arithmetic on pointer to an
> incomplete type
> nsswitch/winbind_nss_solaris.c:433: dereferencing pointer to incomplete
> type
> nsswitch/winbind_nss_solaris.c: In function
> `_nss_winbind_ipnodes_getbyname':
> nsswitch/winbind_nss_solaris.c:491: `AF_INET6' undeclared (first use in
> this function)
> nsswitch/winbind_nss_solaris.c: In function `_nss_winbind_hosts_getbyaddr':
> nsswitch/winbind_nss_solaris.c:540: `AF_INET6' undeclared (first use in
> this function)
> nsswitch/winbind_nss_solaris.c:546: `INET6_ADDRSTRLEN' undeclared (first
> use in this function)
> nsswitch/winbind_nss_solaris.c:546: warning: assignment makes pointer
> from integer without a cast
> make: *** [nsswitch/winbind_nss_solaris.po] Error 1
>
> -------------
> SOLARIS 2.5.1
> -------------
> Configure
>
> ./configure --with-acl-support --with-ldap=no --disable-cups
> --enable-static=yes --with-included-popt
>
> --------
> $ cc -V
> cc: WorkShop Compilers 5.0 98/12/15 C 5.0
>
> --------
> ...
> Compiling lib/hmacmd5.c
> Compiling lib/arc4.c
> Compiling lib/iconv.c
> "lib/iconv.c", line 139: warning: argument #2 is incompatible with
> prototype:
> prototype: pointer to pointer to const char :
> "/usr/local/include/iconv.h", line 82
> argument : pointer to pointer to char
> Compiling nsswitch/wb_client.c
> Compiling nsswitch/wb_common.c
> "/usr/include/netdb.h", line 195: warning: dubious tag declaration:
> struct sockaddr_in
> "nsswitch/wb_common.c", line 238: undefined symbol: socklen_t
> "nsswitch/wb_common.c", line 238: syntax error before or at: errnosize
> "nsswitch/wb_common.c", line 253: undefined symbol: errnosize
> "nsswitch/wb_common.c", line 256: warning: argument #4 is incompatible
> with prototype:
> prototype: pointer to char : "/usr/include/sys/socket.h", line 299
> argument : pointer to int
> "nsswitch/wb_common.c", line 284: cannot recover from previous errors
> cc: acomp failed for nsswitch/wb_common.c
> *** Error code 2
> make: Fatal error: Command failed for target `nsswitch/wb_common.o'
>
More information about the samba
mailing list