[Samba] libsmbclient in Mac OS X / Darwin

Luis Muñoz lem at cantv.net
Sun Oct 27 00:46:00 GMT 2002


Actually, I don't think this is helpful.

smbd fails when trying to service a non-root user because it cannot change
its credentials back and forth. Unfortunately, I have very little time to
help make this run in Mac OS X. Do you have any suggestion?

Thanks.

-lem

At 3:46 PM +1000 10/26/02, Andrew Bartlett wrote:
>Luis Muñoz wrote:
>>
>> Dear folks:
>>
>> First of all, thanks for a great product and please do keep up your fine
>> job with samba.
>>
>> As a humble contribution to your project, below is a patch to configure.in
>> that allows libsmbclient.so to be correctly built in my system (Mac with
>> Mac OS X). I hope this to be useful.
>
>Yes, it looks useful, but see below...
>
>> I also noted that the generated Makefile, did not correctly install the
>> library as the 'install' command lacks a target directory. Seeing that some
>> other things seem to ignore the --with-prefix, I prefer to just report this
>> instead of producing patches.
>>
>> Regards.
>>
>> -lem
>>
>> lem at dC8541540 source> uname -a
>> Darwin dC8541540.dslam-06-2-1-03-01-02.tdd.dsl.cantv.net 5.5 Darwin Kernel
>> Version 5.5: Thu May 30 14:51:26 PDT 2002;
>> root:xnu/xnu-201.42.3.obj~1/RELEASE_PPC  Power Macintosh powerpc
>>
>> *** configure.in-orig   Fri Oct 25 23:50:47 2002
>> --- configure.in        Sat Oct 26 01:04:43 2002
>> ***************
>> *** 855,860 ****
>> --- 855,868 ----
>>                         SONAMEFLAG="-Wl,-soname="
>>                         AC_DEFINE(STAT_ST_BLOCKSIZE,512)
>>                         ;;
>> +               *darwin*) AC_DEFINE(DARWIN)
>> +                       BLDSHARED="true"
>> +                       LDSHFLAGS="-dynamic"
>> +                       PICFLAG="-fPIC"
>> +                       SHLD="libtool"
>
>I was about to apply this, but why do we need to involve libtool here?
>
>(Yes, there is a long history to this issue... )
>
>> +                       LIBS="${LIBS} -lc -lcc_dynamic"
>> +                       CFLAGS="-dynamic -fno-common ${CFLAGS}"
>> +                       ;;
>>                 *solaris*) AC_DEFINE(SUNOS5)
>>                         BLDSHARED="true"
>>                         LDSHFLAGS="-G"
>>
>
>Andrew Bartlett
>
>--
>Andrew Bartlett                                 abartlet at pcug.org.au
>Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
>Student Network Administrator, Hawker College   abartlet at hawkerc.net
>http://samba.org     http://build.samba.org     http://hawkerc.net

-- 
 --
#!/usr/bin/perl -w
use strict;
$_[$_]=0 for 0..7;my$i;
for my$a(grep{s@^00@@}unpack'B8'x28,join'',map{chr}split/\*+/,q{61*31*28*
32*20*40*25*63*63*9*52*58*49*18*30*47*20*2*10*4*8*63*63*1*36*2*13*30}){$i
=0;grep{$_[$i++].=$_}split //,$a;length$_[0]==8&&print pack'B8',$_ for at _;
length$_[0]==8&&grep{$_=0}@_;}print"\n";



More information about the samba-technical mailing list