Darwin 9

...

9L30 status

not tested.

9J61 status

Principle

1-pass

After running the so-called brutus command `for X in $(darwinxref version '*' | cut -f 1 -d '-'); do darwinbuild $X; done' the following projects have been successfully built, taking in account that some projects has been excluded as e.g., xnu (because it was already built and packaged as a test case at the beginning), but also MySQLgcc_42gccBerkeleyDBbind9 and apache1 which can be built successfully at first or second pass depending the project but definitively takes too much time and space at compilation process (gcc_42 could be soon needed too).

Let's load the projects freshly built with the following script, even if we don't need most of them.

for Y in `ls Packages | awk -F "." '{print $1}'`; do
darwinbuild -load $Y
done

2-pass

Then a second pass will be made, excluding the previous built and load projects, with:
for X in $(darwinxref version '*' | cut -f 1 -d '-'); do
  SAME="false"
  for Y in `ls Packages | awk -F "."  '{print $1}'`; do
  if [ "$Y" = "$X" ]; then
  SAME="true"
  break
  fi
  done

  if [ "$SAME" = "false" ]; then
                darwinbuild  $X
  fi
done

What does that mean if we found a "diff" between the two passes? What can we do?
1- Some dependencies (headers and/or binaries part of one or more project) are missing. Consequently, we can at least identify the dependent(s) where at least one dependency is missing (since this dependent failed to build at 1st-pass and success at 2nd-pass).  Of course, a 3rd-pass, a 4th-path, etc.. an n-path applies to the same rules.
2- We should run a 3rd-pass on the projects which still fail if between the previous passes, some noticable differences were found. And at the end, we should still obtain more binary roots and less compilation time.
3- A quick electromagnetic solar tempest has just disappeard?

Notes: from scratch, the "~<build attempts>" appended to the project and its version (found in "Logs/<project>/<project>-<version>.log~<build attempts>", but not only/necessarly here in fact) could be used in the "n-passes" process in order to know if and when the project has been successfully built previously or not. (TODO)

n-pass

At a certain point, projects which cannot be built "by default" will be listed if between a pass n and a pass n-1 no difference has been established. Moreover, knowing that a project failed to build at the first pass or fail to build near the other extremum will help in the fixing process.

Results (excerpt)

Current status

The approximative current status (not including the chaos) looks like the following:
Some projects have no sources, consequently cannot be built.
Some projects have no binaryroots but source and can easily be built.
Some projects are hard to build.

The bin column refers to the availability of an "official" binaryroot (e.g., from MacOSforge or Apple).
The src column points to the availability of an "official" source.
The logs column list (and locally points to the project logs) each build attempt (pass) and its state.
green for exit status 0 (build succeed)
orange for exit status 1 (fail)
red for exit status 2 (fail)
black when "it seems" that no src is available, so nothing can be built.

PROJECTBINSRCLOGS
Apple16X50Serial  1 2 3 4 5 6 7 8 9 10 11 12 13
Apple3Com3C90x  1 2
AppleACPIPlatform  1 2 3 4 5 6 7 8 9 10 11 12
AppleADBButtons  1 2
AppleADBKeyboard  1 2
AppleADBMouse  1 2 3
AppleAPIC  1 2 3 4 5 6 7
AppleCore99NVRAM  1 2
AppleDisplays  1 2 3 4 5 6 7
AppleFan  1 2
AppleFileSystemDriver  1 2 3 4 5 6 7
AppleFlashNVRAM  1 2
AppleGMACEthernet  1 2
AppleGPIO  1 2
AppleHWSensor  1 2 3 4 5 6 7
AppleI2C  1 2
AppleI2S  1 2
AppleIntel8255x  1 2 3 4 5 6 7
AppleIntelPIIXATA  1 2
AppleK2SATA  1 2
AppleK2SATARoot  1 2
AppleKauaiATA  1 2
AppleKeyLargo  1 2 3 4 5 6 7
AppleKeyswitch  1 2 3
AppleKiwiATA  1 2
AppleKiwiRoot  1 2
AppleMPIC  1 2
AppleMacRISC2PE  1 2
AppleMacRISC4PE  1 2 3 4 5 6 7 8 9
AppleMacRiscPCI  1 2
AppleMediaBay  1 2
AppleOnboardAudio  1 2 3 4 5 6 7 8 9 10 11 12
ApplePCCard16ATA  1 2
ApplePCCardATA  1 2
AppleRAID  1 2 3 4 5 6 7 8
AppleRS232Serial  1 2 3 4 5 6 7 8 9 10 11
AppleRTC  1 2 3 4 5 6 7 8 9 10 11 12
AppleRTL8139Ethernet  1 2
AppleSCCSerial  1 2 3 4 5 6 7 8 9 10 11
AppleSMBIOS  1 2 3 4 5 6 7
AppleSym8xx  1 2
AppleTalk  1 2 3 4 5 6 7 8 9 10 11 12
AppleThermal  1 2
AppleUSBAudio  1 2 3 4 5 6 7
AppleUSBCDCDriver  1 2 3 4 5 6 7 8 9 10 11
AppleUSBIrDA  1 2 3 4 5 6 7 8 9 10 11
AppleVIA  1 2
BerkeleyDB  1
BootCache  1 2 3 4 5 6 7 8 9 10 11 12 13
BootX  1 2 3 4 5 6 7
CF  1 2 3 4 5 6 7
CFNetwork  1 2 3 4 5 6 7 8 9 10
CFOpenDirectory  1 2 3 4 5 6 7 8 9 10 11 12
CPAN  1 2 3 4 5 6 7 8 9 10 11 12
CPANInternal  1 2 3 4 5 6 7 8 9 10 11 12
CarbonHeaders  1 2
ChatServer  1 2 3 4 5 6 7 8 9 10 11 12
Chess  1 2 3 4 5 6 7 8 9 10 11 12 13
CommonCrypto  1 2
CoreOSMakefiles  1 2 3
CrackLib  1 2
Csu  1 2
CyrusIMAP  1 2 3 4 5 6 7 8 9 10 11 12 13 14
DSPasswordServerFramework  1 2 3 4 5 6 7 8 9 10 11 12
DSPasswordServerPlugin  1 2 3 4 5 6 7 8 9 10 11 12
DSTools  1 2 3 4 5 6 7 8 9 10 11 12
DirectoryService  1 2 3 4 5 6 7 8 9 10 11 12 13
DirectoryServiceDaemon  1 2 3 4 5 6 7 8 9 10 11 12 13 14
DirectoryServiceMIG  1 2 3 4 5 6 7
DiskArbitration  1 2 3 4 5 6 7 8 9 10 11 12
DynamicPowerStep  1 2 3 4 5 6 7 8
FastCGI  1 2 3 4 5 6 7 8 9 10 11 12
FirewallTool  1 2 3 4 5 6 7 8 9 10 11 12
ICU  1 2
ICU_debug  1 2
ICU_profile  1 2
IOACPIFamily  1 2
IOADBFamily  1 2
IOATABlockStorage  1 2 3 4 5 6 7 8 9 10 11 12
IOATAFamily  1 2 3 4 5 6 7
IOATAPIProtocolTransport  1 2 3 4 5 6 7 8 9 10 11 12
IOAudioFamily  1 2 3 4 5 6 7
IOBDStorageFamily  1 2 3 4 5 6 7 8 9 10 11 12
IOCDStorageFamily  1 2 3 4 5 6 7
IODVDStorageFamily  1 2 3 4 5 6 7
IOFWDVComponents  1 2 3 4 5 6 7 8 9 10 11 12
IOFireWireAVC  1 2 3 4 5 6 7 8
IOFireWireFamily  1 2 3 4 5 6 7
IOFireWireIP  1 2 3 4 5 6 7
IOFireWireSBP2  1 2 3 4 5 6 7
IOFireWireSerialBusProtocolTransport  1 2 3 4 5 6 7 8 9 10 11 12
IOGraphics  1 2 3 4 5 6 7
IOHIDFamily  1 2 3 4 5 6 7 8 9 10 11 12
IOI2CFamily  1 2 3 4 5 6 7
IOKitTools  1 2 3 4 5 6 7
IOKitUser  1 2 3 4 5 6 7 8 9 10 11
IONetworkingFamily  1 2 3 4 5 6 7 8 9 10 11 12
IOPCCardFamily  1 2 3 4 5 6 7
IOPCIFamily  1 2 3 4 5 6 7
IOSCSIArchitectureModelFamily  1 2 3 4 5 6 7 8 9 10 11 12
IOSCSIParallelFamily  1 2 3 4 5 6 7 8 9 10 11 12
IOSerialFamily  1 2 3 4 5 6 7 8 9 10 11
IOStorageFamily  1 2 3 4 5 6 7
IOUSBFamily  1 2 3 4 5 6 7 8 9 10 11 12
IOUSBMassStorageClass  1 2 3 4 5 6 7 8 9 10 11 12
JavaScriptCore  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
JavaScriptGlue  1 2 3 4 5 6 7 8 9 10 11 12
Kerberos  1 2 3 4 5 6 7 8 9 10 11 12
KerberosHelper  1 2 3 4 5 6 7 8 9 10 11 12
KeyLargoATA  1 2
LDAPFramework  1 2 3 4 5 6 7 8 9 10 11 12 13
Libc  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Libc_debug  1 2 3 4 5 6 7 8 9 10 11 12 13
Libc_headers  1 2 3 4 5
Libc_man  1 2 3 4 5
Libc_profile  1 2 3 4 5 6 7 8 9 10 11 12 13
Libcpp_kext  1 2
Libinfo  1 2 3 4 5 6 7
Libm  1 2
Libmx  1 2
Libnotify  1 2 3 4 5 6 7
Librpcsvc  1 2
Libstreams  1 2
Libsyscall  1 2 3 4 5 6 7
Libsystem  1 2 3 4 5 6 7 8 9 10 11 12 13
Liby  1 2
MacPorts  1 2
MySQL  
NFS  1 2 3 4 5 6 7 8
NullCPUPowerManagement  1
OpenAL  1 2 3 4 5 6 7 8 9 10 11 12
OpenDirectory  1 2 3 4 5 6 7 8 9 10 11 12
OpenLDAP  1 2 3 4 5 6 7 8 9 10 11 12 13 14
OpenSSH  1 2 3 4 5 6 7 8 9
OpenSSL  1 2 3 4 5 6 7 8 9 10 11 12
OpenSSL096  1 2 3
PowerManagement  1 2 3 4 5 6 7 8 9 10 11 12
PyRSS2Gen  1 2 3 4 5 6 7 8 9 10 11 12
RubyCocoa  1 2 3 4 5 6 7 8 9 10 11 12
RubyGems  1 2 3 4 5 6 7 8 9 10 11 12
RubyOnRails  1 2 3 4 5 6 7 8 9 10 11 12
SCSIHeaderInstaller  1 2
SQLite  1 2 3 4 5 6 7 8 9 10 11 12
Security  1 2 3 4 5 6 7 8 9 10 11 12
SecurityTokend  1 2 3 4 5 6 7 8 9 10 11
SecurityTool  1 2 3 4 5 6 7 8 9 10 11
SmartCardServices  1 2 3 4 5 6 7 8 9 10 11
SpamAssassin  1 2 3 4 5 6 7 8 9 10 11 12
SquirrelMail  1 2
SystemStubs  1 2 3 4
TargetConfig  1 2 3
TargetConfig_host  1 2 3
TimeZoneData  1 2
Tokend  1 2
Twisted  1 2 3 4 5 6 7 8 9 10 11 12
TwistedWords  1 2 3 4 5 6 7 8 9 10 11 12
TwistedXish  1 2 3 4 5 6 7 8 9 10 11 12
UserNotification  1 2 3 4 5 6 7
VirtualAudioDriver  1 2 3 4 5 6 7
WebCore  1 2 3 4 5 6 7 8 9 10 11 12
X11apps  1 2 3 4 5 6 7 8 9 10 11 12
X11fonts  1 2 3 4 5 6 7 8 9 10 11 12
X11libs  1 2 3 4 5 6 7 8 9 10 11 12
X11misc  1 2 3 4 5 6 7 8 9 10 11 12
X11proto  1 2 3 4 5 6 7 8 9 10 11 12
X11server  1 2 3 4 5 6 7 8 9 10 11 12
adv_cmds  1 2
amavisd  1 2
apache  1 2 3 4 5 6 7 8 9 10 11
apache1  
apache_mod_bonjour  1 2 3 4 5 6 7 8 9 10 11 12
apache_mod_fastcgi  1 2 3 4 5 6 7 8 9 10 11 12
apache_mod_hfs_apple  1 2 3 4 5 6 7 8 9 10 11 12
apache_mod_perl  1 2 3 4 5 6 7 8 9 10 11 12
apache_mod_perl1  1 2 3
apache_mod_php  1 2 3 4 5 6 7 8 9 10 11 12
apache_mod_php4  1 2 3 4 5 6 7 8 9 10 11 12
apache_mod_ssl  1 2 3
apr  1 2 3
architecture  1 2
at_cmds  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
autoconf  1 2 3
autofs  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
automake  1 2 3
autozone  1 2
awk  1 2 3
bash  1 2 3
basic_cmds  1 2 3
bc  1 2 3
bind9  
bison  1 2 3
bison1  1 2 3
bless  1 2 3 4 5 6 7
bootp  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
bootstrap_cmds  1 2 3
bsdmake  1 2 3
bsm  1 2 3
bzip2  1 2 3
cctools  1 2 3 4 5 6 7 8 9
cctools_ofiles  1 2 3 4 5 6 7 8 9
cddafs  1 2 3 4 5 6 7 8
clamav  1 2 3 4 5 6 7 8 9 10 11 12
configd  1 2 3 4 5 6 7 8 9 10 11 12
configd_executables  1 2 3 4 5 6 7 8 9 10 11 12
configd_plugins  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
copyfile  1 2 3 4 5 6 7 8 9 10 11 12 13
cron  1 2 3 4 5 6 7
crontabs  1 2
cscope  1 2
cups  1 2 3 4 5 6 7 8 9 10 11 12
curl  1 2
cvs  1 2
cvs_wrapped  1 2
cxxfilt  1 2 3 4 5
developer_cmds  1 2
diffstat  1 2
diskdev_cmds  1 2 3 4 5 6 7
disklabel  1 2 3 4 5 6 7 8 9 10 11
distcc  1 2 3 4 5 6 7
doc_cmds  1 2
drvAppleCMD646Root  1 2
dtrace  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
dyld  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
eap8021x  1 2 3 4 5 6 7 8 9 10 11 12 13
efax  1 2 3 4 5 6 7 8 9 10 11 12 13 14
efiboot  1 2 3 4 5 6 7 8 9 10 11 12 13
emacs  1 2 3 4 5 6 7 8 9 10 11 12 13 14
enscript  1 2
expat  1 2
extenTools  1 2
fetchmail  1 2
file  1 2
file_cmds  1 2
files  1 2
flex  1 2
freeradius  1 2 3 4 5 6 7 8 9 10 11 12 13
gcc  1
gcc_42  1
gcc_os  1 2 3 4 5 6 7 8 9 10 11 12
gcc_select  1 2
gccfast  1 2 3 4 5 6 7 8 9 10 11 12
gdb  1 2 3 4 5 6 7 8 9 10 11 12
gdbforcw  1 2 3 4 5
glibtool  1 2
gm4  1 2
gnudiff  1 2
gnumake  1 2
gnuserv  1 2 3 4 5 6 7 8 9 10 11 12 13
gnutar  1 2 3 4 5 6 7 8 9 10 11 12 13
gnuzip  1 2
gperf  1 2
gpt  1 2 3 4 5 6 7
graphviz  1 2
grep  1 2
groff  1 2
gssd  1 2 3 4 5 6 7 8 9
gutenprint  1 2 3 4 5 6 7 8 9 10 11 12
headerdoc  1 2 3 4 5 6 7
hfs  1 2
iodbc  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
ipsec  1 2 3 4 5 6 7 8
ipv6configuration  1 2 3 4 5 6 7 8 9 10 11 12 13 14
isoutil  1 2 3 4 5 6 7 8 9 10 11
jam  1 2
kext_tools  1 2 3 4 5 6 7 8 9 10 11 12 13
keymaps  1
keymgr  1 2
ksh  1 2
launchd  1 2 3 4 5 6
launchd_libs  1 2 3 4 5 6 7 8
ld64  1 2
less  1 2
libdwarf  1 2 3 4 5 6 7 8 9 10 11 12 13 14
libdyld  1 2 3 4 5 6 7 8 9
libedit  1 2
libelf  1
libffi  1 2
libfs  1 2
libgcc  1 2 3 4 5 6 7 8 9 10 11 12
libiconv  1 2
libmd  1 2
libpcap  1 2
libresolv  1 2 3 4 5 6 7
libsecurity_agent  1 2 3 4 5 6 7 8 9
libsecurity_apple_csp  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
libsecurity_apple_cspdl  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
libsecurity_apple_file_dl  1 2 3 4 5 6 7 8 9 10 11 12
libsecurity_apple_x509_cl  1 2 3 4 5 6 7 8 9 10 11
libsecurity_apple_x509_tp  1 2 3 4 5 6 7 8 9 10 11 12
libsecurity_asn1  1 2 3 4 5 6 7 8 9 10 11 12
libsecurity_authorization  1 2 3 4 5 6 7 8 9 10 11 12
libsecurity_cdsa_client  1 2 3 4 5 6 7 8 9 10 11
libsecurity_cdsa_plugin  1 2 3 4 5 6 7 8 9 10 11 12
libsecurity_cdsa_utilities  1 2 3 4 5 6 7 8 9 10 11 12 13
libsecurity_cdsa_utils  1 2 3 4 5 6 7 8
libsecurity_checkpw  1 2 3 4 5 6 7
libsecurity_cms  1 2 3 4 5 6 7 8 9 10 11 12
libsecurity_codesigning  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
libsecurity_cssm  1 2 3 4 5 6 7 8 9 10 11
libsecurity_dotmacdl  1 2 3 4 5 6 7 8 9 10 11 12
libsecurity_filedb  1 2 3 4 5 6 7 8 9 10 11
libsecurity_filevault  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
libsecurity_keychain  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
libsecurity_ldap_dl  1 2 3 4 5 6 7 8 9 10 11 12 13 14
libsecurity_manifest  1 2 3 4 5 6 7 8 9 10 11
libsecurity_mds  1 2 3 4 5 6 7 8 9 10 11 12
libsecurity_ocspd  1 2 3 4 5 6 7 8 9
libsecurity_pkcs12  1 2 3 4 5 6 7 8 9 10 11 12 13 14
libsecurity_sd_cspdl  1 2 3 4 5 6 7 8 9 10 11
libsecurity_smime  1 2 3 4 5 6 7 8 9 10 11
libsecurity_ssl  1 2 3 4 5 6 7 8 9 10 11
libsecurity_utilities  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
libsecurityd  1 2 3 4 5 6 7 8 9 10 11
libstdcxx  1 2 3 4 5
libstdcxx_SUPanWheat  1 2 3 4 5 6 7 8 9 10 11 12
libtelnet  1 2
libutil  1 2
libxml2  1 2 3 4 5 6 7 8
libxslt  1 2 3 4 5 6 7
lsof  1 2
lukemftp  1 2
lukemftpd  1 2
mDNSResponder  1 2 3 4 5 6 7 8 9 10 11 12
mDNSResponderSystemLibraries  1 2 3 4 5 6 7 8 9
mail_cmds  1 2
mailman  1 2 3 4 5 6 7 8 9 10 11 12
man  1 2
misc_cmds  1 2
modemccl  1 2 3 4 5 6 7 8 9 10 11 12
msdosfs  1 2 3 4 5 6 7 8
nano  1 2
nasm  1 2
ncurses  1 2 3 4
neon  1 2 3 4
net_snmp  1 2 3 4 5 6 7 8 9 10 11 12
netcat  1 2
netinfo  1 2 3 4 5 6 7 8 9 10 11
network_cmds  1 2 3 4 5 6 7 8 9
notify  1 2 3 4 5 6 7 8 9
ntfs  1 2 3 4 5 6 7
ntp  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
objc4  1 2
openmpi  1 2
pam  1 2
pam_modules  1 2 3 4 5 6 7 8 9 10 11 12 13 14
passwordserver_sasl  1 2 3 4 5 6 7 8 9 10 11 12 13
passwordserver_saslextra  1 2
passwordserver_saslkerberos  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
patch_cmds  1 2
pb_makefiles  1 2
pbx_jamfiles  1 2
pcsc  
pdisk  1 2 3 4 5 6 7
perl  1 2 3 4 5 6 7 8 9 10 11 12
portmap  1 2 3 4 5 6 7
postfix  1 2 3 4 5 6 7 8 9 10 11 12 13
ppp  1 2 3 4 5 6 7 8 9 10 11 12
procmail  1 2
project_makefiles  1 2 3 4 5
pyOpenSSL  1 2 3 4 5 6 7 8 9 10 11 12
pyobjc  1 2 3 4 5 6 7 8 9 10 11 12
python  1 2 3 4 5 6 7 8 9 10 11 12
python23  1 2 3 4 5 6 7 8 9 10 11 12
python_dateutil  1 2 3 4 5 6 7 8 9 10 11 12
python_modules  1 2 3 4 5 6 7 8 9 10 11 12
rcs  1 2
remote_cmds  1 2 3 4 5 6 7 8 9
removefile  1 2
rsync  1 2
ruby  1 2 3 4 5 6 7 8 9 10 11 12
ruby_dnssd  1 2 3 4 5 6 7 8 9 10 11 12
ruby_libxml  1 2 3 4 5 6 7 8 9 10 11 12
samba  1 2 3 4 5 6 7 8 9 10 11 12
screen  1 2 3 4 5 6 7 8 9
security_authtrampoline  1 2
security_certificates  1 2
security_certtool  1 2 3 4 5 6 7 8 9
security_crlrefresh  1 2 3 4 5 6 7 8 9 10
security_dotmac_tp  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
security_ocspd  1 2 3 4 5 6 7 8 9 10 11 12
security_privportserver  1 2 3 4 5 6 7 8 9 10 11 12
security_systemkeychain  1 2 3 4 5 6 7 8 9 10 11 12 13
securityd  1 2 3 4 5 6 7 8 9 10 11 12 13
shell_cmds  1 2 3 4 5 6 7
smb  1 2 3 4 5 6 7 8 9 10 11 12
srm  1 2
stmalloc  1 2
subversion  1 2 3 4 5 6 7 8 9 10 11 12
sudo  1 2
svk  
swig  1 2
syslog  1 2 3 4 5 6 7 8 9 10 11 12 13 14
system_cmds  1 2 3 4 5 6 7 8 9 10 11 12
system_config  1 2
tcl  1 2 3 4 5 6 7 8 9 10 11 12
tcl_ext  1 2 3 4 5 6 7 8 9 10 11 12
tcl_tk  1 2 3 4 5 6 7 8 9 10 11 12
tcp_wrappers  1 2
tcpdump  1 2 3 4
tcsh  1 2
texi2html  1 2
texinfo  1 2 3 4
text_cmds  1 2
tidy  1 2 3 4 5 6 7 8 9 10 11 12
top  1 2 3 4 5 6 7
usertemplate  1 2 3 4 5 6 7 8
uucp  1 2
vim  1 2
webdavfs  1 2 3 4 5 6 7 8 9 10 11 12
wxWidgets  1 2 3 4 5 6 7 8 9 10 11 12
xar  1 2 3 4 5 6 7
xelf  1 2
xnu  1 2
zfs  1 2 3 4
zip  1 2
zlib  1 2 3 4
zsh  1 2

289 / 417 successfully built.
121 / 417 failed to build.


1..3-pass

After the first pass and using `/opt/local/share/darwinbuild/packageRoots', many projects have been built and packaged successfully.
On the other side, there is the list of packages which have not been built successfully for any reasons.
Just before running into the second pass, we will load all these freshly built projects. Then we will see if more projects are built after the second pass.
These binary roots will be also loaded.
Another step which could have been done at the beginning or each pass is to load headers (-headers):
for Y in `ls Packages | awk -F "." '{print $1}'`; do
        darwinbuild -headers $Y
done

Build succeeded:

1-pass 2-pass 3-pass 3-pass' (-headers)
Apple3Com3C90x-10~1
AppleADBButtons-300~1
AppleADBKeyboard-239.1~1
AppleCore99NVRAM-111.3.1~1
AppleFan-110.3.1~1
AppleFlashNVRAM-105.4.0~1
AppleGMACEthernet-157.3.1~1
AppleGPIO-131.0.0~1
AppleI2C-400.0.3~1
AppleI2S-101.3.1~1
AppleIntelPIIXATA-200.0.1~1
AppleK2SATA-104.3.2~1
AppleK2SATARoot-105.2.2~1
AppleKauaiATA-121.3.4~1
AppleKiwiATA-102.3.2~1
AppleKiwiRoot-105.3.1~1
AppleMPIC-1.5.3~1
AppleMacRISC2PE-187.0.5~1
AppleMacRiscPCI-3.4~1
AppleMediaBay-102.3.1~1
ApplePCCard16ATA-113~1
ApplePCCardATA-103.3.2~1
AppleRTL8139Ethernet-141~1
AppleSym8xx-122.3.1~1
AppleThermal-101.3.2~1
AppleVIA-151.0.1~1
CarbonHeaders-9G55~1
CommonCrypto-32207~1
CrackLib-30889~1
Csu-75~1
ICU-8.11.4~1
ICU_debug-8.11.4~1
ICU_profile-8.11.4~1
IOACPIFamily-5~1
IOADBFamily-6~1
KeyLargoATA-111.3.1~1
Libcpp_kext-5~1
Libm-292.4~1
Libmx-292.4~1
Librpcsvc-15~1
Libstreams-25~1
Liby-15~1
SCSIHeaderInstaller-100.0.2~1
SquirrelMail-29~1
SystemStubs-6~1
TimeZoneData-16~1
Tokend-35209~1
adv_cmds-119~1
amavisd-110.2~1
architecture-254.0.5~1
autozone-77.1~1
crontabs-34~1
cscope-14~1
curl-42~1
cvs-39~1
cvs_wrapped-13~1
developer_cmds-49~1
diffstat-5~1
doc_cmds-47~1
drvAppleCMD646Root-104.2.2~1
enscript-15~1
expat-6~1
extenTools-17.3~1
fetchmail-30~1
file-23~1
file_cmds-188~1
files-530.1.5~1
flex-20.3~1
gcc_select-66~1
glibtool-12~1
gm4-12~1
gnudiff-14~1
gnumake-119~1
gnuzip-25~1
gperf-4~1
graphviz-622~1
grep-24~1
groff-31~1
hfs-165.1~1
jam-851~1
keymgr-18~1
ksh-13~1
ld64-77.1~1
less-20~1
libedit-11~1
libffi-10~1
libfs-7~1
libiconv-24~1
libmd-2~1
libpcap-18~1
libtelnet-7~1
libutil-11~1
lsof-33~1
lukemftp-11~1
lukemftpd-33~1
mail_cmds-22~1
man-12~1
misc_cmds-23~1
nano-4~1
nasm-13~1
netcat-7~1
objc4-371.2~1
openmpi-5~1
pam-32.1~1
passwordserver_saslextra-118.1~1
patch_cmds-11~1
pb_makefiles-128~1
pbx_jamfiles-874~1
procmail-11~1
rcs-13~1
removefile-11~1
rsync-35.2~1
security_authtrampoline-32534~1
security_certificates-36075~1
srm-6~1
stmalloc-4~1
sudo-28~1
swig-4~1
system_config-49~1
tcp_wrappers-18~1
tcsh-60~1
texi2html-5~1
text_cmds-69~1
uucp-10~1
vim-39~1
xelf-1~1
zip-9~1
zsh-48~1
AppleADBMouse-212~2
AppleKeyswitch-104.0.1~2
CoreOSMakefiles-52~2
OpenSSL096-6.2~2
TargetConfig-6~2
TargetConfig_host-6~2
apache_mod_perl1-16~2
apache_mod_ssl-690~2
apr-12~2
autoconf-14~2
automake-7~2
awk-11~2
bash-76.2~2
basic_cmds-48~2
bc-21~2
bison-13~2
bison1-1~2
bootstrap_cmds-60.1~2
bsdmake-23~2
bsm-13~2
bzip2-16~2
ncurses-21~3
neon-8~3
tcpdump-23~3
texinfo-17~3
zlib-18~3
Apple3Com3C90x-10~2
AppleADBButtons-300~2
AppleADBKeyboard-239.1~2
AppleADBMouse-212~3
AppleCore99NVRAM-111.3.1~2
AppleFan-110.3.1~2
AppleFlashNVRAM-105.4.0~2
AppleGMACEthernet-157.3.1~2
AppleGPIO-131.0.0~2
AppleI2C-400.0.3~2
AppleI2S-101.3.1~2
AppleIntelPIIXATA-200.0.1~2
AppleK2SATA-104.3.2~2
AppleK2SATARoot-105.2.2~2
AppleKauaiATA-121.3.4~2
AppleKeyswitch-104.0.1~3
AppleKiwiATA-102.3.2~2
AppleKiwiRoot-105.3.1~2
AppleMPIC-1.5.3~2
AppleMacRISC2PE-187.0.5~2
AppleMacRiscPCI-3.4~2
AppleMediaBay-102.3.1~2
ApplePCCard16ATA-113~2
ApplePCCardATA-103.3.2~2
AppleRTL8139Ethernet-141~2
AppleSym8xx-122.3.1~2
AppleThermal-101.3.2~2
AppleVIA-151.0.1~2
CarbonHeaders-9G55~2
CommonCrypto-32207~2
CoreOSMakefiles-52~3
ICU-8.11.4~2
ICU_debug-8.11.4~2
ICU_profile-8.11.4~2
IOACPIFamily-5~2
IOADBFamily-6~2
KeyLargoATA-111.3.1~2
Librpcsvc-15~2
Libstreams-25~2
SCSIHeaderInstaller-100.0.2~2
TargetConfig-6~3
TargetConfig_host-6~3
Tokend-35209~2
architecture-254.0.5~2
autozone-77.1~2
bsdmake-23~3
bsm-13~3
drvAppleCMD646Root-104.2.2~2
extenTools-17.3~2
gcc_select-66~2
libedit-11~2
libffi-10~2
libfs-7~2
libpcap-18~2
libtelnet-7~2
libutil-11~2
objc4-371.2~2
pam-32.1~2
pbx_jamfiles-874~2
removefile-11~2
xnu-1228.12.14~2

4-pass
Again, all the projects will be built (or not). As a result, nothing will be built successfully according to packageRoots:
/opt/local/share/darwinbuild/packageRoots           
Archive tool: tar (GNU tar) 1.15.1
*** Packaging Headers
*** Packaging Roots

Finally, we reach the point where no buildable (without alteration, patch, etc..) dependency is missing.

Let's also now add PureFoundation in [...]/9J61/BuildRoot folder with: tar xzf ../../../hg/Roots/pd/PureFoundation.root.tar.gz.
And go for a 5 round..

5-pass

After trying again to build all projects, it appears that 6 additional projects have been successfully built:
Libc_headers-498.1.7~5 Libc_man-498.1.7~5 cxxfilt-7~5 gdbforcw-5~5 libstdcxx-16~5 project_makefiles-126~5 

Let's load them, and be prepare for pass six.
It is also plausible that many solutions and pseudo-solutions below will be needed for the next passes. Everything has been logged since the beginning, some useful `grep' sequences based on the available solutions against the log files could also be done in order to make them build.

6-pass

Indeed, nothing more succeed at this stage.
Enjoy the number of error to fix..
grep -i error Logs/*/*6 | wc -l
  196493

grep -i warning Logs/*/*6 | wc -l
   38007

Errata: headers have been built but not loaded above..
it should be loaded with -load -headers:
for Y in `ls Packages/*hdrs*.tar.gz | awk -F "." '{print $1}' | sed 's/Packages\///g'`; do
    darwinbuild -load -headers $Y
done

Let's first look the projects which do not have any binaryroot and cannot be built.
  • In green are the projects which have enough solution(s) available in order to built successfully the project (on 9J61)
  • In orange I let you guess.
  • In red are the projects where source not available or impossible to build (e.g., CFNetwork on darwin 9).
  • In gray are not (yet) really important project (e.g., svk or SpamAssassin)

-AppleMacRISC4PE
-AppleOnboardAudio
-AppleUSBAudio
-AppleUSBCDCDriver
-AppleUSBIrDA
-BootCache
-BootX
-CFNetwork
-CPAN
-CPANInternal
-ChatServer
-Chess
-CyrusIMAP
-DSPasswordServerPlugin
-DynamicPowerStep
-FastCGI
-FirewallTool
-IOATABlockStorage
-IOATAPIProtocolTransport
-IOBDStorageFamily
-IOFWDVComponents
-IOFireWireIP
-IOFireWireSerialBusProtocolTransport
-IOKitTools
-IOKitUser
-IOSCSIArchitectureModelFamily
-JavaScriptCore
-JavaScriptGlue
-Libc_debug
-Libc_profile
-NFS
-OpenAL
-OpenDirectory
-OpenLDAP
-OpenSSH
-PyRSS2Gen
-RubyOnRails
-SecurityTool
-SpamAssassin
-Twisted
-TwistedWords
-TwistedXish
-VirtualAudioDriver
-WebCore
-X11fonts
-X11libs
-X11proto
-apache
-apache_mod_bonjour
-apache_mod_fastcgi
-apache_mod_hfs_apple
-apache_mod_perl
-apache_mod_php
-apache_mod_php4
-autofs
-cddafs
-clamav
-configd_executables
-configd_plugins
-cron
-cups
-disklabel
-efax
-efiboot
-gdb
-gnuserv
-gpt
-gssd
-gutenprint
-headerdoc
-iodbc
-ipsec
-ipv6configuration
-isoutil
-launchd_libs
-libsecurity_agent
-libsecurity_apple_csp
-libsecurity_apple_cspdl
-libsecurity_apple_file_dl
-libsecurity_apple_x509_cl
-libsecurity_apple_x509_tp
-libsecurity_asn1
-libsecurity_authorization
-libsecurity_cdsa_plugin
-libsecurity_cdsa_utils
-libsecurity_checkpw
-libsecurity_cms
-libsecurity_codesigning
-libsecurity_dotmacdl
-libsecurity_filedb
-libsecurity_filevault
-libsecurity_keychain
-libsecurity_ldap_dl
-libsecurity_manifest
-libsecurity_mds
-libsecurity_ocspd
-libsecurity_pkcs12
-libsecurity_sd_cspdl
-libsecurity_smime
-libsecurity_ssl
-libsecurityd
-libstdcxx_SUPanWheat
-libxml2
-libxslt
-mDNSResponderSystemLibraries
-mailman
-msdosfs
-net_snmp
-netinfo
-notify
-ntfs
-ntp
-pam_modules
-passwordserver_saslkerberos
-pdisk
-portmap
-postfix
-pyOpenSSL
-pyobjc
-python
-python23
-python_dateutil
-python_modules
-ruby
-ruby_dnssd
-ruby_libxml
-screen
-security_certtool
-security_crlrefresh
-security_dotmac_tp
-security_ocspd
-security_privportserver
-security_systemkeychain
-securityd
-smb
-subversion
-svk
-syslog
-tcl
-tcl_ext
-tcl_tk
-usertemplate
-webdavfs
-xar

Let's make another pass (7th) again after loading all these built projects.
At this stage, the state of the buildroot is not "clean" anymore, some headers have been copied or linked manually from a location to another (and even from outside the buildroot sometimes), etc..

7 pass

The results are really great, more and more projects are built again (see results of packageRoots):
AppleAPIC-13~7 AppleDisplays-1140.0.5~7 AppleFileSystemDriver-12~7 AppleHWSensor-190~7 AppleIntel8255x-19~7 AppleKeyLargo-172.3.1~7 AppleSMBIOS-38~7 AppleUSBAudio-264.2.10~7 BootCache-43.12~13 BootX-81~7 CF-476.18~7 DirectoryServiceMIG-514.25~7 IOATAFamily-201.0.1~7 IOAudioFamily-169.4.3~7 IOCDStorageFamily-39~7 IODVDStorageFamily-26~7 IOFireWireFamily-347.4.0~7 IOFireWireIP-177.4.0~7 IOFireWireSBP2-198.4.0~7 IOGraphics-305.14~7 IOI2CFamily-111.0.2~7 IOPCCardFamily-48~7 IOPCIFamily-110~7 IOStorageFamily-92.9~7 Libinfo-278.0.3~7 Libnotify-36~7 Libsyscall-1228.12.14~7 UserNotification-21~7 VirtualAudioDriver-258.3.1~7 diskdev_cmds-421.8~7 distcc-881~7 gpt-7~7 libresolv-25.0.2~7 libsecurity_checkpw-29159~7 portmap-26~7 shell_cmds-118~7 top-39~7

Random notes: In fact we have a workaround since 9F33pd1 which will soon be used as many projects are related to the following problem(s) [...].
Problems: /System/Library/Frameworks/Security.framework/Headers/SecBase.h:63: error: syntax error before 'SecKeychainAttrType'
/System/Library/Frameworks/Security.framework/Headers/SecBase.h:74: error: syntax error before 'SecKeychainAttrType'
/System/Library/Frameworks/Security.framework/Headers/SecBase.h:77: error: syntax error before '}' token
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:78: error: syntax error before 'SecAuthenticationType'
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:117: error: syntax error before 'SecProtocolType'
Projects impacted:
DynamicPowerStep KerberosHelper OpenSSH SecurityTool apache_mod_bonjour bootp cddafs configd_executables ipsec ipv6configuration libsecurity_apple_x509_tp libsecurity_asn1 libsecurity_cdsa_utilities libsecurity_cdsa_utils libsecurity_cms libsecurity_dotmacdl libsecurity_filevault libsecurity_ldap_dl libsecurity_manifest libsecurity_pkcs12 libsecurity_smime libsecurity_ssl modemccl ppp samba security_certtool security_ocspd security_systemkeychain securityd

So let's use the workaround which consists of simply adding in SecBase.h #include <CarbonCore/MacTypes.h>. This is a dirty workaround because nobody should alter any header files.
Let's go for the 8th round, we're not tired at all.

8 pass

build build!
Results: DynamicPowerStep-1.6.0~8 IOFireWireAVC-223.4.1~8 cddafs-230.0.5~8 ipsec-34.0.3~8 libsecurity_cdsa_utils-32586~8

9 pass

\o/
OpenSSH-95.1.5~9 cctools-667.3~9 cctools_ofiles-667.3~9 gssd-23~9 libdyld-97.1~9 libsecurity_agent-32091.1~9 libsecurity_ocspd-29518~9 mDNSResponderSystemLibraries-176.3~9 network_cmds-307.1.1~9 notify-16~9 remote_cmds-13.0.2~9 security_certtool-31828~9
..[...]

10 pass

security_crlrefresh-31832~10

Remaining projects
(estimation)
Security(d) and other related projects which not yet build

Below are errors related to the project described just above.

According to the map, we should probably begin to fix first :

libsecurity_cdsa_utilities
libsecurityd and libsecurity_utilities  "unblocks" libsecurity_asn1libsecurity_cdsa_plugin which unblocks libsecurity_apple_x509_tplibsecurity_apple_x509_clSecurityToollibsecurity_cms,  libsecurity_ssllibsecurity_smime, libsecurity_sd_cspdl, libsecurity_manifest.

Problematic point is all the project linked (depending) on a non available project.

11-pass

After running another pass (11 iirc..), more projects are built:
AppleRS232Serial-130.2.7~11
AppleSCCSerial-132.4.2~11
AppleUSBCDCDriver-3212.4.1~11
AppleUSBIrDA-144.4.0~11
IOSerialFamily-32.2~11
SecurityTokend-32363~11
SmartCardServices-34733~11
disklabel-2~11
libsecurity_cdsa_client-32432~11
libsecurity_cssm-32993~11
libsecurity_filedb-32868~11
libsecurity_utilities-36433~16

Which satisfy dependency for:
libsecurity_mds
libsecurity_apple_file_dl
...
let's fix more and more..

After applying some patches and rebuild some dependents where their dependencies just have been patched, the picture looks like:

The state is beyond the 12th pass now..


Problem: The Mac OS X platform is missing...
Solution: It is more than recommended to avoid using HFS+ as the filesystem of your BuildRoot volume with DarwinBuild (precisely Xcode in this case). An UFS disk image works, alternatively you can also fool Xcode using NFS as described there. Also note that on Mac OS X 10.5, there is a bug in `hdiutil' which prevents to create large UFS disk image (around 12g max). The trick is to use a Tiger machine to create a larger image.
Example with an UFS disk image:
hdiutil create -size 30g -type UDIF -fs UFS -volname Builds -attach Builds.dmg
Note: The cause is Xcode 3.1 running in a chroot on not-UFS.
Fixed: This workaround is no longer needed since on the Darwinbuild website, we can read (news from 2009/04/17): "The latest revision of trunk has support for sparsebundles and NFS Loopback in order to avoid the problems with xcodebuild inside of chroots. If you do not change the way you use darwinbuild, you will start seeing the sparsebundle storage. Nothing else is needed and Xcode-based projects will build on whatever filesystem you have."

Problem: Error: TargetConfig not defined
Solution: darwinbuild -load TargetConfig (this will download a binary root)

AppleDisplay

darwinbuild AppleDisplay

9J61 (ok)

Problems: /SourceCache/AppleDisplays/AppleDisplays-1140.0.5/AppleOnboardDisplay/AppleOnboardDisplay.cpp:24:38: error: libkern/c++/OSContainers.h: No such file or directory
/SourceCache/AppleDisplays/AppleDisplays-1140.0.5/AppleOnboardDisplay/AppleOnboardDisplay.cpp:25:26: error: IOKit/system.h: No such file or directory
/SourceCache/AppleDisplays/AppleDisplays-1140.0.5/AppleOnboardDisplay/AppleOnboardDisplay.cpp:26:25: error: IOKit/IOLib.h: No such file or directory
/SourceCache/AppleDisplays/AppleDisplays-1140.0.5/AppleOnboardDisplay/AppleOnboardDisplay.cpp:27:38: error: IOKit/graphics/IODisplay.h: No such file or directory
/SourceCache/AppleDisplays/AppleDisplays-1140.0.5/AppleOnboardDisplay/AppleOnboardDisplay.cpp:28:39: error: IOKit/IODeviceTreeSupport.h: No such file or directory
/SourceCache/AppleDisplays/AppleDisplays-1140.0.5/AppleOnboardDisplay/AppleOnboardDisplay.cpp:29:36: error: IOKit/IOPlatformExpert.h: No such file or directory
/SourceCache/AppleDisplays/AppleDisplays-1140.0.5/AppleOnboardDisplay/AppleOnboardDisplay.cpp:30:49: error: IOKit/ndrvsupport/IONDRVFramebuffer.h: No such file or directory
/SourceCache/AppleDisplays/AppleDisplays-1140.0.5/AppleOnboardDisplay/AppleOnboardDisplay.cpp:31:29: error: IOKit/IOMessage.h: No such file or directory
/SourceCache/AppleDisplays/AppleDisplays-1140.0.5/AppleOnboardDisplay/AppleOnboardDisplay.cpp:32:38: error: IOKit/pwr_mgt/RootDomain.h: No such file or directory
/SourceCache/AppleDisplays/AppleDisplays-1140.0.5/AppleOnboardDisplay/AppleOnboardDisplay.cpp:33:26: error: IOKit/assert.h: No such file or directory
/SourceCache/AppleDisplays/AppleDisplays-1140.0.5/AppleOnboardDisplay/AppleOnboardDisplay.cpp:36:20: error: stddef.h: No such file or directory
Solution:? (resolved near pass 7)

Problem: /SourceCache/AppleDisplays/AppleDisplays-1140.0.5/AppleOnboardDisplay/IVAD.h:27:29: error: libkern/OSTypes.h: No such file or directory
Solution: ? (resolved near pass 7)

AppleMacRISC4PE

9J61

Problem:
MacRISC4PE.cpp:183: error: 'kUniNRevision3_2_1' was not declared in this scope
MacRISC4CPU.cpp:488: error: 'kUniNNormal' was not declared in this scope
MacRISC4CPU.cpp:551: error: 'kUniNSave' was not declared in this scope
MacRISC4CPU.cpp:557: error: 'kUniNSleep' was not declared in this scope
U3.cpp:91: error: 'kUniNVersion' was not declared in this scope
U3.cpp:93: error: 'kUniNVersion3' was not declared in this scope
U3.cpp:136: error: 'kU3ToggleRegister' was not declared in this scope
[...]
U3.cpp:1268: error: 'kU3API_DARTExcp' was not declared in this scope
Solution: ?

Problem: IOPlatformPlugins/IOPlatformPlugin.cpp:356: error: 'kIOPPluginForceUpdateKey' was not declared in this scope
IOPlatformPlugins/IOPlatformPlugin.cpp:357: error: 'kIOPPluginForceUpdateAllKey' was not declared in this scope
IOPlatformPlugins/IOPlatformPlugin.cpp:358: error: 'kIOPPluginForceSensorCurValKey' was not declared in this scope
IOPlatformPlugins/IOPlatformPlugin.cpp:359: error: 'kIOPPluginReleaseForcedSensorKey' was not declared in this scope
IOPlatformPlugins/IOPlatformPlugin.cpp:360: error: 'kIOPPluginForceCtrlTargetValKey' was not declared in this scope
IOPlatformPlugins/IOPlatformPlugin.cpp:361: error: 'kIOPPluginReleaseForcedControlKey' was not declared in this scope
IOPlatformPlugins/IOPlatformPlugin.cpp:362: error: 'kIOPPluginForceCtrlLoopMetaStateKey' was not declared in this scope
IOPlatformPlugins/IOPlatformPlugin.cpp:363: error: 'kIOPPluginReleaseForcedCtrlLoopKey' was not declared in this scope
Solution: ?

AppleOnboardAudio

9J61

Problem: HALPlugin/AOAHALPlugin.h:44:41: error: CoreAudio/AudioDriverPlugIn.h: No such file or directory
Solution:  ?

AppleRAID

9J61

Problem: /SourceCache/AppleRAID/AppleRAID-3.0.19/AppleRAID.h:60:27: error: IOKit/IOTypes.h: No such file or directory/SourceCache/AppleRAID/AppleRAID-3.0.19/AppleRAID.h:61:29: error: IOKit/IOService.h: No such file or directory /SourceCache/AppleRAID/AppleRAID-3.0.19/AppleRAID.h:62:30: error: IOKit/IOWorkLoop.h: No such file or directory /SourceCache/AppleRAID/AppleRAID-3.0.19/AppleRAID.h:63:33: error: IOKit/IOEventSource.h: No such file or directory... etc
Solution: related to kernel headers and iokituser headers

Problem: /SourceCache/AppleRAID/AppleRAID-3.0.19/artest.c:38:30: error: MediaKit/MKMedia.h: No such file or directory
/SourceCache/AppleRAID/AppleRAID-3.0.19/artest.c:39:36: error: MediaKit/MKMediaAccess.h: No such file or directory
Solution: ???

AppleRS232Serial

9J61

Problem: AppleRS232Serial.cpp:31:39: error: IOKit/serial/IOSerialKeys.h: No such file or directory
AppleRS232Serial.h:86:45: error: IOKit/serial/IOSerialDriverSync.h: No such file or directory
AppleRS232Serial.h:87:50: error: IOKit/serial/IORS232SerialStreamSync.h: No such file or directory
Solution: Fixed at between pass 10 and pass 11 with Apple16X50Serial fix

AppleUSBCDCDriver

9J61 (ok)

Problem: /SourceCache/AppleUSBCDCDriver/AppleUSBCDCDriver-3212.4.1/AppleUSBCDC/Classes/AppleUSBCDC.cpp:47:39: error: IOKit/serial/IOSerialKeys.h: No such file or directory
/SourceCache/AppleUSBCDCDriver/AppleUSBCDCDriver-3212.4.1/AppleUSBCDC/Classes/AppleUSBCDC.cpp:48:45: error: IOKit/serial/IOSerialDriverSync.h: No such file or directory
/SourceCache/AppleUSBCDCDriver/AppleUSBCDCDriver-3212.4.1/AppleUSBCDC/Classes/AppleUSBCDC.cpp:49:50: error: IOKit/serial/IOModemSerialStreamSync.h: No such file or directory
/SourceCache/AppleUSBCDCDriver/AppleUSBCDCDriver-3212.4.1/AppleUSBCDC/Classes/AppleUSBCDC.cpp:50:50: error: IOKit/serial/IORS232SerialStreamSync.h: No such file or directory
Solution: Fixed at between pass 10 and pass 11 with Apple16X50Serial fix

AppleUSBIrDA

9J61 (ok)

AppleUSBIrDA/AppleUSBIrDA.cpp:40:39: error: IOKit/serial/IOSerialKeys.h: No such file or directory
AppleUSBIrDA/AppleUSBIrDA.cpp:41:50: error: IOKit/serial/IOModemSerialStreamSync.h: No such file or directory
AppleUSBIrDA/AppleUSBIrDA.cpp:42:50: error: IOKit/serial/IORS232SerialStreamSync.h: No such file or directory
In file included from AppleUSBIrDA/AppleUSBIrDA.cpp:46:
AppleUSBIrDA/AppleUSBIrDA.h:27:45: error: IOKit/serial/IOSerialDriverSync.h: No such file or directory
Solution: Fixed at between pass 10 and pass 11 with Apple16X50Serial fix

Apple16X50Serial

9J61 (ok)

Problem: /SourceCache/Apple16X50Serial/Apple16X50Serial-19.3/Apple16X50UARTSync.h:31:64: error: IOKit/serial/IORS232SerialStreamSync.h: No such file or directory
/SourceCache/Apple16X50Serial/Apple16X50Serial-19.3/Apple16X50Queue.h:23:45: error: IOKit/serial/IOSerialStreamSync.h: No such file or directory
/SourceCache/Apple16X50Serial/Apple16X50Serial-19.3/Apple16X50PCCard.cpp:26:39: error: IOKit/serial/IOSerialKeys.h: No such file or directory
Solution:
chroot BuildRoot
mkdir /XCD/SY/Library/Frameworks/Kernel.framework/Versions/A/PrivateHeaders/IOKit/serial
cp SourceCache/IOSerialFamily/IOSerialFamily-32.2/IOSerialFamily.kmodproj/*h /XCD/SY/Library/Frameworks/Kernel.framework/Versions/A/PrivateHeaders/IOKit/serial 
then 
** BUILD SUCCEEDED **
[...]
Apple16X50Serial - 6 files registered.

BootCache

9J61

Problem: error: couldn't exec /XCD/loper/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings: No such file or directory
This is related to the availability of ruby (copystrings is a ruby script).
Solution: to have ruby. Please let us know if you have a solution.

CF 

darwinbuild CF

9J61

Problem: CFMessagePort.c:38:28: error: bootstrap_priv.h: No such file or directory
Solution: darwinbuild launchd && darwinbuild -load launchd

9G55

Problem: /usr/include/sys/stat.h:75:26: In file included from CFBundle.c:40error: Availability.h: No such file or directory
/usr/include/sys/stat.h:75:26: error: Availability.h: No such file or directory
SolutionThere is a new CarbonHeaders-9G55 posted which adds the rest of the Availability*.h headers that were missing.

9F33 (ok)

Problem: ForFoundationOnly.h:170:49: error: CoreFoundation/CFNotificationCenter.h: No such file or directory
Solution: cp /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/CFNotificationCenter.h BuildRoot/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/
Problem: In fact, CF-lite appears to missing many functions. Although the CF-lite built just above is enough for PureDarwin nano, it won't be sufficient in a full PureDarwin release since many vital daemons may use these missing functions. Some have been already patched or can be short-circuited with an empty body, but others clearly need some code inside their body.

For more information about the differences between the CF from Mac OS X and the CF-lite from DarwinBuild (the one we use) which explain why some expected symbols are missing, please take a look at CF-lite page.
This is a non exhaustive list of missing symbols found, from darwinbuild compilation or at runtime.

com.apple.configd[28]: 2008-10-30 23:17:34.674 configd[28:1503] CFLog: Error loading /System/Library/SystemConfiguration/PowerManagement.bundle/Contents/MacOS/PowerManagement: dlopen(/System/Library/SystemConfiguration/PowerManagement.bundle/Contents/MacOS/PowerManagement, 262): Symbol not found: _CFNotificationCenterGetDistributedCenter
com.apple.configd[28]: Referenced from: /System/Library/SystemConfiguration/PowerManagement.bundle/Contents/MacOS/PowerManagement 
com.apple.configd[28]: Expected in: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

com.apple.DirectoryServices[32]: dyld: Symbol not found: _NSInvalidArgumentException 
com.apple.DirectoryServices[32]: Referenced from: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 
com.apple.DirectoryServices[32]: Expected in: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

com.apple.kextd[21]: dyld: Symbol not found: _CFNotificationCenterGetLocalCenter 
com.apple.kextd[21]: Referenced from: /usr/libexec/kextd 
com.apple.kextd[21]: Expected in: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

com.apple.DirectoryServices[37]: dyld: Symbol not found: _NSGenericException 
com.apple.DirectoryServices[37]: Referenced from: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 
com.apple.DirectoryServices[37]: Expected in: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

Undefined symbols: 
"_CFPreferencesAppValueIsForced", referenced from: 
_processPreferences in SCNetworkConnectionPrivate.o 
_SCUserPreferencesIsForced in SCNetworkConnectionPrivate.o 
"_CFStringTransform", referenced from: 
__SC_dos_copy_string in SCDPrivate.o


dyld: Symbol not found: __kCFBundleResourceSpecificationKey
  Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
  Expected in: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

Solution: Build using the PureDarwin .plist (see Integrating patches and additional sources for instructions), which includes patches to resolve most of these problems.

CFNetwork

9J61

CFNetwork is not opensource in darwin 9 but in darwin 8. See http://darwinbuild.macosforge.org/trac/ticket/16

problem: *** Fetching Sources ...
Downloading http://src.macosforge.org/Projects//CFNetwork-219.tar.gz ...
Downloading http://src.macosforge.org/Patches//CFNetwork-219.tar.gz ...
*** Copying Sources ...
tar (child): /Users/aladin/PureDarwin/darwinbuild/9J61/Sources/CFNetwork-219.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
make: *** No rule to make target `install'.  Stop.
solution: The version in the original 9J61.plist seems to not match the available sources.
CFNetwork-129.20 <- is the latest available at this time, 9J61pd1 is not yet out, but the version could be downgraded in any plist which inherits from 9J61.

Problem: cc1: error: unrecognized command line option "-Wno-precomp"
Solution: Patch baby patch!

CFOpenDirectory

darwinbuild CFOpenDirectory

Notes: CFOpenDirectory is needed by `passwd'

9J61 ??

9G55

Problem: error: couldn't exec /XCD/loper/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings: No such file or directory
Solution: related implicitly (but mandatory) to ruby as explained later below.

9F33

Problem: dyld: Library not loaded: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
Referenced from: /System/Library/PrivateFrameworks/OpenDirectory.framework/Versions/A/OpenDirectory
Reason: image not found
Solution: Patch OpenDirectory so that it doesn't need Foundation, which is not part of Darwin (TODO!?)

CPAN

9J61pd1

/usr/bin/perl ../xsubpps/xsubpp-5.8.0 -noprototypes -typemap /System/Library/Perl/5.8.8/ExtUtils/typemap  AppleEvents.xs > AppleEvents.xsc && mv AppleEvents.xsc AppleEvents.c
cc -c -pipe -no-cpp-precomp -arch ppc -arch i386 -I/Developer/Headers/FlatCarbon/ -arch ppc -arch i386 -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include -fpascal-strings -O3   -DVERSION=\"1.32\" -DXS_VERSION=\"1.32\"  "-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE"   AppleEvents.c
In file included from AppleEvents.xs:63:
../Carbon.h:67:20: error: In file included from AppleEvents.xs:63:
../Carbon.h:67:20: error: Events.h: No such file or directory
Events.h: No such file or directory
../Carbon.h:68:21: ../Carbon.h:68:21: error: error: Dialogs.h: No such file or directory
Dialogs.h: No such file or directory
../Carbon.h:69:19: ../Carbon.h:69:19:error:  Files.h: No such file or directoryerror: 
Files.h: No such file or directory
../Carbon.h:70:19: ../Carbon.h:70:19:error:  Types.h: No such file or directoryerror: 
Types.h: No such file or directory
../Carbon.h:71:31: ../Carbon.h:71:31:error:  ConditionalMacros.h: No such file or directoryerror: 
ConditionalMacros.h: No such file or directory


CPANInternal

9J61
Problem: WARNING: YAML: Prerequisite YAML isn't installed
WARNING: ExtUtils::ParseXS: Prerequisite ExtUtils::ParseXS isn't installed
WARNING: Archive::Tar: Prerequisite Archive::Tar isn't installed
ERRORS/WARNINGS FOUND IN PREREQUISITES.  You may wish to install the versions
 of the modules indicated above before proceeding with this installation.


DSPasswordServerPlugin

9J61

Problem: /SourceCache/DSPasswordServerPlugin/DSPasswordServerPlugin-208.5/CPSPlugIn.h:56:24: error: sasl/sasl.h: No such file or directory
/SourceCache/DSPasswordServerPlugin/DSPasswordServerPlugin-208.5/CPSPlugIn.h:57:28: error: sasl/saslutil.h: No such file or directory

/SourceCache/DSPasswordServerPlugin/DSPasswordServerPlugin-208.5/CPSPlugIn.h:65:40: error: DirectoryServiceCore/CBuff.h: No such file or directory
/SourceCache/DSPasswordServerPlugin/DSPasswordServerPlugin-208.5/CPSPlugIn.h:66:44: error: DirectoryServiceCore/CDataBuff.h: No such file or directory
/SourceCache/DSPasswordServerPlugin/DSPasswordServerPlugin-208.5/CPSPlugIn.h:67:49: error: DirectoryServiceCore/CAttributeList.h: No such file or directory
/SourceCache/DSPasswordServerPlugin/DSPasswordServerPlugin-208.5/CPSPlugIn.h:68:47: error: DirectoryServiceCore/SharedConsts.h: No such file or directory
/SourceCache/DSPasswordServerPlugin/DSPasswordServerPlugin-208.5/CPSPlugIn.h:69:45: error: DirectoryServiceCore/PluginData.h: No such file or directory
/SourceCache/DSPasswordServerPlugin/DSPasswordServerPlugin-208.5/CPSPlugIn.h:70:50: error: DirectoryServiceCore/CDSServerModule.h: No such file or directory
/SourceCache/DSPasswordServerPlugin/DSPasswordServerPlugin-208.5/CPSPlugIn.h:71:46: error: DirectoryServiceCore/CSharedData.h: No such file or directory
/SourceCache/DSPasswordServerPlugin/DSPasswordServerPlugin-208.5/CPSPlugIn.mm:43:50: error: DirectoryServiceCore/ServerModuleLib.h: No such file or directory
/SourceCache/DSPasswordServerPlugin/DSPasswordServerPlugin-208.5/CPSPlugIn.mm:45:42: error: DirectoryServiceCore/CRCCalc.h: No such file or directory
/SourceCache/DSPasswordServerPlugin/DSPasswordServerPlugin-208.5/CPSPlugIn.mm:47:45: error: DirectoryServiceCore/CPlugInRef.h: No such file or directory
/SourceCache/DSPasswordServerPlugin/DSPasswordServerPlugin-208.5/CPSPlugIn.mm:48:44: error: DirectoryServiceCore/DSCThread.h: No such file or directory
/SourceCache/DSPasswordServerPlugin/DSPasswordServerPlugin-208.5/CPSPlugIn.mm:49:44: error: DirectoryServiceCore/CContinue.h: No such file or directory
/SourceCache/DSPasswordServerPlugin/DSPasswordServerPlugin-208.5/CPSPlugIn.mm:50:51: error: DirectoryServiceCore/DSEventSemaphore.h: No such file or directory
/SourceCache/DSPasswordServerPlugin/DSPasswordServerPlugin-208.5/CPSPlugIn.mm:51:51: error: DirectoryServiceCore/DSMutexSemaphore.h: No such file or directory
/SourceCache/DSPasswordServerPlugin/DSPasswordServerPlugin-208.5/CPSPlugIn.mm:53:42: error: DirectoryServiceCore/DSUtils.h: No such file or directory
/SourceCache/DSPasswordServerPlugin/DSPasswordServerPlugin-208.5/CPSPlugIn.mm:54:47: error: DirectoryServiceCore/PrivateTypes.h: No such file or directory
Solution: See patch.

CyrusIMAP

9J61pd1 (ok)

Problem: /bin/sh: sw_vers: command not found

Solution: echo '

#!/bin/sh

echo "ProductName: PureDarwin"

echo "ProductVersion: 10.5.7"

echo "BuildVersion: 9J61"' > BuildRoot/usr/bin/sw_vers


Problem: missing *sasl.h

Solution: mkdir -p BuildRoot/usr/include/sasl

cp BuildRoot/SourceCache/passwordserver_sasl/passwordserver_sasl-118.1/cyrus_sasl/include/*h BuildRoot/usr/include/sasl 



DirectoryService

darwinbuild DirectoryService

9J61 ??

9F33

Problem: error: couldn't exec /usr/sbin/dtrace: No such file or directory
Solution: Fetch 9F33pd1.plist into .build directory of your DarwinBuild repository, then build dtrace first:
darwinbuild dtrace && darwinbuild -load dtrace && darwinbuild DirectoryService

Problem: /usr/sbin/dtrace -h -s Threads/dslockstat.d -o "/private/var/tmp/DirectoryService/DirectoryService-514.23.obj/DirectoryService.build/API Framework.build/DerivedSources/dslockstat.h"
dtrace(13670) malloc: *** error for object 0x116310: Non-aligned pointer being freed (2)
*** set a breakpoint in malloc_error_break to debug
dtrace(13670) malloc: *** error for object 0x116310: Non-aligned pointer being freed (2)
*** set a breakpoint in malloc_error_break to debug
dtrace(13670) malloc: *** error for object 0x116310: Non-aligned pointer being freed (2)
*** set a breakpoint in malloc_error_break to debug
Solution: Please, let us know if you have one.

Problem: /private/var/tmp/DirectoryService/DirectoryService-514.23.obj/DirectoryService.build/API Framework.build/DerivedSources/dslockstat.h:36: error: expected unqualified-id before 'long'
/private/var/tmp/DirectoryService/DirectoryService-514.23.obj/DirectoryService.build/API Framework.build/DerivedSources/dslockstat.h:36: error: expected `)' before 'long'
/private/var/tmp/DirectoryService/DirectoryService-514.23.obj/DirectoryService.build/API Framework.build/DerivedSources/dslockstat.h:38: error: expected unqualified-id before 'long'
/private/var/tmp/DirectoryService/DirectoryService-514.23.obj/DirectoryService.build/API Framework.build/DerivedSources/dslockstat.h:38: error: expected `)' before 'long'
Solution: ...

DirectoryServiceDaemon

darwinbuild DirectoryServiceDaemon

9J61

9F33

Problem: /SourceCache/DirectoryServiceDaemon/DirectoryService-514.23/PlugIns/Common/CDSAuthParams.h:28:37: error: PasswordServer/AuthFile.h: No such file or directory
/SourceCache/DirectoryServiceDaemon/DirectoryService-514.23/PlugIns/Common/CDSAuthParams.h:92: error: 'PWGlobalAccessFeatures' does not name a type
/SourceCache/DirectoryServiceDaemon/DirectoryService-514.23/PlugIns/Common/CDSAuthParams.h:93: error: 'PWGlobalMoreAccessFeatures' does not name a type
Solution: cp -R BuildRoot/System/Library/PrivateFrameworks/PasswordServer.framework BuildRoot/XCD/SY/Library/PrivateFrameworks

Problem: /SourceCache/DirectoryServiceDaemon/DirectoryService-514.23/Server/DirServiceMain.cpp:61:25: error: XSEventPort.h: No such file or directory
Solution: Please, let us know if you have one.


FastCGI

9J61

(cd gems && /usr/bin/gem install --install-dir /private/var/tmp/FastCGI/FastCGI-4.root/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 --local --include-dependencies --rdoc fcgi -- with-fcgi-dir=/private/var/tmp/FastCGI/FastCGI-4.root/usr)
/bin/sh: /usr/bin/gem: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
make[1]: *** [install-ruby-binding] Error 126



ICU (ok)

9J61 (ok)

see n-pass.

9F33pd1 (ok)

Fetch 9F33pd1.plist into .build directory of your DarwinBuild repository, then:
darwinbuild -init 9F33pd1

The plist file above contains a workaround that tend to avoid an error related to http://darwinbuild.macosforge.org/trac/ticket/38 .

IOATAPIProtocolTransport

9J61

Problem: IOATAPIProtocolTransport.cpp:33:50: error: IOKit/scsi/SCSICommandOperationCodes.h: No such file or directory
IOATAPIProtocolTransport.cpp:34:33: error: IOKit/scsi/SCSITask.h: No such file or directory
IOATAPIProtocolTransport.cpp:35:107: error: IOKit/scsi/SCSITaskDefinition.h: No such file or directory
IOATAPIProtocolTransport.h:50:51: error: IOKit/storage/ata/IOATAStorageDefines.h: No such file or directory
IOATAPIProtocolTransport.h:53:47: error: IOKit/scsi/IOSCSIProtocolServices.h: No such file or directory

IOBDBlockStorageDevice

9J61

Problem: /SourceCache/IOBDStorageFamily/IOBDStorageFamily-6/IOBDBlockStorageDevice.cpp:24:50: error: IOKit/storage/IOBDBlockStorageDevice.h: No such file or directory
/SourceCache/IOBDStorageFamily/IOBDStorageFamily-6/IOBDBlockStorageDriver.cpp:24:50: error: IOKit/storage/IOBDBlockStorageDriver.h: No such file or directory
/SourceCache/IOBDStorageFamily/IOBDStorageFamily-6/IOBDBlockStorageDriver.cpp:25:37: error: IOKit/storage/IOBDMedia.h: No such file or directory

IOFireWireSerialBusProtocolTransport

9J61
Problem: /SourceCache/IOFireWireSerialBusProtocolTransport/IOFireWireSerialBusProtocolTransport-152.0.2/IOFireWireSerialBusProtocolTransport.h:42:47: error: IOKit/scsi/IOSCSIProtocolServices.h: No such file or directory
Where can we found it? except in the sdk.

IOHIDFamily

9J61

?

9F33pd1

Fetch 9F33pd1.plist into .build directory of your DarwinBuild repository, then:

darwinbuild -init 9F33pd1

The plist file above contains some patches that tend to avoid most of the errors just below.

darwinbuild IOHIDFamily

Problem: /System/Library/Frameworks/IOKit.framework/PrivateHeaders/hid/IOHIDLibPrivate.h:30:42: error: IOKit/hid/IOHIDLibUserClient.h: No such file or directory
Pseudo-solution: Headers from IOKitUser appear to be needed:
cp BuildRoot/XCD/SY/Library/Frameworks/IOKit.framework/Versions/A/PrivateHeaders/hid/IOHIDLibUserClient.h BuildRoot/System/Library/Frameworks/IOKit.framework/Versions/A/PrivateHeaders/hid/

Problem: /SourceCache/IOHIDFamily/IOHIDFamily-258.3/IOHIDLib/IOHIDDeviceClass.cpp:455: error: 'nil' was not declared in this scope
Problem: /SourceCache/IOHIDFamily/IOHIDFamily-258.3/IOHIDLib/IOHIDQueueClass.cpp:447: error: 'nil' was not declared in this scope
Solution: #include <objc/objc.h>

Problem: /SourceCache/IOHIDFamily/IOHIDFamily-258.3/hidd/hidd.c:28: error: 'IOHIDEventSystemRef' undeclared (first use in this function)
Solution: ?

Problem: /SourceCache/IOHIDFamily/IOHIDFamily-258.3/IOHIDLib/IOHIDDeviceClass.cpp:366: error: 'kIOHIDLibUserClientConnectManager' was not declared in this scope
Solution: ?


IOKitUser

darwinbuild IOKitUser

Problem: The framework is registered in /XCD/SY:
40755 0 0 0 ./XCD/SY/Library/Frameworks/IOKit.framework
Pseudo-Solution: Edit Roots/IOKitUser/IOKitUser-388.2.1.root~28/XCD/SY/Library/Frameworks/IOKit.framework/Versions/A/IOKit 
and replace XCD/SY in the binary with /System for all occurences.
Then:
mv Roots/IOKitUser/IOKitUser-388.2.1.root~28/XCD/SY/Library/ 
mkdir Roots/IOKitUser/IOKitUser-388.2.1.root~28/System 
mv Roots/IOKitUser/IOKitUser-388.2.1.root~28/XCD/SY/Library/ Roots/IOKitUser/IOKitUser-388.2.1.root~28/System 
rm -R Roots/IOKitUser/IOKitUser-388.2.1.root~28/XCD/
After in the chrooted buildroot:
file /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit: Mach-O universal binary with 4 architectures
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (for architecture i386): Mach-O dynamically linked shared library i386
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (for architecture ppc7400): Mach-O dynamically linked shared library ppc
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (for architecture ppc64): Mach-O 64-bit dynamically linked shared library ppc64
and 
otool -L /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit:
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.0.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.4)
Instead of 
otool -L /XCD/SY/Library/Frameworks/IOKit.framework/Versions/A/IOKit 
/XCD/SY/Library/Frameworks/IOKit.framework/Versions/A/IOKit:
/XCD/SY/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/XCD/SY/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.18.0)
/XCD/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
/XCD/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/XCD/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.4)
Solution: Please, let us know if you have one.

9J61

PureFoundation need to be added (for `arch' dep).
Problem: pbxcp: IOAccelSurfaceControl.h: No such file or directory
pbxcp: IOGraphicsLibPrivate.h: No such file or directory
Solution: cp -R BuildRoot/SourceCache/IOKitUser/IOKitUser-388.53.11/graphics.subproj/*h BuildRoot/System/Library/Frameworks/IOKit.framework/Versions/A/PrivateHeaders/graphics
cp -R BuildRoot/private/var/tmp/IOKitUser/IOKitUser-388.53.11.sym/BuiltProducts/include/IOKit/graphics/IO* BuildRoot/System/Library/Frameworks/IOKit.framework/Versions/A/PrivateHeaders/graphics

Problem: pbxcp: IODisplayProductIDs.h: No such file or directory (this one seems to be part of AppleDisplay project)
Solution: darwinbuild AppleDisplay (it could fail to build, but anyway we need the header file)
then cp ./BuildRoot/private/var/tmp/AppleDisplays/AppleDisplays-1140.0.5.root/System/Library/Frameworks/IOKit.framework/Versions/A/PrivateHeaders/graphics/IODisplayProductIDs.h BuildRoot/System/Library/Frameworks/IOKit.framework/Versions/A/PrivateHeaders/graphics

Problem: /SourceCache/IOKitUser/IOKitUser-388.53.11/IOKitLib.c:351: error: 'kNilOptions' undeclared (first use in this function)
Pseudo-Solution: Patch BuildRoot/SourceCache/IOKitUser/IOKitUser-388.2.1/IOKitLib.h with
#ifndef kNilOptions 
    #define kNilOptions 0
#endif

... follow solutions and pseudo-solutions as below. 

9F33pd1 (+ppc +ppc64 +x86 +x86_64)

To build isoutil on 9J61, iokituser for i386+ppc in 9F33pd1 need to be build.. + some regular solutions available below needs to be applied..
Also i386 specific arch has been removed from 9F33pd1 of IOKitUser project.

Problems:
cp -R BuildRoot/SourceCache/IOGraphics/IOGraphics-305.14/IOGraphicsFamily/IOKit/graphics/* BuildRoot/System/Library/Frameworks/IOKit.framework/Versions/A/PrivateHeaders/graphics/

cp BuildRoot/XCD/SY/Library/Frameworks/IOKit.framework/Versions/A/PrivateHeaders/storage/RAID/AppleRAIDUserLib.h BuildRoot/System/Library/Frameworks/IOKit.framework/Versions/A/PrivateHeaders/storage/RAID

cp /Users/aladin/PureDarwin/darwinbuild/9J61/.build/buildroot.nfs/SourceCache/AppleDisplays/AppleDisplays-1140.0.5/*h BuildRoot/System/Library/Frameworks/IOKit.framework/Versions/A/PrivateHeaders/graphics 

cp -R /Users/aladin/PureDarwin/darwinbuild/9J61/.build/buildroot.nfs/SourceCache/IOGraphics/IOGraphics-305.14/IOGraphicsFamily/IOKit/i2c BuildRoot/System/Library/Frameworks/IOKit.framework/Versions/A/PrivateHeaders/ 

Problem: /SourceCache/IOKitUser/IOKitUser-388.2.1/pwr_mgt.subproj/IOPMEnergyPrefs.c:36:31: error: servers/bootstrap.h: No such file or directory
According to DTrace:
  1  17720                       open:entry cc1 /private/var/tmp/IOKitUser/IOKitUser-388.2.1.sym/BuiltProducts/include/servers/bootstrap.h
  1  17720                       open:entry cc1 /private/var/tmp/IOKitUser/IOKitUser-388.2.1.obj/IOKitUser.build/DerivedSources/servers/bootstrap.h
  1  17720                       open:entry cc1 /System/Library/Frameworks/System.framework/PrivateHeaders/servers/bootstrap.h
  1  17720                       open:entry cc1 /private/var/tmp/IOKitUser/IOKitUser-388.2.1.obj/IOKitUser.build/IOKit.build/DerivedSources/servers/bootstrap.h
  1  17720                       open:entry cc1 /usr/local/include/servers/bootstrap.h
  1  17720                       open:entry cc1 /usr/lib/gcc/powerpc-apple-darwin9/4.0.1/include/servers/bootstrap.h
  1  17720                       open:entry cc1 /usr/include/servers/bootstrap.h

Solution: cp -R /Developer/SDKs/MacOSX10.5.sdk/usr/include/servers/ BuildRoot/usr/include
cp /Developer/SDKs/MacOSX10.5.sdk/usr/include/servers/* BuildRoot/usr/include/servers/

At the end: ** BUILD SUCCEEDED **
o// 
That helps to satisfy isoutil on 9J61 per example.
`file':
XCD/SY/Library/Frameworks/IOKit.framework/IOKit (for architecture ppc7400): Mach-O dynamically linked shared library ppc
XCD/SY/Library/Frameworks/IOKit.framework/IOKit (for architecture ppc64): Mach-O 64-bit dynamically linked shared library ppc64
XCD/SY/Library/Frameworks/IOKit.framework/IOKit (for architecture i386): Mach-O dynamically linked shared library i386
XCD/SY/Library/Frameworks/IOKit.framework/IOKit (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64

9F33pd1 (ok)

Fetch 9F33pd1.plist into .build directory of your DarwinBuild repository, then:

darwinbuild -init 9F33pd1

The plist file above contains some patches that tend to avoid most of the errors just below.
In order to build IOKitUser, you also need to alter your BuildRoot directory, a minimalist script and some patches are available here.

./pd_injectbuildroot /Volumes/Builds/9F33/BuildRoot/

Not sure if it is needed or not:

darwinbuild -headers IOKitUser

Now, prepare coffee.

darwinbuild IOKitUser

Problem: /usr/bin/mig -DIOKIT...
dyld: Library not loaded: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
  Referenced from: /usr/bin/arch
  Reason: image not found
gcc-4.0: Invalid arch name : -D__MACH30__
mig: fatal: "<no name yet>", line -1: no SubSystem declaration
SolutionWe're creating a trivial hook where `arch' calls `uname -p' (Alternatively, we could patch the sources to use `uname -p').
mv /usr/bin/arch /usr/bin/arch.origin
echo 'uname -p' > /usr/bin/arch
chmod +x /usr/bin/arch
Alternative solution: PureFoundation can be added manually in the buildroot to satisfy dependency referenced to Foundation.framework.
root@europa:/Volumes/Builds/9G55/BuildRoot# mv PureFoundation/Foundation.framework System/Library/Frameworks
root@europa:/Volumes/Builds/9G55/BuildRoot# chroot .
europa# arch
NSObject +load
i386

Problem: ForFoundationOnly.h:170:49: error: CoreFoundation/CFNotificationCenter.h: No such file or directory
Solution: cp /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/CFNotificationCenter.h BuildRoot/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/
Also: The latest builds of the patched CFLite which accompanies PureFoundation include an implementation of CFNotificationCenter.

Problem: /XCD/loper/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -strip-debug-symbols -resolve-src-symlinks /System/Library/Frameworks/IOKit.framework/Versions/A/PrivateHeaders/graphics/IOAccelSurfaceControl.h /private/var/tmp/IOKitUser/IOKitUser-388.2.1.sym/BuiltProducts/include/IOKit/graphics
pbxcp: IOAccelSurfaceControl.h: No such file or directory
Problem: /XCD/loper/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -strip-debug-symbols -resolve-src-symlinks /System/Library/Frameworks/IOKit.framework/Versions/A/PrivateHeaders/graphics/IOGraphicsLibPrivate.h /private/var/tmp/IOKitUser/IOKitUser-388.2.1.sym/BuiltProducts/include/IOKit/graphics
pbxcp: IOGraphicsLibPrivate.h: No such file or directory
Solution: mkdir -p BuildRoot/System/Library/Frameworks/IOKit.framework/Versions/A/PrivateHeaders/graphics
Then copy to the directory created just above from:
  • BuildRoot/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/*.h
  • BuildRoot/private/var/tmp/IOKitUser/IOKitUser-388.2.1.root/XCD/SY/Library/Frameworks/IOKit.framework/Versions/A/PrivateHeaders/graphics/*.h
  • BuildRoot/private/var/tmp/IOKitUser/IOKitUser-388.2.1.sym/BuiltProducts/include/IOKit/graphics/*.h
TODO: clean location please..

Problem: /XCD/loper/usr/bin/mig: line 147: : command not found
Solution:  darwinbuild bootstrap_cmds
darwinbuild -load bootstrap_cmds
cp BuildRoot/usr/bin/arch BuildRoot/usr/bin/mig BuildRoot/XCD/loper/usr/bin/
mkdir BuildRoot/XCD/loper/usr/libexec/
cp BuildRoot/usr/libexec/migcom BuildRoot/XCD/loper/usr/libexec

Problem: Something related to Carbon and to OStype
/System/Library/Frameworks/Security.framework/Headers/SecBase.h:63: error: syntax error before 'SecKeychainAttrType'
/System/Library/Frameworks/Security.framework/Headers/SecBase.h:74: error: syntax error before 'SecKeychainAttrType'
/System/Library/Frameworks/Security.framework/Headers/SecBase.h:77: error: syntax error before '}' token
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:78: error: syntax error before 'SecAuthenticationType'
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:117: error: syntax error before 'SecProtocolType'
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:526: error: syntax error before 'SecProtocolType'
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:549: error: syntax error before 'SecProtocolType'
/System/Library/Frameworks/Security.framework/Headers/SecKeychainItem.h:45: error: syntax error before 'SecItemClass'
/System/Library/Frameworks/Security.framework/Headers/SecKeychainItem.h:75: error: syntax error before 'SecItemAttr'
/System/Library/Frameworks/Security.framework/Headers/SecKeychainItem.h:186: error: syntax error before 'itemClass'
/System/Library/Frameworks/Security.framework/Headers/SecKeychainItem.h:211: error: syntax error before 'SecItemClass'
/System/Library/Frameworks/Security.framework/Headers/SecKeychainItem.h:232: error: syntax error before 'SecItemClass'
/System/Library/Frameworks/Security.framework/Headers/SecKeychainSearch.h:55: error: syntax error before 'SecItemClass'
Pseudo-SolutionComment all the problematic lines in /System/Library/Frameworks/Security.framework/Headers/*h
Solution: Add in SecBase.h #include <CarbonCore/MacTypes.h>

Problem/SourceCache/IOKitUser/IOKitUser-388.2.1/IOKitLib.c:347: error: 'kNilOptions' undeclared (first use in this function)
Pseudo-Solution: Patch BuildRoot/SourceCache/IOKitUser/IOKitUser-388.2.1/IOKitLib.h with
#ifndef kNilOptions 
    #define kNilOptions 0
#endif
Solution: Add in SecBase.h #include <CarbonCore/MacTypes.h>

Problem: It seems related to FourCC (and Carbon?)
/private/var/tmp/IOKitUser/IOKitUser-388.2.1.sym/BuiltProducts/include/IOKit/graphics/IOGraphicsInterface.h:92: error: syntax error before 'FourCharCode'
Pseudo-Solution: Comment line 91 and line 92 in BuildRoot/System/Library/Frameworks/IOKit.framework/Versions/A/Headers/graphics/IOGraphicsInterface.h as 
//    IOReturn (*CopyCapabilities)
//        (void *thisPointer, FourCharCode select, CFTypeRef * capabilities);
TODO: FourCharCode needs to be included instead of disabled, there is a definition somewhere to include in the proper way at the right place

Problem/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/GetSymbolFromPEF.h:65: error: syntax error before 'LogicalAddress'

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/GetSymbolFromPEF.h:65: warning: no semicolon at end of struct or union

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/GetSymbolFromPEF.h:183: error: syntax error before 'LogicalAddress'

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/GetSymbolFromPEF.h:193: error: syntax error before 'thePEFPtr'

Pseudo-SolutionReplace the unknown types with "void *", recreate missing variable declaration.

Problem: /SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:121: error: syntax error before 'thePEFPtr'

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:136: error: 'sectionHeaderPtr' undeclared (first use in this function)

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:136: error: (Each undeclared identifier is reported only once

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:136: error: for each function it appears in.)

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:142: error: 'nil' undeclared (first use in this function)

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:148: error: 'thePEFPtr' undeclared (first use in this function)

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:294: error: 'theData' undeclared (first use in this function)

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:296: error: 'noErr' undeclared (first use in this function)

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:300: error: 'Ptr' undeclared (first use in this function)

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:300: error: syntax error before 'originalUnpackBuffer'

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:315: error: syntax error before 'thePEFPtr'

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:318: error: invalid storage class for function 'GetSymbolFromPEF'

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:319: error: 'inSymbolName' undeclared (first use in this function)

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:331: error: 'LogicalAddress' undeclared (first use in this function)

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:331: error: syntax error before 'expandedDataPtr'

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:338: error: dereferencing pointer to incomplete type

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:342: error: dereferencing pointer to incomplete type

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:347: error: 'theSymbolPtr' undeclared (first use in this function)

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:354: error: dereferencing pointer to incomplete type

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:358: error: invalid application of 'sizeof' to incomplete type 'ContainerHeader' 

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:410: error: invalid application of 'sizeof' to incomplete type 'ContainerHeader' 

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:413: error: 'expandedDataPtr' undeclared (first use in this function)

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:437: error: 'theSymbolSize' undeclared (first use in this function)

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:444: error: syntax error before 'expandedDataPtr'

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:454: error: syntax error before 'thePEFPtr'

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:455: error: invalid storage class for function 'GetPEFLen'

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:465: error: dereferencing pointer to incomplete type

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:470: error: dereferencing pointer to incomplete type

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:475: error: invalid use of undefined type 'struct ContainerHeader'

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:477: error: dereferencing pointer to incomplete type

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:496: error: invalid storage class for function 'SymbolCompare'

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:548: error: invalid storage class for function 'ExaminePEF'

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:645: error: syntax error before 'LogicalAddress'

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:727: error: invalid storage class for function 'PEFExamineFile'

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:793: error: invalid storage class for function '_PEFExamineFile'

/SourceCache/IOKitUser/IOKitUser-388.2.1/graphics.subproj/PEFSupport.c:810: error: invalid storage class for function 'PEFExamineBundle'

Pseudo-Solution: Replace the unknown types with "void *", recreate missing variable declaration.

Problem: /System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h:352: error: syntax error before numeric constant
Pseudo-Solution: Comment at line 352 in MacTypes.h
//enum {
//  kNilOptions                   = 0
//};
TODO: This looks like what we need just above.. what a paradox.

Problem: mig: fatal: "/SourceCache/IOKitUser/IOKitUser-388.2.1/hid.subproj/IOHIDEventSystem.defs", line 1: no SubSystem declaration
Pseudo-Solution: Feed the empty file with a subsystem declaration as:
subsystem IOHIDEventSystem 71000;
TODO: What should we really do?

Problem: ld64: warning, -seg_addr_table file cannot be read: /AppleInternal/XCD/loper/seg_addr_table
Solution: chroot BuildRoot
mkdir -p /AppleInternal/XCD/loper

ln -s /usr/local/bin/seg_addr_table /AppleInternal/XCD/loper/


Problem: Ruby is (implicitly) missing:
error: couldn't exec /XCD/loper/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist: No such file or directory

error: couldn't exec /XCD/loper/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings: No such file or directory

Pseudo-Solution: cp /usr/bin/ruby BuildRoot/usr/bin/

cp /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/libruby.1.dylib BuildRoot/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/libruby.1.dylib


Problem: /XCD/loper/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist:15:in `require': no such file to load -- optparse (LoadError)

/XCD/loper/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings:16:in `require': no such file to load -- optparse (LoadError)

Solution: cp -R /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse* BuildRoot/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
Here, compilation pseudo-success for the first time after 94 attempts... \o/

Copying IOKitUser from /Volumes/Builds/9F33/Roots/IOKitUser/IOKitUser-388.2.1.root~95 ...

IOKitUser - 70 files registered.


Notes: Do not alter the prototype of functions, or you will end with undefined symbols at linking as:
Undefined symbols:

  "_GetSymbolFromPEF", referenced from:

      __PEFExamineFile in PEFSupport.o

      __PEFExamineFile in PEFSupport.o

  "_GetPEFLen", referenced from:

      __PEFExamineFile in PEFSupport.o


Problem: IOKit is linked to CoreFoundation instead of CoreFoundation.framework

/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit:

/XCD/SY/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)

/System/Library/Frameworks/CoreFoundation/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.0.0)

/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)

/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)

/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.1)

Solution: In fact, the problem comes from compiled CF which is linked to a wrong path.
/System/Library/Frameworks/CoreFoundation/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.0.0)
Fetch 9F33pd1.plist into .build directory of your DarwinBuild repository, then rebuild CF:
darwinbuild -init 9F33pd1 && darwinbuild CF && darwinbuild -load CF
The plist file above contains some patches that tend to avoid most of the errors just below.
After recompilation of CF, dependency is fixed:
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.0.0)
Notes:

IOKitTools

9J61 (ok)

See the n-pass + IOKitUser stories..

Problem: /SourceCache/IOKitTools/IOKitTools-76/ioreg.tproj/ioreg.c:25:78: error: IOKit/IOCFSerialize.h: No such file or directory
/SourceCache/IOKitTools/IOKitTools-76/ioreg.tproj/ioreg.c:26:77: error: IOKit/IOKitLib.h: No such file or directory
/SourceCache/IOKitTools/IOKitTools-76/ioreg.tproj/ioreg.c:27:82: error: IOKit/IOKitLibPrivate.h: No such file or directory
Solution: cp -R BuildRoot/XCD/SY/Library/Frameworks/IOKit.framework/Versions/A/PrivateHeaders/* BuildRoot/System/Library/Frameworks/IOKit.framework/Versions/A/PrivateHeaders
cp -R BuildRoot /XCD/SY/Library/Frameworks/IOKit.framework/Versions/A/Headers/* BuildRoot/System/Library/Frameworks/IOKit.framework/Versions/A/Headers

Libc

9J61pd1

Problem: /private/var/tmp/Libc/Libc-498.1.7.sym/include/plockstat.h:116: error: syntax error before '*' token
Solution: patch plockstat.h "on the fly" (comments error lines). It is generated via DTrace it seems at compilation time, and all error are some prototypes without name, only the parameters (e.g., (int a, int b..) instead of fctname(int a, int b..)).
+ see patch

Libc_debug

9J61pd1

Problem: sh: line 2: 58568 Trace/BPT trap          dtrace -o /private/var/tmp/Libc_debug/Libc_debug-498.1.7.sym/include/plockstat.h -C -h -s /SourceCache/Libc_debug/Libc-498.1.7/pthreads/plockstat.d
*** Error code 133
1 error

Libc_profile

9J61pd1

Problem: sh: line 2: 60868 Trace/BPT trap          dtrace -o /private/var/tmp/Libc_profile/Libc_profile-498.1.7.sym/include/plockstat.h -C -h -s /SourceCache/Libc_profile/Libc-498.1.7/pthreads/plockstat.d
*** Error code 133
1 error
*** Error code 2
1 error
*** Error code 2

Libsystem

darwinbuild Libsystem

9J61 ?

9F33

Problem: ar: libc-partial_debug.a is a fat file (use libtool(1) or lipo(1) and ar(1) on it)
ar: libc-partial_debug.a: Inappropriate file type or format
Solution: lipo BuildRoot/usr/local/lib/system/libc-partial_debug.a -thin i386 -output libc-partial_debug.a
mv libc-partial_debug.a BuildRoot/usr/local/lib/system/libc-partial_debug.a

Problem: ar: libsyscall_debug.a is a fat file (use libtool(1) or lipo(1) and ar(1) on it)
ar: libsyscall_debug.a: Inappropriate file type or format
Solution: lipo BuildRoot/usr/local/lib/system/libsyscall_debug.a -thin i386 -output libsyscall_debug.a
mv libsyscall_debug.a BuildRoot/usr/local/lib/system/libsyscall_debug.a

Problem: ar: libc-partial.a is a fat file (use libtool(1) or lipo(1) and ar(1) on it)
ar: libc-partial.a: Inappropriate file type or format
Solution: lipo BuildRoot/usr/local/lib/system/libc-partial.a -thin i386 -output libc-partial.a
mv libc-partial.a BuildRoot/usr/local/lib/system/libc-partial.a

Problem: ar: libsyscall.a is a fat file (use libtool(1) or lipo(1) and ar(1) on it)
ar: libsyscall.a: Inappropriate file type or format
Solution: lipo BuildRoot/usr/local/lib/system/libsyscall.a -thin i386 -output libsyscall.a
mv libsyscall.a BuildRoot/usr/local/lib/system/libsyscall.a

Problem: ar: libc-partial_profile.a is a fat file (use libtool(1) or lipo(1) and ar(1) on it)
ar: libc-partial_profile.a: Inappropriate file type or format
Solution: lipo BuildRoot/usr/local/lib/system/libc-partial_profile.a -thin i386 -output libc-partial_profile.a
mv libc-partial_profile.a BuildRoot/usr/local/lib/system/libc-partial_profile.a

Problem: ar: libsyscall_profile.a is a fat file (use libtool(1) or lipo(1) and ar(1) on it)
ar: libsyscall_profile.a: Inappropriate file type or format
Solution: lipo BuildRoot/usr/local/lib/system/libsyscall_profile.a -thin i386 -output libsyscall_profile.a
mv libsyscall_profile.a BuildRoot/usr/local/lib/system/libsyscall_profile.a

Problem: ld: library not found for -llaunch
Solution: Please, let us know if know how to compile and deploy liblaunch.
See http://darwinbuild.macosforge.org/trac/ticket/10

NFS

9J61 (ok)

Problems: /SourceCache/NFS/NFS-25.2/showmount/mshow.c:31:20: error: dns_sd.h: No such file or directory
/SourceCache/NFS/NFS-25.2/showmount/mshow.c:31:20: error: dns_sd.h: No such file or directory
Solution: cp -R /Developer/SDKs/MacOSX10.5.sdk/usr/include/dns* BuildRoot/usr/include

Problem: /SourceCache/NFS/NFS-25.2/nfsd/main.c:86:20:/SourceCache/NFS/NFS-25.2/nfsd/main.c:86:20:  error: error: launch.h: No such file or directorylaunch.h: No such file or directory
Solution: cp /Users/aladin/PureDarwin/darwinbuild/9J61/.build/buildroot.nfs/private/var/tmp/launchd_libs/launchd_libs-258.22.root/usr/include/* BuildRoot/usr/include

Then !

BUILD TIME: 0h 0m 14s
EXIT STATUS: 0
NFS - 25 files registered.

PowerManagement

9J61

Problem: 
/SourceCache/PowerManagement/PowerManagement-158.10/AppleSmartBatteryManager/AppleSmartBatteryManager.h:28:43: error: IOKit/smbus/IOSMBusController.h: No such file or directory
Solution: ? Headers seems not available on macosx too.


Security

darwinbuild Security

9J61?

9F33

Problem: darwinbuild Security
[...]
2008-10-20 06:32:44.589 xcodebuild[65272:713] [MT] ASSERTION FAILURE in /SourceCache/DevToolsBase/DevToolsBase-1114/pbxcore/SpecificationTypes/XCPlatformSpecification.m:421
Details:  The Mac OS X platform is missing - cannot set a default platform.
Solution: Use an UFS disk image.
Note: The cause is Xcode 3.1 running in a chroot on not-UFS

Problem: generateErrStrings.mm:5:35: error: Foundation/Foundation.h: No such file or directory
Solution: Please, let us know if you have one. Since Foundation is not part of Darwin, we need to patch the source so that it doesn't need Foundation any more (Sometimes older versions of the same source can give a hint).



SecurityTool

9J61

/usr/local/SecurityPieces/Frameworks/security_utilities.framework/Headers/errors.h: In static member function 'static void Security::MacOSError::check(OSStatus)':
/usr/local/SecurityPieces/Frameworks/security_utilities.framework/Headers/errors.h:103: error: 'noErr' was not declared in this scope
/usr/local/SecurityPieces/Frameworks/security_cdsa_utilities.framework/Headers/cssmdbname.h: In member function 'bool Security::DbName::operator<(const Security::DbName&) const':
/usr/local/SecurityPieces/Frameworks/security_cdsa_utilities.framework/Headers/cssmdbname.h:90: error: 'nil' was not declared in this scope

security.c:62:34: error: security_asn1/secerr.h: No such file or directory

SystemStubs

9J61 (ok)

9F33 (ok)

Problem: Error: couldn't exec /XCD/loper/usr/bin/libtool: No such file or directory
Solution: cp BuildRoot/usr/bin/libtool BuildRoot/XCD/loper/usr/bin/


TargetConfig

darwinbuild TargetConfig

9J61 (ok)

9F33pd1 (ok)

Problem: CoreFoundation has no .framework extension.
dyld: Library not loaded: /System/Library/Frameworks/CoreFoundation/Versions/A/CoreFoundation
Solution: In fact, the problem comes from compiled CF which is linked to a wrong path.
/System/Library/Frameworks/CoreFoundation/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.0.0)
Fetch 9F33pd1.plist into .build directory of your DarwinBuild repository, then rebuild CF:
darwinbuild -init 9F33pd1 && darwinbuild CF && darwinbuild -load CF
The plist file above contains some patches that tend to avoid most of the errors just below.
After recompilation of CF, dependency is fixed:
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.0.0)

Since TargetConfig is available and can be built, we will fix `tconf' with the right framework pathname instead of using a symbolic link or copying the framework.
darwinbuild TargetConfig
darwinbuild -load TargetConfig
Now tconf is linked to the correct framework:
otool -L BuildRoot/usr/local/bin/tconf 
BuildRoot/usr/local/bin/tconf:
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.15.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.1)
So we can remove the previous temporary CoreFoundation directory:
rm -fR BuildRoot/System/Library/Frameworks/CoreFoundation

WebCore

9J61

make: *** No rule to make target `JSEventTargetBase.lut.h', needed by `all'.  Stop.


at_cmds 

9J61pd1 (ok)

Problem: appletalk.c:44:29: error: SystemIntegrity.h: No such file or directory 
Solution: excellent project option, which helps us to easily make a patch, it is almost like we do not have the need(s) to bother about some side effects (consequences of the patch) because the developers have the big picture of their project. It's a real thank you.
 cf the src: 
#ifndef _OPEN_SOURCE_ 
SystemIntegrityCheck('atlk', kSystemIntegrityHasRootEUID); 
#endif 
see Patch.

autofs

9J61

Problem: /SourceCache/autofs/autofs-109.8/autofsd/autofsd.c:36:43: error: CoreFoundation/CoreFoundation.h: No such file or directory
Solution: 



bootp

9J61

Problem: /XCD/loper/usr/bin/gcc-4.0 -x c -arch ppc -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -mtune=G4 -fvisibility=hidden -mmacosx-version-min=10.5 -gdwarf-2 -I/private/var/tmp/bootp/bootp-170.1.obj/bootp.build/bootpd.build/bootpd.hmap -Wall -Wno-four-char-constants -Wno-unknown-pragmas -F/private/var/tmp/bootp/bootp-170.1.sym/BuiltProducts -F/XCD/SY/Library/PrivateFrameworks -I/private/var/tmp/bootp/bootp-170.1.sym/BuiltProducts/include -I/private/var/tmp/bootp/bootp-170.1.obj/bootp.build/bootpd.build/DerivedSources -c /SourceCache/bootp/bootp-170.1/bootpd.tproj/bsdpd.c -o /private/var/tmp/bootp/bootp-170.1.obj/bootp.build/bootpd.build/Objects-normal/ppc/bsdpd.o In file included from /SourceCache/bootp/bootp-170.1/bootpd.tproj/bsdpd.c:89: /SourceCache/bootp/bootp-170.1/bootpd.tproj/AFPUsers.h:32:41: error: OpenDirectory/OpenDirectory.h: No such file or directory
Solution: chroot BuildRoot
ln -s /System/Library/PrivateFrameworks/OpenDirectory.framework /XCD/SY/Library/PrivateFrameworks/

then

Problem: /XCD/SY/Library/PrivateFrameworks/OpenDirectory.framework/Headers/OpenDirectory.h:27:51: error: CFOpenDirectory/CFOpenDirectoryConsts.h: No such file or directory
/XCD/SY/Library/PrivateFrameworks/OpenDirectory.framework/Headers/OpenDirectory.h:28:45: error: CFOpenDirectory/CFOpenDirectory.h: No such file or directory
Solution: mkdir -p BuildRoot/usr/include/CFOpenDirectoryroot
cp BuildRoot/private/var/tmp/CFOpenDirectory/CFOpenDirectory-39.root/XCD/SY/Library/PrivateFrameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/Headers/CFOpenDirectory* BuildRoot/usr/include/CFOpenDirectory
then
Problem: ld: file not found: /System/Library/PrivateFrameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory

bootstrap_cmds

darwinbuild bootstrap_cmds

9J61 (ok)

9G55 (ok)

9F33 (ok)

Problem: /bin/sh: /usr/bin/lex: No such file or directory
Solution: darwinbuild flex && darwinbuild -load flex

configd

darwinbuild configd

9J61

Problem: CompileC /private/var/tmp/configd_plugins/configd_plugins-91.obj/configd_plugins.build/InterfaceNamer.build/Objects-normal/ppc/ifnamer.o 
InterfaceNamer.bproj/ifnamer.c:72:58: error: SystemConfiguration/VLANConfigurationPrivate.h: No such file or directory

9F33 (ok)

Fetch 9F33pd1.plist into .build directory of your DarwinBuild repository, then:

darwinbuild -init 9F33pd1

The plist file above contains some patches that tend to avoid most of the errors just below.

darwinbuild configd

Problem: /SourceCache/configd/configd-212.2/SystemConfiguration.fproj/LinkConfiguration.c:39:29: error: net/if_vlan_var.h: No such file or directory
Solution: cp -R BuildRoot/System/Library/Frameworks/System.framework BuildRoot/XCD/SY/Library/Frameworks/

Problem: /SourceCache/configd/configd-212.2/SystemConfiguration.fproj/SCNetworkInterface.c:47:42: error: EAP8021X/EAPClientProperties.h: No such file or directory

consequently..

/SourceCache/configd/configd-212.2/SystemConfiguration.fproj/SCNetworkInterface.c: In function 'SCNetworkInterfaceCheckPassword':

/SourceCache/configd/configd-212.2/SystemConfiguration.fproj/SCNetworkInterface.c:3825: error: 'kEAPClientPropUserPasswordKeychainItemID' undeclared (first use in this function)

/SourceCache/configd/configd-212.2/SystemConfiguration.fproj/SCNetworkInterface.c: In function 'SCNetworkInterfaceCopyPassword':

/SourceCache/configd/configd-212.2/SystemConfiguration.fproj/SCNetworkInterface.c:3911: error: 'kEAPClientPropUserPasswordKeychainItemID' undeclared (first use in this function)

/SourceCache/configd/configd-212.2/SystemConfiguration.fproj/SCNetworkInterface.c: In function 'SCNetworkInterfaceRemovePassword':

/SourceCache/configd/configd-212.2/SystemConfiguration.fproj/SCNetworkInterface.c:4010: error: 'kEAPClientPropUserPasswordKeychainItemID' undeclared (first use in this function)

/SourceCache/configd/configd-212.2/SystemConfiguration.fproj/SCNetworkInterface.c: In function 'SCNetworkInterfaceSetPassword':

/SourceCache/configd/configd-212.2/SystemConfiguration.fproj/SCNetworkInterface.c:4208: error: 'kEAPClientPropUserPasswordKeychainItemID' undeclared (first use in this function)

Solution: cp -R BuildRoot/System/Library/PrivateFrameworks/EAP8021X.framework/ ../../XCD/SY/Library/PrivateFrameworks/

Problem: Undefined symbols:

  "_CFPreferencesAppValueIsForced", referenced from:

      _processPreferences in SCNetworkConnectionPrivate.o

      _SCUserPreferencesIsForced in SCNetworkConnectionPrivate.o

  "_CFStringTransform", referenced from:

      __SC_dos_copy_string in SCDPrivate.o

Solution: Fetch 9F33pd1.plist into .build directory of your DarwinBuild repository, then rebuild configd:
darwinbuild -init 9F33pd1 && darwinbuild configd
The plist file above contains some patches that tend to avoid the undefined symbols.

Problem: The framework is registered in /XCD/SY:
40555 0 0 0 ./XCD/SY/Library/Frameworks/SystemConfiguration.framework
Solution: Please, let us know if you have one.

configd_executables

darwinbuild configd_executables

Problem: ld: library not found for -lATconfig
but also -lKernelEventMonitor -lInterfaceNamer -lIPMonitor -lLinkConfiguration -lNetworkIdentification -lPreferencesMonitor 
Solution: Please, let us know if you have one.


copyfile

9J61
Problem: /SourceCache/copyfile/copyfile-42/copyfile.c:48:24: error: quarantine.h: No such file or directory


cron

9J61 (ok)

Problem: /SourceCache/cron/cron-30/cron/do_command.c:38:28: error: IOKit/IOKitLib.h: No such file or directory
/SourceCache/cron/cron-30/cron/do_command.c:39:35: error: IOKit/pwr_mgt/IOPMLib.h: No such file or directory
/SourceCache/cron/cron-30/cron/do_command.c:40:32: error: IOKit/pwr_mgt/IOPM.h: No such file or directory
/SourceCache/cron/cron-30/cron/do_command.c:41:28: error: IOKit/IOReturn.h: No such file or directory
/SourceCache/cron/cron-30/cron/do_command.c:38:28: error: IOKit/IOKitLib.h: No such file or directory
/SourceCache/cron/cron-30/cron/do_command.c:39:35: error: IOKit/pwr_mgt/IOPMLib.h: No such file or directory
/SourceCache/cron/cron-30/cron/do_command.c:40:32: error: IOKit/pwr_mgt/IOPM.h: No such file or directory
/SourceCache/cron/cron-30/cron/do_command.c:41:28: error: IOKit/IOReturn.h: No such file or directory
Solution: darwinbuild IOKitUser && darwinbuild -load IOKitUser (note: plan to keep some effort and coffee probably involved in building IOKitUser.

cups

9J61
Problem: make: *** No rule to make target `installfat'.  Stop.

Problem: dyld
    /XCD/loper/usr/bin/g++-4.0 -arch ppc -L/private/var/tmp/dyld/dyld-97.1.sym/BuiltProducts -F/private/var/tmp/dyld/dyld-97.1.sym/BuiltProducts -filelist /private/var/tmp/dyld/dyld-97.1.obj/dyld.build/dyld.build/Objects-normal/ppc/dyld.LinkFileList -exported_symbols_list /SourceCache/dyld/dyld-97.1/src/dyld.exp -mmacosx-version-min=10.5 -Wl,-dead_strip -seg1addr 0x8fe00000 -lstdc++-static -nostdlib /usr/local/lib/system/libc.a -lgcc_eh -lgcc -Wl,-e,__dyld_start -Wl,-dylinker -Wl,-dylinker_install_name,/usr/lib/dyld -Wl,-non_global_symbols_strip_list,/SourceCache/dyld/dyld-97.1/src/strip.exp -o /private/var/tmp/dyld/dyld-97.1.obj/dyld.build/dyld.build/Objects-normal/ppc/dyld
ld: couldn't dlopen() /usr/lib/libdtrace.dylib: dlopen(/usr/lib/libdtrace.dylib, 1): Library not loaded: /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication
Solution: rebuild dtrace patched instead of using the default binaryroot available at apple/macosforge to avoid the symbolication link.

Or use the binaryroot from 9F33pd1 already patched (tar xzvf ../../../hg/Roots/9F33pd1/dtrace.root.tar.gz in BuildRoot)

But... more pb:     /XCD/loper/usr/bin/g++-4.0 -arch ppc -L/private/var/tmp/dyld/dyld-97.1.sym/BuiltProducts -F/private/var/tmp/dyld/dyld-97.1.sym/BuiltProducts -filelist /private/var/tmp/dyld/dyld-97.1.obj/dyld.build/dyld.build/Objects-normal/ppc/dyld.LinkFileList -exported_symbols_list /SourceCache/dyld/dyld-97.1/src/dyld.exp -mmacosx-version-min=10.5 -Wl,-dead_strip -seg1addr 0x8fe00000 -lstdc++-static -nostdlib /usr/local/lib/system/libc.a -lgcc_eh -lgcc -Wl,-e,__dyld_start -Wl,-dylinker -Wl,-dylinker_install_name,/usr/lib/dyld -Wl,-non_global_symbols_strip_list,/SourceCache/dyld/dyld-97.1/src/strip.exp -o /private/var/tmp/dyld/dyld-97.1.obj/dyld.build/dyld.build/Objects-normal/ppc/dyld
error: provider plockstat doesn't exist
error: Could not register probes
ld: error creating dtrace DOF section
collect2: ld returned 1 exit status

dtrace

Run-time problem: dtrace: failed to compile script [...] "/usr/lib/dtrace/darwin.d", line 26: syntax error near "uthread_t"
Solution: related mach_kernel.ctfsys? some probe not available?


9J61

Problem: /SourceCache/dtrace/dtrace-48.1/libproc/libproc.m:10:40: error: Symbolication/Symbolication.h: No such file or directory
/SourceCache/dtrace/dtrace-48.1/libproc/libproc.m:11:47: error: Symbolication/SymbolicationPrivate.h: No such file or directory
In file included from /SourceCache/dtrace/dtrace-48.1/libproc/libproc.m:29:
Solution: 

9G55

DTrace compilation fails.

Problem: In file included from /SourceCache/dtrace/dtrace-48/libctf/ctf_lib.c:30:
/usr/include/sys/stat.h:75:26: error: Availability.h: No such file or directory
In file included from /SourceCache/dtrace/dtrace-48/libctf/ctf_lib.c:30:
/usr/include/sys/stat.h:460: error: syntax error before '__OSX_AVAILABLE_BUT_DEPRECATED'
Solution: ... Found in two locations into the host system:
/Developer/SDKs/MacOSX10.5.sdk/usr/include/Availability.h
/usr/include/Availability.h
Availability.h should be soon available: http://darwinbuild.macosforge.org/trac/changeset/459 

9F33 (ok)

Fetch 9F33pd1.plist into .build directory of your DarwinBuild repository, then:

darwinbuild -init 9F33pd1

The plist file above contains some patches that tend to avoid most of the errors just below.

Note: dtrace compilation needs libdwarf to be installed in the BuildRoot, and libdwarf depends on libelf. Both libdwarf and libelf projects aren't available in darwinbuild, so they have been added in the custom plist to satisfy dtrace requirements.
So before building dtrace.
darwinbuild libelf && darwinbuild -load libelf
darwinbuild libdwarf && darwinbuild -load libdwarf
This should be done automatically with dtrace dependencies, but how?

darwinbuild dtrace

Problem: error: couldn't exec /XCD/loper/usr/bin/yacc: No such file or directory
Old-Solutiondarwinbuild bison
darwinbuild -load bison
cp BuildRoot/usr/bin/yacc BuildRoot/XCD/loper/usr/bin/ 

Problemerror: couldn't exec /XCD/loper/usr/bin/lex: No such file or directory
Old-Solutiondarwinbuild flex && darwinbuild -load flex
cp BuildRoot/usr/bin/lex BuildRoot/XCD/loper/usr/bin

Problem: /XCD/loper/usr/bin/mig: line 147: : command not found
Solution:  darwinbuild bootstrap_cmds
darwinbuild -load bootstrap_cmds
cp BuildRoot/usr/bin/arch BuildRoot/usr/bin/mig BuildRoot/XCD/loper/usr/bin/
mkdir BuildRoot/XCD/loper/usr/libexec/
cp BuildRoot/usr/libexec/migcom BuildRoot/XCD/loper/usr/libexec
Note: we used `dtrace' to dtrace dtrace, e.g.:

  0  18390             write_nocancel:entry sh /XCD/loper/usr/bin/mig: line 60: pushd: /XCD/loper/usr/bin/../libexec: No such file or directory

  0  18390             write_nocancel:entry grep migcomPath=$(realpath "${scriptRoot}/../libexec/migcom")

Problem: dyld: Library not loaded: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
  Referenced from: /usr/bin/arch
  Reason: image not found
SolutionWe're creating a trivial hook where `arch' calls `uname -p' (Alternatively, we could patch the sources to use `uname -p').
mv /usr/bin/arch /usr/bin/arch.origin
echo 'uname -p' > /usr/bin/arch
chmod +x /usr/bin/arch
Notes: It appears that (TODO: verify that please) on PPC arch, `arch' result != `uname -p' result. This should be tested though we don't focus (at this time) on PPC, but this behavior could be the same for other future processor architectures too.
Alternative solution: PureFoundation can be used (from http://www.hereapi.com/pf/index.html), it really seems interesting as showed just below, it works for `arch':
root@europa:/Volumes/Builds/9G55/BuildRoot# mv PureFoundation/Foundation.framework System/Library/Frameworks
root@europa:/Volumes/Builds/
9G55/BuildRoot# chroot .
europa# arch
NSObject +load
i386

Problem: /SourceCache/dtrace/dtrace-48/libproc/libproc.m:10:40: error: Symbolication/Symbolication.h: No such file or directory
/SourceCache/dtrace/dtrace-48/libproc/libproc.m:11:47: error: Symbolication/SymbolicationPrivate.h: No such file or directory
SolutionSince Symbolication is not part of Darwin, all references to it need to be patched out of the source.

On PureDarwin, the patched `dtrace' built from darwinbuild looks like:
/usr/sbin/dtrace:
/usr/lib/libdtrace.dylib (compatibility version 1.0.0, current version 48.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.1)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.0.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)


On Mac OS X, `dtrace' looks like:
/usr/sbin/dtrace:
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 674.0.0)
/System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication (compatibility version 1.0.0, current version 35.0.0)
/usr/lib/libdtrace.dylib (compatibility version 1.0.0, current version 48.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 474.0.0)



eap8021x

9J61pd1

Problem: ld64: warning, -seg_addr_table file cannot be read: /AppleInternal/Developer/seg_addr_table
ld64: warning, -seg_addr_table file cannot be read: /AppleInternal/Developer/seg_addr_table
ld64ld64: warning, :- seg_addr_tablewarning, -seg_addr_table file cannot be read: /AppleInternal/Developer/seg_addr_table
ld: warning in /System/Library/Frameworks//Security.framework/Security, missing required architecture ppc64 in file
ld: warning in /usr/lib/libSystemStubs.a, missing required architecture ppc64 in  file cannot be read:file
Undefined symbols:
  "_SecIdentityCreateWithCertificate" /AppleInternal/Developer/, referenced from:
Solution:

Problem: /usr/bin/cc -arch i386 -Os -pipe -no-cpp-precomp -Wmost  -g  -fno-common -I/private/var/tmp/eap8021x/eap8021x-49.8.sym/eapol.build/ProjectHeaders -I -I -I/private/var/tmp/eap8021x/eap8021x-49.8.sym/eapol.build/derived_src/eapolclient.tproj -I. -pipe        -I/private/var/tmp/eap8021x/eap8021x-49.8.sym/eapol.build/Headers -I/private/var/tmp/eap8021x/eap8021x-49.8.sym/eapol.build/PrivateHeaders -F/private/var/tmp/eap8021x/eap8021x-49.8.sym  -F/System/Library/PrivateFrameworks -F/System/Library/PrivateFrameworks -mdynamic-no-pic -fconstant-cfstrings   -c -o /private/var/tmp/eap8021x/eap8021x-49.8.obj/objects-optimized/eapolclient.tproj/wireless.i386.o wireless.c

wireless.c:37:38: error: Apple80211/Apple80211API.h: No such file or directory

wireless.c:38:37: error: Apple80211/Apple80211IE.h: No such file or directory

wireless.c:47:54: error: Kernel/IOKit/apple80211/apple80211_ioctl.h: No such file or directory

Solution:

efax

9J61

Problem: /SourceCache/efax/efax-28/efax/efaxos.c:144: error: 'kCFNotificationDeliverImmediately' undeclared (first use in this function)
/SourceCache/efax/efax-28/efax/efaxos.c:144: error: 'kCFNotificationPostToAllSessions' undeclared (first use in this function)

efiboot 

Problem: make: *** No rule to make target `install'.  Stop.
<- no source available, only binary form.

gcc_os

checking if mkdir takes one argument... yes
/SourceCache/gcc_os/gcc_os-1823/gcc/config.gcc: line 2971: out_file: command not found
/SourceCache/gcc_os/gcc_os-1823/gcc/config.gcc: line 2971: out_file: command not found
Using `/SourceCache/gcc_os/gcc_os-1823/gcc/config/rs6000/rs6000.c' for machine-specific logic.
Using `/SourceCache/gcc_os/gcc_os-1823/gcc/config/rs6000/rs6000.md' as machine description file.
Using the following target machine macro files:
/SourceCache/gcc_os/gcc_os-1823/gcc/config/rs6000/rs6000.h
/SourceCache/gcc_os/gcc_os-1823/gcc/config/darwin.h
/SourceCache/gcc_os/gcc_os-1823/gcc/config/rs6000/darwin.h
Using host-darwin.o for host machine hooks.
/APPLE_LICENSE: line 1: APPLE: command not found
/APPLE_LICENSE: line 2: Version: command not found
/APPLE_LICENSE: line 4: Please: command not found
..

gccfast

checking if mkdir takes one argument... yes
/SourceCache/gccfast/gccfast-1626/gcc/config.gcc: line 2971: out_file: command not found
Using `/SourceCache/gccfast/gccfast-1626/gcc/config/i386/i386.c' for machine-specific logic.
Using `/SourceCache/gccfast/gccfast-1626/gcc/config/i386/i386.md' as machine description file.
Using the following target machine macro files:
/SourceCache/gccfast/gccfast-1626/gcc/config/i386/i386.h
/SourceCache/gccfast/gccfast-1626/gcc/config/darwin.h
/SourceCache/gccfast/gccfast-1626/gcc/config/i386/darwin.h
Using host-darwin.o for host machine hooks.
/APPLE_LICENSE: line 1: APPLE: command not found
/APPLE_LICENSE: line 2: Version: command not found
/APPLE_LICENSE: line 4: Please: command not found
/APPLE_LICENSE: line 5: By: command not found

gnuserv

9J61

/usr/bin/emacs-undumped -batch -l loadup \
--eval "(add-to-list 'load-path \".\")" \
-l gnuserv-compat  -f batch-byte-compile gnuserv-compat.el
dyld: Library not loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
  Referenced from: /usr/bin/emacs-undumped
  Reason: image not found
DiskImage available??
lib/FVDIHLInterface.h:27:38: error: DiskImages/DIHLInterface.h: No such file or directory


ipv6configuration

9J61

libraries/service.c:817: error: 'userNotification' undeclared (first use in this function)
libraries/service.c:834: error: 'CFUserNotificationRef' undeclared (first use in this function)
libraries/service.c:850: error: 'kCFUserNotificationAlertHeaderKey' undeclared (first use in this function)
libraries/service.c:852: error: 'kCFUserNotificationAlertMessageKey' undeclared (first use in this function)
libraries/service.c:854: error: 'kCFUserNotificationLocalizationURLKey' undeclared (first use in this function)

isoutil

9J61 (ok)

problem: cd9660.util_main.m:52:28: error: IOKit/IOKitLib.h: No such file or directory
Solution: mkdir BuildRoot/usr/include/IOKit
cp -R /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/Versions/A/Headers/* BuildRoot/usr/include/IOKit

Consequently, next error will be..

Problem: cd9660.util_main.m:757: error: 'kNilOptions' undeclared (first use in this function)
cd9660.util_main.m:757: error: (Each undeclared identifier is reported only once
cd9660.util_main.m:757: error: for each function it appears in.)
Pseudo-solution: Add in BuildRoot/usr/include/IOKit/IOKitLib.h #include <CarbonCore/MacTypes.h>

Then,

Problem: ld: framework not found IOKit
ld: framework not found IOKit
PseudoSolution: install IOKitUser from 9F33pd1 using a custom plist:
darwinbuild -load IOKitUser   
Downloading http://src.macosforge.org/Roots/9J61//IOKitUser.root.tar.gz ...
Downloading http://puredarwin.googlecode.com/svn/Roots/9G55pd1//IOKitUser.root.tar.gz ...
Downloading http://puredarwin.googlecode.com/svn/Roots/9F33pd1//IOKitUser.root.tar.gz ...
Download complete
IOKitUser - 137 files registered.
Solution: darwinbuild -load IOKitUser <- unfortunately, it doesn't built without patch

But another problem will come if the default IOKitUser binaryroot from 9F33pd1 is used, because it as been built only for the arch i386. So either building isoutil only for i386 (not tested) or removing the arch restriction on IOKItUser in 9F33pd1 to ppc could work (test).


kext_tools

darwinbuild kext_tools

9J61 ??


9F33pd1 (ok)

Fetch 9F33pd1.plist into .build directory of your DarwinBuild repository, then init:

darwinbuild -init 9F33pd1

The plist file above contains some patches that tend to avoid most of the errors just below.
Note: No BuildRoot alteration, hopefully.

darwinbuild kext_tools

Problem: /SourceCache/kext_tools/kext_tools-117/prelink.c:800: error: 'kNilOptions' undeclared (first use in this function)
Problem: /SourceCache/kext_tools/kext_tools-117/bootcaches.c:925: error: 'kNilOptions' undeclared (first use in this function)
Pseudo-solution: Add
#ifndef kNilOptions 
    #define kNilOptions 0
#endif
Solution: Add #include <CarbonCore/MacTypes.h>

Problem: /SourceCache/kext_tools/kext_tools-117/bootcaches.c:143: error: 'nil' undeclared (first use in this function)
/SourceCache/kext_tools/kext_tools-117/bootcaches.c:403: error: 'nil' undeclared (first use in this function)
/SourceCache/kext_tools/kext_tools-117/bootcaches.c:774: error: 'nil' undeclared (first use in this function)
Solution: Add #include <objc/objc.h>

Compilation success, let's look the patched `kextcache' binary for "purity" purpose:
/usr/sbin/kextcache:
/XCD/SY/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.0.0)
/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.1)

And the Mac OS X `kextcache' binary:
/usr/sbin/kextcache:
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.0.0)
/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 34.0.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0)

Problem: /XCD/SY should not be.
Solution: Please, let us know if you have one.

launchd

darwinbuild launchd

9J61 ?

Problem: ERROR: could not find root: IOKitUser
Solution: darwinbuild IOKitUser && darwinbuild -load IOKitUser

9G55

?

9F33pd1 (ok)

Fetch 9F33pd1.plist into .build directory of your DarwinBuild repository, then:

darwinbuild -init 9F33pd1

The plist file above contains some patches that tend to avoid most of the errors just below.

darwinbuild launchd

Problem: ERROR: could not find root: IOKitUser