[Samba] Samba 2.2.4 make fails on Solaris 8 (Ultra Sparc III) using Sun Forte 6-update 2 compilers

Schmeling, Bernd Bernd.Schmeling at ish.com
Thu Jul 11 01:13:02 GMT 2002


Hi,

two weeks before, i had the same warnings, but no fatal errors and i got the
following answer von Gerald Carter:

> These are const warnings.  Ignore them for now.
> (not that we don't care about them, but you should be ok).


Your compiler wants to compile nsswitch/wb_common.c with -Kpic. On Solaris
it has to be compiled with the option -fPic. Normaly the make-script looks
for the OS and uses the right option. You should have a look to the
make-script.

Bernd


> -----Original Message-----
> From: murali at epiphany.com [mailto:murali at epiphany.com]
> Sent: Wednesday, July 10, 2002 8:15 PM
> To: samba at samba.org
> Subject: [Samba] Samba 2.2.4 make fails on Solaris 8 (Ultra Sparc III)
> using Sun Forte 6-update 2 compilers
> 
> 
> 
> Greetings!
> 
> During the Samba 2.2.4 make (using Sun WorkShop 6 update 2 
> C/C++ 5.3)on Sun
> Fire 880
> running Solaris 8, I get the following error:
> 
> 
> Any pointers or help would be very much appreciated..
> 
> Thanks,
> -Murali
>  
> {root}69: make
> Using FLAGS =  -O -D__EXTENSIONS__ -xtarget=ultra -xarch=v9b -I./popt
> -Iinclude -I./inc
> FILE_OFFSET_BITS=64 -DLOGFILEBASE="/usr/local/samba/var"
> -DCONFIGFILE="/usr/local/samba
> hosts" -DSWATDIR="/usr/local/samba/swat" 
> -DSBINDIR="/usr/local/samba/bin"
> -DLOCKDIR="/u
> amba/lib/codepages" -DDRIVERFILE="/usr/local/samba/lib/printers.def"
> -DBINDIR="/usr/loc
> DLIBDIR="/usr/local/samba/lib" -DHAVE_INCLUDES_H
> -DPASSWD_PROGRAM="/bin/passwd" -DSMB_P
> _PASSWD_FILE="/usr/local/samba/private/smbpasswd.tdb"
> Using FLAGS32 =  -O -D__EXTENSIONS__ -xtarget=ultra 
> -xarch=v9b -I./popt
> -Iinclude -I./i
> D_FILE_OFFSET_BITS=64 -DLOGFILEBASE="/usr/local/samba/var"
> -DCONFIGFILE="/usr/local/sam
> lmhosts" -DSWATDIR="/usr/local/samba/swat" 
> -DSBINDIR="/usr/local/samba/bin"
> -DLOCKDIR="
> /samba/lib/codepages" -DDRIVERFILE="/usr/local/samba/lib/printers.def"
> -DBINDIR="/usr/l
>  -DLIBDIR="/usr/local/samba/lib" -DHAVE_INCLUDES_H
> -DPASSWD_PROGRAM="/bin/passwd" -DSMB
> DB_PASSWD_FILE="/usr/local/samba/private/smbpasswd.tdb"
> Using LIBS = -lsec -lgen -lsocket -lnsl  -ldl
> Compiling nsswitch/winbind_nss.c with -Kpic
> "nsswitch/winbind_nss.c", line 859: warning: argument #4 is 
> incompatible
> with prototype
>         prototype: pointer to int : "nsswitch/winbind_nss.c", line 593
>         argument : pointer to unsigned long
> "nsswitch/winbind_nss.c", line 909: warning: argument #4 is 
> incompatible
> with prototype
>         prototype: pointer to int : "nsswitch/winbind_nss.c", line 593
>         argument : pointer to unsigned long
> "nsswitch/winbind_nss.c", line 922: warning: argument #4 is 
> incompatible
> with prototype
>         prototype: pointer to int : "nsswitch/winbind_nss.c", line 593
>         argument : pointer to unsigned long
> "nsswitch/winbind_nss.c", line 971: warning: argument #4 is 
> incompatible
> with prototype
>         prototype: pointer to int : "nsswitch/winbind_nss.c", line 593
>         argument : pointer to unsigned long
> "nsswitch/winbind_nss.c", line 984: warning: argument #4 is 
> incompatible
> with prototype
>         prototype: pointer to int : "nsswitch/winbind_nss.c", line 593
>         argument : pointer to unsigned long
> "nsswitch/winbind_nss.c", line 1108: warning: argument #5 is 
> incompatible
> with prototyp
>         prototype: pointer to int : "nsswitch/winbind_nss.c", line 669
>         argument : pointer to unsigned long
> "nsswitch/winbind_nss.c", line 1168: warning: argument #5 is 
> incompatible
> with prototyp
>         prototype: pointer to int : "nsswitch/winbind_nss.c", line 669
>         argument : pointer to unsigned long
> "nsswitch/winbind_nss.c", line 1182: warning: argument #5 is 
> incompatible
> with prototyp
>         prototype: pointer to int : "nsswitch/winbind_nss.c", line 669
>         argument : pointer to unsigned long
> "nsswitch/winbind_nss.c", line 1231: warning: argument #5 is 
> incompatible
> with prototyp
>         prototype: pointer to int : "nsswitch/winbind_nss.c", line 669
>         argument : pointer to unsigned long
> "nsswitch/winbind_nss.c", line 1245: warning: argument #5 is 
> incompatible
> with prototyp
>         prototype: pointer to int : "nsswitch/winbind_nss.c", line 669
>         argument : pointer to unsigned long
> Compiling nsswitch/wb_common.c with -Kpic
> Compiling nsswitch/winbind_nss_solaris.c with -Kpic
> "nsswitch/winbind_nss_config.h", line 135: warning: macro redefined:
> ZERO_STRUCTP
> Linking nsswitch/libnss_winbind.so
> ld: fatal: file nsswitch/winbind_nss.po: wrong ELF class: ELFCLASS64
> ld: fatal: File processing errors. No output written to
> nsswitch/libnss_winbind.so
> *** Error code 1
> make: Fatal error: Command failed for target 
> `nsswitch/libnss_winbind.so'
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
> 




More information about the samba mailing list