Samba-2.2.2 fails to compile with Sun C compiler
Gunnar Gunnarsson
gunnar at ki.ericsson.se
Mon Oct 15 05:51:01 GMT 2001
Work around to compile it with Sun C compiler/linker.
This should be fixed in the configure script.
622c622
< $(LD) -B dynamic -o $@ $(PAM_SMBPASS_OBJ) lib/snprintf.o -lpam $(LIBS) -lc
---
> $(LD) -shared -symbolic -o $@ $(PAM_SMBPASS_OBJ) -lpam $(LIBS) -lc
626c626
< @$(LD) -B dynamic -o $@ $(NSS_OBJ) -lc
---
> @$(LD) -shared -o $@ $(NSS_OBJ) -lc
634c634
< @$(LINK) -G -o $@ $(WINBIND_NSS_PICOBJS)
---
> @$(LINK) -shared -o $@ $(WINBIND_NSS_PICOBJS)
638c638
< @$(LINK) -G -o $@ $(PAM_WINBIND_OBJ) -lpam -lnsl
---
> @$(LINK) -shared -o $@ $(PAM_WINBIND_OBJ)
Michael Keightley writes:
>
> Am getting this error when I try to compile Samba-2.2.2 with the Sun C compiler
> (Forte 6 update 2) on Solaris 8 (same error on 2.6):
>
>
> Compiling nsswitch/wb_common.c with -KPIC
> Linking nsswitch/libnss_winbind.so
> ld: fatal: option -h and building a dynamic executable are incompatible
> ld: fatal: Flags processing errors
> *** Error code 1
> make: Fatal error: Command failed for target `nsswitch/libnss_winbind.so'
>
> Here are the flags:
>
> Using FLAGS32 = -O -xtarget=ultra2 -Iinclude -I./include -I./ubiqx -I./smbwrapper -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLOGFILEBASE="/home/samba_pearl/var" -DCONFIGFILE="/home/samba_pearl/lib/smb.conf" -DLMHOSTSFILE="/home/samba_pearl/lib/lmhosts" -DSWATDIR="/home/samba_pearl/swat" -DSBINDIR="/home/samba_pearl/sbin" -DLOCKDIR="/home/samba_pearl/var/locks" -DCODEPAGEDIR="/home/samba_pearl/lib/codepages" -DDRIVERFILE="/home/samba_pearl/lib/printers.def" -DBINDIR="/home/samba_pearl/bin" -DHAVE_INCLUDES_H -DPASSWD_PROGRAM="/bin/passwd" -DSMB_PASSWD_FILE="/home/samba_pearl/private/smbpasswd" -DTDB_PASSWD_FILE="/home/samba_pearl/private/smbpasswd.tdb"
>
> Any idea what might be wrong?
>
> Michael
>
>
>
> --
> Michael Keightley <Michael.Keightley at quadstone.com> Tel: +44 131 220 4491
> Systems Manager, Quadstone Limited, Fax: +44 131 220 4492
> 16 Chester Street, Edinburgh EH3 7RA, Scotland http://www.quadstone.com
More information about the samba-ntdom
mailing list