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 ______________________ Antoine Duchâteau Development Manager TAKTIK - www.taktik.be Avenue du général de gaulle, 46 B-1050 Bruxelles ------------------- Email: ad@taktik.be - iChatAV aduchate@mac.com Mobile: 32 (499) 534.536
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
On 26 Aug 2005, at 20:01, Kevin Van Vechten wrote:
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.
OK, will.
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/
I actually tried that before posting but I got an error which I understood to be linked to the framework not being universal. How do you darwinbuild for one specific architecture (ppc in this case) ?
2) `darwinbuild -nochroot samba` which will try to build samba "out in the open" where the ByteRangeLocking framework is present.
Nice option, will try.
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,
It helps a lot, thanks Kevin. Antoine
When I first replied, I had forgotten that PrivateFrameworks do not have any headers installed, so it may not be possible to compile this. Compiling without the ByteRangeLocking framework may be your only option at this point. On Aug 27, 2005, at 2:11 PM, Antoine Duchâteau wrote:
I actually tried that before posting but I got an error which I understood to be linked to the framework not being universal. How do you darwinbuild for one specific architecture (ppc in this case) ?
In order to do PPC-only builds from DarwinBuild: # darwinxref edit 8A428 This will edit the 8A428 plist in vi (or your the editor specified in $VISUAL or $EDITOR). Edit the file, changing the RC_ARCHS entry in the "environment" dictionary from RC_ARCHS="ppc i386"; to RC_ARCHS="ppc"; Save your changes, and the next build will be PPC-only. - Kevin
participants (2)
-
Antoine Duchâteau
-
Kevin Van Vechten