I think your diagnosis is correct, but in the future when asking about missing dependencies it would be helpful to include your build log, or at least the portion that lists which dependencies are found in the BuildRoot.

The ByteRangeLocking framework is not open source, so you have a few options:

1) cp -R /System/Library/PrivateFrameworks/ByteRangeLocking.framework BuildRoot/System/Library/PrivateFrameworks/
2) `darwinbuild -nochroot samba` which will try to build samba "out in the open" where the ByteRangeLocking framework is present.
3) Modify samba to compile without the ByteRangeLocking framework:
<http://cvs.opendarwin.org/index.cgi/~checkout~/src/release/8.2.1/Sources/samba-92.9.p1.patch?rev=1.1.1.1&content-type=text/plain>

Hope this helps,

- Kevin

On Aug 26, 2005, at 5:57 AM, Antoine Duchâteau wrote:

Hi,

I'm trying to compile samba from build 8C46. Compilation fails during configure with :

checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables

Looking inside BuildRoot/var/tmp/samba/samba-92.9.obj/config.log

the problem seems to be that ByteRangeLocking framework is missing:

configure:2077: gcc -arch ppc -arch i386 -g -Os -pipe -mdynamic-no-pic  -no-cpp-precomp -I/SourceCache/samba/samba-92.9/libopendirectorycommon -F/System/Library/PrivateFrameworks -DUSES_RECVFROM -DWITH_OPENDIRECTORY -DWITH_MEMBERD -DUSES_KEYCHAIN -DWITH_BRLM -pipe -no-cpp-precomp -arch ppc -arch i386  -arch ppc -arch i386             -framework Security -framework CoreFoundation -framework DirectoryService -framework ByteRangeLocking -L/private/var/tmp/samba/samba-92.9.obj -lopendirectorycommon conftest.c  >&5
ld: for architecture ppc
ld: can't locate framework for: -framework ByteRangeLocking

g5tv:/Volumes/Builds/Build8C46 root# ls -la BuildRoot/System/Library/Frameworks/
total 0
drwxr-xr-x   14 root  wheel  476 Aug 26 14:42 .
drwxr-xr-x   10 root  wheel  340 Aug 26 14:42 ..
dr-xr-xr-x    6 root  wheel  204 Apr 11 06:26 AppleTalk.framework
dr-xr-xr-x    9 root  wheel  306 Apr 27 05:46 CoreFoundation.framework
drwxr-xr-x    5 root  wheel  170 May 12 02:21 CoreServices.framework
dr-xr-xr-x    7 root  wheel  238 Apr 15 20:33 DirectoryService.framework
dr-xr-xr-x    7 root  wheel  238 Apr 11 06:53 DiskArbitration.framework
dr-xr-xr-x    7 root  wheel  238 Apr 28 03:17 IOKit.framework
drwxr-xr-x    7 root  wheel  238 Apr 15 04:55 Kerberos.framework
drwxr-xr-x    6 root  wheel  204 Aug 26 14:42 Kernel.framework
drwxr-xr-x    6 root  wheel  204 Apr 14 20:57 LDAP.framework
dr-xr-xr-x    7 root  wheel  238 Apr 15 22:19 Security.framework
drwxr-xr-x    8 root  wheel  272 Apr 11 02:39 System.framework
dr-xr-xr-x    7 root  wheel  238 Apr 12 03:43 SystemConfiguration.framework

g5tv:/Volumes/Builds/Build8C46 root# ls -la BuildRoot/System/Library/PrivateFrameworks/
total 8
drwxr-xr-x    6 root  wheel  204 Aug 26 14:42 .
drwxr-xr-x   10 root  wheel  340 Aug 26 14:42 ..
dr-xr-xr-x    6 root  wheel  204 Apr 15 20:33 DirectoryServiceCore.framework
lrwxrwxrwx    1 root  wheel   52 Aug 26 14:42 DiskArbitration.framework -> /System/Library/Frameworks/DiskArbitration.framework
dr-xr-xr-x    7 root  wheel  238 Apr 11 03:44 NetInfo.framework
dr-xr-xr-x    6 root  wheel  204 Apr 12 02:20 PasswordServer.framework


Do you have any idea of which dependency is missing ?

Thanks,
Antoine