Building Libc & dyld
Building Libc & dyld
- Subject: Building Libc & dyld
- From: eric g <email@hidden>
- Date: Mon, 18 Aug 2014 13:26:49 -0500
Hello. I initially posted this message to the darwin-kernel list, but
after contacting DTS in the hopes they might support this code base, they
pointed me here which is apparently the correct place for this message.
Ultimately, I would like to be able to build the latest released version
of dyld ( http://opensource.apple.com/tarballs/dyld/dyld-239.4.tar.gz ).
If I understand correctly, in order to do that I need to be able to build
Libc and am attempting to build the latest released version (
http://opensource.apple.com/tarballs/Libc/Libc-997.90.3.tar.gz ).
By following the instructions at
http://shantonu.blogspot.com/2013/10/building-xnu-for-os-x-109-mavericks.html,
I was able to get the latest released version of the xnu source built (
http://opensource.apple.com/tarballs/xnu/xnu-2422.90.20.tar.gz ) - well, I
did need to take into account one of the comments and removed the -Werror
flag. Additionally, I did run ‘make install’ to get the BUILD/dst folder.
Just opening the Libc, Xcode project and trying to build it, gives me one
error:
Libc-997.90.3/string/bcopy.c:24:10: 'platform/string.h' file not
found
Looking through the built XNU source, I do see string.h, but not within a
platform folder. While I can take a guess at which string.h is the
intended one and either alter the #include or create a platform folder and
place string.h inside of it while updating the header search paths, I
would much rather try to figure out what the proper way to get this all to
build is.
Additionally, while attempting to build, I was coming across files like
_simple.h, asl_private.h, the pthreads folder, etc. which existed in older
versions of Libc, but not in the most recent released version. Is there a
reason for this? Is it valid to just take the header files from the older
version of Libc?
If anyone had any advice or pointers to blog posts which provide a good
set of instructions, I would be interested.
Thank you.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden