Applied patches in ftp://ftp.samba.org:/pub/jerry/samba-2.2.4-patches/ and re-compiled. Warning "nsswitch/winbind_nss_config.h:135: warning: `ZERO_STRUCTP' redefined" disappeared. But I still got -KPIC rather than -fPIC, so that had to manually edit Makefile. Seems the patch for configure.in did not work.
Thanks, Tian. ----- Original Message ----- From: "Gerald Carter" <[EMAIL PROTECTED]> To: "Tian-xiong Lu" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, May 10, 2002 11:39 AM Subject: Re: compile samba-2.2.4 on Solaris 7 > On Wed, 8 May 2002, Tian-xiong Lu wrote: > > > Thanks, Richard for the reply. > > > > Tried with -fPIC instead of -KPIC, it worked. Checked with gcc > > manpage, -fPIC is > > an option but -KPIC not. > > Fixed in SAMBA_2_2 & HEAD > > > 1. smbd/password.c: In function 'grab_server_mutex': > > smbd/password.c:1198: warning: passing arg 1 of `message_named_mutex' > > discards > > `const' from pointer target type. > > Ignore for now. > > > 2. lib.system.c: In function`sys_readdir': > > lib.system.c:331: warning: return from incompatible pointer type > > Did not see this one. > > > 3. In file included from nsswitch/winbind_nss_solaris.c:20: > > nsswitch/winbind_nss_config.h:135: warning: `ZERO_STRUCTP' redefined > > include/smb_macros.h:48: warning: this is the location of the previous > > definition > > Fixed in SAMBA_2_2 & HEAD. > > I'm collecting individual patches against 2.2.4 in > ftp://ftp.samba.org:/pub/jerry/samba-2.2.4-patches/ > > > > > > cheers, jerry > --------------------------------------------------------------------- > Hewlett-Packard http://www.hp.com > SAMBA Team http://www.samba.org > -- http://www.plainjoe.org > "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 > --"I never saved anything for the swim back." Ethan Hawk in Gattaca-- >