Missing Availability.h with 9G55
I'm still new to darwinbuild and running into a problem that I don't understand. It appears that I have the problem discussed and resolve in this trac ticket: http://darwinbuild.macosforge.org/trac/ticket/ 58 . I have a build root using 9G55 and can even see the correct CarbonHeaders in the 9G55.plist file: CarbonHeaders = { version = 9G55; }; Unfortunately, references to stdlib.h and stat.h are causing errors referring to Availability.h and I'm not sure what might be going on or how I might be able to fix it: In file included from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ccp.c: 60: /usr/include/stdlib.h:61:26: error: Availability.h: No such file or directory In file included from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ccp.c: 60: /usr/include/stdlib.h:283: error: syntax error before '__OSX_AVAILABLE_BUT_DEPRECATED' Can anyone provide guidance on how to solve this problem? Thanks, Craig
On Apr 27, 2009, at 7:40 PM, Craig Setera wrote:
I'm still new to darwinbuild and running into a problem that I don't understand. It appears that I have the problem discussed and resolve in this trac ticket: http://darwinbuild.macosforge.org/trac/ticket/58 . I have a build root using 9G55 and can even see the correct CarbonHeaders in the 9G55.plist file:
CarbonHeaders = { version = 9G55; };
Unfortunately, references to stdlib.h and stat.h are causing errors referring to Availability.h and I'm not sure what might be going on or how I might be able to fix it:
In file included from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ ccp.c:60: /usr/include/stdlib.h:61:26: error: Availability.h: No such file or directory In file included from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ ccp.c:60: /usr/include/stdlib.h:283: error: syntax error before '__OSX_AVAILABLE_BUT_DEPRECATED'
Can anyone provide guidance on how to solve this problem?
For now, you can manually load a root for CarbonHeaders with the following: darwinbuild -load CarbonHeaders I'll update the dependencies for ppp so its loaded automatically in the future. Thanks -Bill
Continuing to make progress thanks to your help. I loaded CF and Security and managed to get further. Now I'm seeing: In file included from /System/Library/Frameworks/Security.framework/ Headers/Security.h:50, from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ auth.c:2764: /System/Library/Frameworks/Security.framework/Headers/SecBase.h:63: error: syntax error before 'SecKeychainAttrType' The source code in that header is: typedef OSType SecKeychainAttrType; Any idea where OSType would be declared? Also, what is the difference between doing "darwinbuild CF" rather than "darwinbuild -load CF"? I had done the former, but it required the latter. Thanks again, Craig On Apr 27, 2009, at 9:46 PM, William Siegrist wrote:
On Apr 27, 2009, at 7:40 PM, Craig Setera wrote:
I'm still new to darwinbuild and running into a problem that I don't understand. It appears that I have the problem discussed and resolve in this trac ticket: http://darwinbuild.macosforge.org/trac/ticket/58 . I have a build root using 9G55 and can even see the correct CarbonHeaders in the 9G55.plist file:
CarbonHeaders = { version = 9G55; };
Unfortunately, references to stdlib.h and stat.h are causing errors referring to Availability.h and I'm not sure what might be going on or how I might be able to fix it:
In file included from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ ccp.c:60: /usr/include/stdlib.h:61:26: error: Availability.h: No such file or directory In file included from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ ccp.c:60: /usr/include/stdlib.h:283: error: syntax error before '__OSX_AVAILABLE_BUT_DEPRECATED'
Can anyone provide guidance on how to solve this problem?
For now, you can manually load a root for CarbonHeaders with the following:
darwinbuild -load CarbonHeaders
I'll update the dependencies for ppp so its loaded automatically in the future.
Thanks -Bill
Hi, Craig. You may find the answer here: http://www.puredarwin.org/developers/darwinbuild/troubleshooting -- or elsewhere on the site. There are also patches for various packages in the svn at code.google.com/p/puredarwin . Which bits of Darwin in particular are you interested in / trying to build? _sjc_ On 28 Apr 2009, at 16:47, Craig Setera wrote:
Continuing to make progress thanks to your help. I loaded CF and Security and managed to get further. Now I'm seeing:
In file included from /System/Library/Frameworks/Security.framework/ Headers/Security.h:50, from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ auth.c:2764: /System/Library/Frameworks/Security.framework/Headers/SecBase.h:63: error: syntax error before 'SecKeychainAttrType'
The source code in that header is:
typedef OSType SecKeychainAttrType;
Any idea where OSType would be declared? Also, what is the difference between doing "darwinbuild CF" rather than "darwinbuild - load CF"? I had done the former, but it required the latter.
Thanks again, Craig
On Apr 27, 2009, at 9:46 PM, William Siegrist wrote:
On Apr 27, 2009, at 7:40 PM, Craig Setera wrote:
I'm still new to darwinbuild and running into a problem that I don't understand. It appears that I have the problem discussed and resolve in this trac ticket: http://darwinbuild.macosforge.org/trac/ticket/58 . I have a build root using 9G55 and can even see the correct CarbonHeaders in the 9G55.plist file:
CarbonHeaders = { version = 9G55; };
Unfortunately, references to stdlib.h and stat.h are causing errors referring to Availability.h and I'm not sure what might be going on or how I might be able to fix it:
In file included from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ ccp.c:60: /usr/include/stdlib.h:61:26: error: Availability.h: No such file or directory In file included from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ ccp.c:60: /usr/include/stdlib.h:283: error: syntax error before '__OSX_AVAILABLE_BUT_DEPRECATED'
Can anyone provide guidance on how to solve this problem?
For now, you can manually load a root for CarbonHeaders with the following:
darwinbuild -load CarbonHeaders
I'll update the dependencies for ppp so its loaded automatically in the future.
Thanks -Bill
_______________________________________________ darwinbuild-dev mailing list darwinbuild-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/darwinbuild-dev
Thanks. I will take a look. This is truly a geeky endeavor. I have a new Blackberry Bold that I want to use as a Bluetooth tethered modem. Myself and others are having trouble. I think it is in the ppp negotiation and I'm trying to build ppp so that I can use it with various hacks to try to tether. A long way to go for something so silly, but it is really bugging me now! So, in a nutshell, I'd like to be able to build and execute a custom pppd on my Macbook Pro (10.5.6). Any hints or pointers are greatly appreciated. Thanks, Craig On Apr 28, 2009, at 10:57 AM, Stuart Crook wrote:
Hi, Craig.
You may find the answer here: http://www.puredarwin.org/developers/darwinbuild/troubleshooting -- or elsewhere on the site. There are also patches for various packages in the svn at code.google.com/p/puredarwin .
Which bits of Darwin in particular are you interested in / trying to build?
_sjc_
On 28 Apr 2009, at 16:47, Craig Setera wrote:
Continuing to make progress thanks to your help. I loaded CF and Security and managed to get further. Now I'm seeing:
In file included from /System/Library/Frameworks/Security.framework/ Headers/Security.h:50, from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ auth.c:2764: /System/Library/Frameworks/Security.framework/Headers/SecBase.h:63: error: syntax error before 'SecKeychainAttrType'
The source code in that header is:
typedef OSType SecKeychainAttrType;
Any idea where OSType would be declared? Also, what is the difference between doing "darwinbuild CF" rather than "darwinbuild - load CF"? I had done the former, but it required the latter.
Thanks again, Craig
On Apr 27, 2009, at 9:46 PM, William Siegrist wrote:
On Apr 27, 2009, at 7:40 PM, Craig Setera wrote:
I'm still new to darwinbuild and running into a problem that I don't understand. It appears that I have the problem discussed and resolve in this trac ticket: http://darwinbuild.macosforge.org/trac/ticket/58 . I have a build root using 9G55 and can even see the correct CarbonHeaders in the 9G55.plist file:
CarbonHeaders = { version = 9G55; };
Unfortunately, references to stdlib.h and stat.h are causing errors referring to Availability.h and I'm not sure what might be going on or how I might be able to fix it:
In file included from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ ccp.c:60: /usr/include/stdlib.h:61:26: error: Availability.h: No such file or directory In file included from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ ccp.c:60: /usr/include/stdlib.h:283: error: syntax error before '__OSX_AVAILABLE_BUT_DEPRECATED'
Can anyone provide guidance on how to solve this problem?
For now, you can manually load a root for CarbonHeaders with the following:
darwinbuild -load CarbonHeaders
I'll update the dependencies for ppp so its loaded automatically in the future.
Thanks -Bill
_______________________________________________ darwinbuild-dev mailing list darwinbuild-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/darwinbuild-dev
Hi, Craig, Since pppd is an XCode project, you may find it easier to build it there, patching as needed, rather than in darwinbuild. There are lost of sub-projects inside it, but when I tried just the pppd target a minute ago it only threw up 4 errors (compared to about a thousand for the whole lot). (Or rather, two errors repeated: it couldn't find SystemConfiguration/ SCPrivate.h (which you can get from its source) or ppp/ pppcontroller_types.h (which I think should be in this package). ) You will certainly run into fewer problems because of missing non-open frameworks. But this is only a suggestion, your milage may vary, etc.. _sjc_ On 28 Apr 2009, at 17:01, Craig Setera wrote:
Thanks. I will take a look. This is truly a geeky endeavor. I have a new Blackberry Bold that I want to use as a Bluetooth tethered modem. Myself and others are having trouble. I think it is in the ppp negotiation and I'm trying to build ppp so that I can use it with various hacks to try to tether. A long way to go for something so silly, but it is really bugging me now!
So, in a nutshell, I'd like to be able to build and execute a custom pppd on my Macbook Pro (10.5.6). Any hints or pointers are greatly appreciated.
Thanks, Craig
On Apr 28, 2009, at 10:57 AM, Stuart Crook wrote:
Hi, Craig.
You may find the answer here: http://www.puredarwin.org/developers/darwinbuild/troubleshooting -- or elsewhere on the site. There are also patches for various packages in the svn at code.google.com/p/puredarwin .
Which bits of Darwin in particular are you interested in / trying to build?
_sjc_
On 28 Apr 2009, at 16:47, Craig Setera wrote:
Continuing to make progress thanks to your help. I loaded CF and Security and managed to get further. Now I'm seeing:
In file included from /System/Library/Frameworks/ Security.framework/Headers/Security.h:50, from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ auth.c:2764: /System/Library/Frameworks/Security.framework/Headers/SecBase.h: 63: error: syntax error before 'SecKeychainAttrType'
The source code in that header is:
typedef OSType SecKeychainAttrType;
Any idea where OSType would be declared? Also, what is the difference between doing "darwinbuild CF" rather than "darwinbuild -load CF"? I had done the former, but it required the latter.
Thanks again, Craig
On Apr 27, 2009, at 9:46 PM, William Siegrist wrote:
On Apr 27, 2009, at 7:40 PM, Craig Setera wrote:
I'm still new to darwinbuild and running into a problem that I don't understand. It appears that I have the problem discussed and resolve in this trac ticket: http://darwinbuild.macosforge.org/trac/ticket/58 . I have a build root using 9G55 and can even see the correct CarbonHeaders in the 9G55.plist file:
CarbonHeaders = { version = 9G55; };
Unfortunately, references to stdlib.h and stat.h are causing errors referring to Availability.h and I'm not sure what might be going on or how I might be able to fix it:
In file included from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ ccp.c:60: /usr/include/stdlib.h:61:26: error: Availability.h: No such file or directory In file included from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ ccp.c:60: /usr/include/stdlib.h:283: error: syntax error before '__OSX_AVAILABLE_BUT_DEPRECATED'
Can anyone provide guidance on how to solve this problem?
For now, you can manually load a root for CarbonHeaders with the following:
darwinbuild -load CarbonHeaders
I'll update the dependencies for ppp so its loaded automatically in the future.
Thanks -Bill
_______________________________________________ darwinbuild-dev mailing list darwinbuild-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/darwinbuild-dev
_______________________________________________ darwinbuild-dev mailing list darwinbuild-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/darwinbuild-dev
Stuart, I tried that route originally and couldn't seem to get things going. I grabbed configd for those particular headers and then that required more headers... Maybe the issue was that I was trying to build "all" rather than just pppd? My C skills are rusty (I'm primarily a Java guy). To top it off, my Mac OS X/Darwin skills are non-existent. This is all good learning for me in the end... I will see whether I can get one or both of these options going (Darwin Build or XCode build). Thanks, Craig On Apr 28, 2009, at 11:22 AM, Stuart Crook wrote:
Hi, Craig,
Since pppd is an XCode project, you may find it easier to build it there, patching as needed, rather than in darwinbuild. There are lost of sub-projects inside it, but when I tried just the pppd target a minute ago it only threw up 4 errors (compared to about a thousand for the whole lot).
(Or rather, two errors repeated: it couldn't find SystemConfiguration/SCPrivate.h (which you can get from its source) or ppp/pppcontroller_types.h (which I think should be in this package). )
You will certainly run into fewer problems because of missing non- open frameworks. But this is only a suggestion, your milage may vary, etc..
_sjc_
On 28 Apr 2009, at 17:01, Craig Setera wrote:
Thanks. I will take a look. This is truly a geeky endeavor. I have a new Blackberry Bold that I want to use as a Bluetooth tethered modem. Myself and others are having trouble. I think it is in the ppp negotiation and I'm trying to build ppp so that I can use it with various hacks to try to tether. A long way to go for something so silly, but it is really bugging me now!
So, in a nutshell, I'd like to be able to build and execute a custom pppd on my Macbook Pro (10.5.6). Any hints or pointers are greatly appreciated.
Thanks, Craig
On Apr 28, 2009, at 10:57 AM, Stuart Crook wrote:
Hi, Craig.
You may find the answer here: http://www.puredarwin.org/developers/darwinbuild/troubleshooting -- or elsewhere on the site. There are also patches for various packages in the svn at code.google.com/p/puredarwin .
Which bits of Darwin in particular are you interested in / trying to build?
_sjc_
On 28 Apr 2009, at 16:47, Craig Setera wrote:
Continuing to make progress thanks to your help. I loaded CF and Security and managed to get further. Now I'm seeing:
In file included from /System/Library/Frameworks/ Security.framework/Headers/Security.h:50, from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ auth.c:2764: /System/Library/Frameworks/Security.framework/Headers/SecBase.h: 63: error: syntax error before 'SecKeychainAttrType'
The source code in that header is:
typedef OSType SecKeychainAttrType;
Any idea where OSType would be declared? Also, what is the difference between doing "darwinbuild CF" rather than "darwinbuild -load CF"? I had done the former, but it required the latter.
Thanks again, Craig
On Apr 27, 2009, at 9:46 PM, William Siegrist wrote:
On Apr 27, 2009, at 7:40 PM, Craig Setera wrote:
I'm still new to darwinbuild and running into a problem that I don't understand. It appears that I have the problem discussed and resolve in this trac ticket: http://darwinbuild.macosforge.org/trac/ticket/58 . I have a build root using 9G55 and can even see the correct CarbonHeaders in the 9G55.plist file:
CarbonHeaders = { version = 9G55; };
Unfortunately, references to stdlib.h and stat.h are causing errors referring to Availability.h and I'm not sure what might be going on or how I might be able to fix it:
In file included from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ ccp.c:60: /usr/include/stdlib.h:61:26: error: Availability.h: No such file or directory In file included from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ ccp.c:60: /usr/include/stdlib.h:283: error: syntax error before '__OSX_AVAILABLE_BUT_DEPRECATED'
Can anyone provide guidance on how to solve this problem?
For now, you can manually load a root for CarbonHeaders with the following:
darwinbuild -load CarbonHeaders
I'll update the dependencies for ppp so its loaded automatically in the future.
Thanks -Bill
_______________________________________________ darwinbuild-dev mailing list darwinbuild-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/darwinbuild-dev
_______________________________________________ darwinbuild-dev mailing list darwinbuild-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/darwinbuild-dev
Hi, Craig. If you're still tryind darwinbuild, "darwinbuild -target=pppd ppp" should (although I haven't tried it) build just the pppd part of the ppp package, which will at least save you having to chase down non- relevant problems. _sjc_ On 28 Apr 2009, at 18:18, Craig Setera wrote:
Stuart,
I tried that route originally and couldn't seem to get things going. I grabbed configd for those particular headers and then that required more headers... Maybe the issue was that I was trying to build "all" rather than just pppd? My C skills are rusty (I'm primarily a Java guy). To top it off, my Mac OS X/Darwin skills are non-existent. This is all good learning for me in the end...
I will see whether I can get one or both of these options going (Darwin Build or XCode build).
Thanks, Craig
On Apr 28, 2009, at 11:22 AM, Stuart Crook wrote:
Hi, Craig,
Since pppd is an XCode project, you may find it easier to build it there, patching as needed, rather than in darwinbuild. There are lost of sub-projects inside it, but when I tried just the pppd target a minute ago it only threw up 4 errors (compared to about a thousand for the whole lot).
(Or rather, two errors repeated: it couldn't find SystemConfiguration/SCPrivate.h (which you can get from its source) or ppp/pppcontroller_types.h (which I think should be in this package). )
You will certainly run into fewer problems because of missing non- open frameworks. But this is only a suggestion, your milage may vary, etc..
_sjc_
On 28 Apr 2009, at 17:01, Craig Setera wrote:
Thanks. I will take a look. This is truly a geeky endeavor. I have a new Blackberry Bold that I want to use as a Bluetooth tethered modem. Myself and others are having trouble. I think it is in the ppp negotiation and I'm trying to build ppp so that I can use it with various hacks to try to tether. A long way to go for something so silly, but it is really bugging me now!
So, in a nutshell, I'd like to be able to build and execute a custom pppd on my Macbook Pro (10.5.6). Any hints or pointers are greatly appreciated.
Thanks, Craig
On Apr 28, 2009, at 10:57 AM, Stuart Crook wrote:
Hi, Craig.
You may find the answer here: http://www.puredarwin.org/developers/darwinbuild/troubleshooting -- or elsewhere on the site. There are also patches for various packages in the svn at code.google.com/p/puredarwin .
Which bits of Darwin in particular are you interested in / trying to build?
_sjc_
On 28 Apr 2009, at 16:47, Craig Setera wrote:
Continuing to make progress thanks to your help. I loaded CF and Security and managed to get further. Now I'm seeing:
In file included from /System/Library/Frameworks/ Security.framework/Headers/Security.h:50, from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ auth.c:2764: /System/Library/Frameworks/Security.framework/Headers/SecBase.h: 63: error: syntax error before 'SecKeychainAttrType'
The source code in that header is:
typedef OSType SecKeychainAttrType;
Any idea where OSType would be declared? Also, what is the difference between doing "darwinbuild CF" rather than "darwinbuild -load CF"? I had done the former, but it required the latter.
Thanks again, Craig
On Apr 27, 2009, at 9:46 PM, William Siegrist wrote:
On Apr 27, 2009, at 7:40 PM, Craig Setera wrote:
> I'm still new to darwinbuild and running into a problem that I > don't understand. It appears that I have the problem > discussed and resolve in this trac ticket: http://darwinbuild.macosforge.org/trac/ticket/58 > . I have a build root using 9G55 and can even see the > correct CarbonHeaders in the 9G55.plist file: > > CarbonHeaders = { > version = 9G55; > }; > > Unfortunately, references to stdlib.h and stat.h are causing > errors referring to Availability.h and I'm not sure what might > be going on or how I might be able to fix it: > > In file included from /SourceCache/ppp/ppp-314.0.1/Helpers/ > pppd/ccp.c:60: > /usr/include/stdlib.h:61:26: error: Availability.h: No such > file or directory > In file included from /SourceCache/ppp/ppp-314.0.1/Helpers/ > pppd/ccp.c:60: > /usr/include/stdlib.h:283: error: syntax error before > '__OSX_AVAILABLE_BUT_DEPRECATED' > > > Can anyone provide guidance on how to solve this problem? >
For now, you can manually load a root for CarbonHeaders with the following:
darwinbuild -load CarbonHeaders
I'll update the dependencies for ppp so its loaded automatically in the future.
Thanks -Bill
_______________________________________________ darwinbuild-dev mailing list darwinbuild-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/darwinbuild-dev
_______________________________________________ darwinbuild-dev mailing list darwinbuild-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/darwinbuild-dev
On Apr 28, 2009, at 11:11 AM, Stuart Crook wrote:
Hi, Craig.
If you're still tryind darwinbuild, "darwinbuild -target=pppd ppp" should (although I haven't tried it) build just the pppd part of the ppp package, which will at least save you having to chase down non- relevant problems.
_sjc_
Yes, I was just about to suggest "-target=pppd"... If that does not just try to build pppd please let me know. -Bill
I feel like I'm *so close* doing this via darwinbuild, but I'm still hitting problems. I will do some more digging on the troubleshooting page to see if I can resolve the issues I'm seeing now. I tried to specify the target and it complained that that target didn't exist, so I'm not sure what is going on there. It looks like some of this may be failing when trying to build for PPC. I really only care about intel, so I'm not sure if there is an easy way to disable targeting PPC? Mig /SourceCache/ppp/ppp-314.0.1/Controller/pppcontroller.defs mkdir "/private/var/tmp/ppp/ppp-314.0.1.obj/ppp.build/pppd (Tool).build/DerivedSources" cd /SourceCache/ppp/ppp-314.0.1 /XCD/loper/usr/bin/mig -header "/private/var/tmp/ppp/ ppp-314.0.1.obj/ppp.build/pppd (Tool).build/DerivedSources/ pppcontroller.h" -user "/private/var/tmp/ppp/ppp-314.0.1.obj/ppp.build/ pppd (Tool).build/DerivedSources/pppcontrollerUser.c" -sheader /dev/ null -server /dev/null -I/private/var/tmp/ppp/ppp-314.0.1.sym/ BuiltProducts/include -I../../Family -I/private/var/tmp/ppp/ ppp-314.0.1.root/usr/include /SourceCache/ppp/ppp-314.0.1/Controller/ pppcontroller.defs dyld: Library not loaded: /System/Library/Frameworks/ Foundation.framework/Versions/C/Foundation Referenced from: /usr/bin/arch Reason: image not found cc: Invalid arch name : -D__MACH30__ mig: fatal: "<no name yet>", line -1: no SubSystem declaration rmdir: /tmp/mig.FDBFhh: No such file or directory I may also have to step back and try XCode with a specific target again. Craig On Apr 28, 2009, at 1:11 PM, Stuart Crook wrote:
Hi, Craig.
If you're still tryind darwinbuild, "darwinbuild -target=pppd ppp" should (although I haven't tried it) build just the pppd part of the ppp package, which will at least save you having to chase down non- relevant problems.
_sjc_
On 28 Apr 2009, at 18:18, Craig Setera wrote:
Stuart,
I tried that route originally and couldn't seem to get things going. I grabbed configd for those particular headers and then that required more headers... Maybe the issue was that I was trying to build "all" rather than just pppd? My C skills are rusty (I'm primarily a Java guy). To top it off, my Mac OS X/Darwin skills are non-existent. This is all good learning for me in the end...
I will see whether I can get one or both of these options going (Darwin Build or XCode build).
Thanks, Craig
On Apr 28, 2009, at 11:22 AM, Stuart Crook wrote:
Hi, Craig,
Since pppd is an XCode project, you may find it easier to build it there, patching as needed, rather than in darwinbuild. There are lost of sub-projects inside it, but when I tried just the pppd target a minute ago it only threw up 4 errors (compared to about a thousand for the whole lot).
(Or rather, two errors repeated: it couldn't find SystemConfiguration/SCPrivate.h (which you can get from its source) or ppp/pppcontroller_types.h (which I think should be in this package). )
You will certainly run into fewer problems because of missing non- open frameworks. But this is only a suggestion, your milage may vary, etc..
_sjc_
On 28 Apr 2009, at 17:01, Craig Setera wrote:
Thanks. I will take a look. This is truly a geeky endeavor. I have a new Blackberry Bold that I want to use as a Bluetooth tethered modem. Myself and others are having trouble. I think it is in the ppp negotiation and I'm trying to build ppp so that I can use it with various hacks to try to tether. A long way to go for something so silly, but it is really bugging me now!
So, in a nutshell, I'd like to be able to build and execute a custom pppd on my Macbook Pro (10.5.6). Any hints or pointers are greatly appreciated.
Thanks, Craig
On Apr 28, 2009, at 10:57 AM, Stuart Crook wrote:
Hi, Craig.
You may find the answer here: http://www.puredarwin.org/developers/darwinbuild/troubleshooting -- or elsewhere on the site. There are also patches for various packages in the svn at code.google.com/p/puredarwin .
Which bits of Darwin in particular are you interested in / trying to build?
_sjc_
On 28 Apr 2009, at 16:47, Craig Setera wrote:
Continuing to make progress thanks to your help. I loaded CF and Security and managed to get further. Now I'm seeing:
In file included from /System/Library/Frameworks/ Security.framework/Headers/Security.h:50, from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ auth.c:2764: /System/Library/Frameworks/Security.framework/Headers/SecBase.h: 63: error: syntax error before 'SecKeychainAttrType'
The source code in that header is:
typedef OSType SecKeychainAttrType;
Any idea where OSType would be declared? Also, what is the difference between doing "darwinbuild CF" rather than "darwinbuild -load CF"? I had done the former, but it required the latter.
Thanks again, Craig
On Apr 27, 2009, at 9:46 PM, William Siegrist wrote:
> On Apr 27, 2009, at 7:40 PM, Craig Setera wrote: > >> I'm still new to darwinbuild and running into a problem that >> I don't understand. It appears that I have the problem >> discussed and resolve in this trac ticket: http://darwinbuild.macosforge.org/trac/ticket/58 >> . I have a build root using 9G55 and can even see the >> correct CarbonHeaders in the 9G55.plist file: >> >> CarbonHeaders = { >> version = 9G55; >> }; >> >> Unfortunately, references to stdlib.h and stat.h are causing >> errors referring to Availability.h and I'm not sure what >> might be going on or how I might be able to fix it: >> >> In file included from /SourceCache/ppp/ppp-314.0.1/Helpers/ >> pppd/ccp.c:60: >> /usr/include/stdlib.h:61:26: error: Availability.h: No such >> file or directory >> In file included from /SourceCache/ppp/ppp-314.0.1/Helpers/ >> pppd/ccp.c:60: >> /usr/include/stdlib.h:283: error: syntax error before >> '__OSX_AVAILABLE_BUT_DEPRECATED' >> >> >> Can anyone provide guidance on how to solve this problem? >> > > > For now, you can manually load a root for CarbonHeaders with > the following: > > darwinbuild -load CarbonHeaders > > > I'll update the dependencies for ppp so its loaded > automatically in the future. > > Thanks > -Bill >
_______________________________________________ darwinbuild-dev mailing list darwinbuild-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/darwinbuild-dev
_______________________________________________ darwinbuild-dev mailing list darwinbuild-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/darwinbuild-dev
dyld: Library not loaded: /System/Library/Frameworks/ Foundation.framework/Versions/C/Foundation Referenced from: /usr/bin/arch Reason: image not found
Foundation.framework isn't open-source, and I don't think it's loaded into the build environment either. Your options are to either copy in your system's Foundation from /System/Library/Frameworks/, or use the just-about-good-enough-to-run-arch PureFoundation from code.google.com/ p/purefoundation . (In this case, I think the former is probably your best bet.) As for building for Intel only, yes, there is a way. This thread: http://lists.macosforge.org/pipermail/darwinbuild-dev/2008-August/000444.htm... explains it (only for PPC rather than Intel, but it shouldn't be hard to make the necessary changes). _sjc_
On Apr 28, 2009, at 11:40 AM, Craig Setera wrote:
I feel like I'm *so close* doing this via darwinbuild, but I'm still hitting problems. I will do some more digging on the troubleshooting page to see if I can resolve the issues I'm seeing now. I tried to specify the target and it complained that that target didn't exist, so I'm not sure what is going on there.
It looks like some of this may be failing when trying to build for PPC. I really only care about intel, so I'm not sure if there is an easy way to disable targeting PPC?
You can use the following to edit the project data in your build environment: $ darwinxref edit 9G55 ppp You want to enter: environment = { RC_ARCHS = i386; }; ... and then save/quit. You can verify the archs are set with: $ darwinxref environment ppp
Mig /SourceCache/ppp/ppp-314.0.1/Controller/pppcontroller.defs mkdir "/private/var/tmp/ppp/ppp-314.0.1.obj/ppp.build/pppd (Tool).build/DerivedSources" cd /SourceCache/ppp/ppp-314.0.1 /XCD/loper/usr/bin/mig -header "/private/var/tmp/ppp/ ppp-314.0.1.obj/ppp.build/pppd (Tool).build/DerivedSources/ pppcontroller.h" -user "/private/var/tmp/ppp/ppp-314.0.1.obj/ ppp.build/pppd (Tool).build/DerivedSources/pppcontrollerUser.c" - sheader /dev/null -server /dev/null -I/private/var/tmp/ppp/ ppp-314.0.1.sym/BuiltProducts/include -I../../Family -I/private/var/ tmp/ppp/ppp-314.0.1.root/usr/include /SourceCache/ppp/ppp-314.0.1/ Controller/pppcontroller.defs dyld: Library not loaded: /System/Library/Frameworks/ Foundation.framework/Versions/C/Foundation Referenced from: /usr/bin/arch Reason: image not found
This is a known problem of arch linking to Foundation. It looks like you just need an arch that spits out "i386" or whatever, you can replace it with a shell script that runs "uname -m". Look for arch under the BuildRoot directory and replace it with the script. -Bill
First, let me thank you for helping out so much as I try to make this work. The fact that I'm trying to do this "for fun" probably tells you a bit about how geeky I really am. It appears that I'm down to a single remaining error: Mig /SourceCache/ppp/ppp-314.0.1/Controller/pppcontroller.defs mkdir "/private/var/tmp/ppp/ppp-314.0.1.obj/ppp.build/pppd (Tool).build/DerivedSources" cd /SourceCache/ppp/ppp-314.0.1 /XCD/loper/usr/bin/mig -header "/private/var/tmp/ppp/ ppp-314.0.1.obj/ppp.build/pppd (Tool).build/DerivedSources/ pppcontroller.h" -user "/private/var/tmp/ppp/ppp-314.0.1.obj/ppp.build/ pppd (Tool).build/DerivedSources/pppcontrollerUser.c" -sheader /dev/ null -server /dev/null -I/private/var/tmp/ppp/ppp-314.0.1.sym/ BuiltProducts/include -I../../Family -I/private/var/tmp/ppp/ ppp-314.0.1.root/usr/include /SourceCache/ppp/ppp-314.0.1/Controller/ pppcontroller.defs dyld: Library not loaded: /System/Library/Frameworks/ CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/ Versions/A/CFNetwork Referenced from: /System/Library/Frameworks/Foundation.framework/ Versions/C/Foundation Reason: image not found cc: Invalid arch name : -D__MACH30__ mig: fatal: "<no name yet>", line -1: no SubSystem declaration rmdir: /tmp/mig.C5pcvL: No such file or directory Is this related to the architecture comment at the bottom of this email chain? If so, can you give me some insight into how to go about altering things appropriately? One of the interesting things is that this is definitely not part of an XCode target that I actually care to build. It appears that the reason that "darwinbuild -target=pppd ppp" won't work is because the target is actually called "pppd (Tool)". I've tried a number of combinations of quoting to try to pass that value through to xcodebuilder, but I keep getting things like: private/var/tmp/ppp/build-ppp-314.0.1~20.sh: line 157: syntax error near unexpected token `(' I also tried invoking xcodebuilder directly, but I seem to not have things set up correctly when doing that, because I actually get *more* errors trying to do that. Can you offer any ideas for next steps? Thanks again Craig On Apr 28, 2009, at 1:55 PM, William Siegrist wrote:
On Apr 28, 2009, at 11:40 AM, Craig Setera wrote:
I feel like I'm *so close* doing this via darwinbuild, but I'm still hitting problems. I will do some more digging on the troubleshooting page to see if I can resolve the issues I'm seeing now. I tried to specify the target and it complained that that target didn't exist, so I'm not sure what is going on there.
It looks like some of this may be failing when trying to build for PPC. I really only care about intel, so I'm not sure if there is an easy way to disable targeting PPC?
You can use the following to edit the project data in your build environment:
$ darwinxref edit 9G55 ppp
You want to enter:
environment = { RC_ARCHS = i386; };
... and then save/quit.
You can verify the archs are set with:
$ darwinxref environment ppp
Mig /SourceCache/ppp/ppp-314.0.1/Controller/pppcontroller.defs mkdir "/private/var/tmp/ppp/ppp-314.0.1.obj/ppp.build/pppd (Tool).build/DerivedSources" cd /SourceCache/ppp/ppp-314.0.1 /XCD/loper/usr/bin/mig -header "/private/var/tmp/ppp/ ppp-314.0.1.obj/ppp.build/pppd (Tool).build/DerivedSources/ pppcontroller.h" -user "/private/var/tmp/ppp/ppp-314.0.1.obj/ ppp.build/pppd (Tool).build/DerivedSources/pppcontrollerUser.c" - sheader /dev/null -server /dev/null -I/private/var/tmp/ppp/ ppp-314.0.1.sym/BuiltProducts/include -I../../Family -I/private/var/ tmp/ppp/ppp-314.0.1.root/usr/include /SourceCache/ppp/ppp-314.0.1/ Controller/pppcontroller.defs dyld: Library not loaded: /System/Library/Frameworks/ Foundation.framework/Versions/C/Foundation Referenced from: /usr/bin/arch Reason: image not found
This is a known problem of arch linking to Foundation. It looks like you just need an arch that spits out "i386" or whatever, you can replace it with a shell script that runs "uname -m". Look for arch under the BuildRoot directory and replace it with the script.
-Bill
On Apr 28, 2009, at 7:14 PM, Craig Setera wrote:
First, let me thank you for helping out so much as I try to make this work. The fact that I'm trying to do this "for fun" probably tells you a bit about how geeky I really am. It appears that I'm down to a single remaining error:
Mig /SourceCache/ppp/ppp-314.0.1/Controller/pppcontroller.defs mkdir "/private/var/tmp/ppp/ppp-314.0.1.obj/ppp.build/pppd (Tool).build/DerivedSources" cd /SourceCache/ppp/ppp-314.0.1 /XCD/loper/usr/bin/mig -header "/private/var/tmp/ppp/ ppp-314.0.1.obj/ppp.build/pppd (Tool).build/DerivedSources/ pppcontroller.h" -user "/private/var/tmp/ppp/ppp-314.0.1.obj/ ppp.build/pppd (Tool).build/DerivedSources/pppcontrollerUser.c" - sheader /dev/null -server /dev/null -I/private/var/tmp/ppp/ ppp-314.0.1.sym/BuiltProducts/include -I../../Family -I/private/var/ tmp/ppp/ppp-314.0.1.root/usr/include /SourceCache/ppp/ppp-314.0.1/ Controller/pppcontroller.defs dyld: Library not loaded: /System/Library/Frameworks/ CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/ Versions/A/CFNetwork Referenced from: /System/Library/Frameworks/Foundation.framework/ Versions/C/Foundation Reason: image not found cc: Invalid arch name : -D__MACH30__ mig: fatal: "<no name yet>", line -1: no SubSystem declaration rmdir: /tmp/mig.C5pcvL: No such file or directory
Is this related to the architecture comment at the bottom of this email chain? If so, can you give me some insight into how to go about altering things appropriately?
If you look at the following file, you'll see it links to Foundation (the first item in the list): # otool -L BuildRoot/usr/bin/arch BuildRoot/usr/bin/arch: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 677.19.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) /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/ CoreFoundation (compatibility version 150.0.0, current version 476.13.0) So move arch out of the way: # mv BuildRoot/usr/bin/arch BuildRoot/usr/bin/arch.bak And replace it with a shell script like the following: #!/bin/sh /usr/bin/uname -m ... and make it executable: # chmod a+x BuildRoot/usr/bin/arch (Note that when the build is in progress, it is chrooted, so "/usr/ bin" in the shell script is really "BuildRoot/usr/bin")
One of the interesting things is that this is definitely not part of an XCode target that I actually care to build. It appears that the reason that "darwinbuild -target=pppd ppp" won't work is because the target is actually called "pppd (Tool)". I've tried a number of combinations of quoting to try to pass that value through to xcodebuilder, but I keep getting things like:
private/var/tmp/ppp/build-ppp-314.0.1~20.sh: line 157: syntax error near unexpected token `('
Darwinbuild does not wrap the target in quotes, so the following forces a set of quotes to make it into the xcodebuild command: darwinbuild -target="\"pppd (Tool)\"" ppp -Bill
Fix one thing and find the next :-) Looks like now it is choking on missing IOKit headers? I did a load of "IOKitTools" which worked, but it didn't help. I tried "IOKitUser" which I saw in the plist files, but that one came up as a missing root. Looking at the troubleshooting, there is discussion of building IOKitUser. Will that get me what I need? Is there a place on my Mac I can copy what I need into my build root? Thanks yet again, Craig On Apr 29, 2009, at 1:34 AM, William Siegrist wrote:
On Apr 28, 2009, at 7:14 PM, Craig Setera wrote:
First, let me thank you for helping out so much as I try to make this work. The fact that I'm trying to do this "for fun" probably tells you a bit about how geeky I really am. It appears that I'm down to a single remaining error:
Mig /SourceCache/ppp/ppp-314.0.1/Controller/pppcontroller.defs mkdir "/private/var/tmp/ppp/ppp-314.0.1.obj/ppp.build/pppd (Tool).build/DerivedSources" cd /SourceCache/ppp/ppp-314.0.1 /XCD/loper/usr/bin/mig -header "/private/var/tmp/ppp/ ppp-314.0.1.obj/ppp.build/pppd (Tool).build/DerivedSources/ pppcontroller.h" -user "/private/var/tmp/ppp/ppp-314.0.1.obj/ ppp.build/pppd (Tool).build/DerivedSources/pppcontrollerUser.c" - sheader /dev/null -server /dev/null -I/private/var/tmp/ppp/ ppp-314.0.1.sym/BuiltProducts/include -I../../Family -I/private/var/ tmp/ppp/ppp-314.0.1.root/usr/include /SourceCache/ppp/ppp-314.0.1/ Controller/pppcontroller.defs dyld: Library not loaded: /System/Library/Frameworks/ CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/ Versions/A/CFNetwork Referenced from: /System/Library/Frameworks/Foundation.framework/ Versions/C/Foundation Reason: image not found cc: Invalid arch name : -D__MACH30__ mig: fatal: "<no name yet>", line -1: no SubSystem declaration rmdir: /tmp/mig.C5pcvL: No such file or directory
Is this related to the architecture comment at the bottom of this email chain? If so, can you give me some insight into how to go about altering things appropriately?
On Apr 29, 2009, at 2:16 PM, Craig Setera wrote:
Fix one thing and find the next :-) Looks like now it is choking on missing IOKit headers? I did a load of "IOKitTools" which worked, but it didn't help. I tried "IOKitUser" which I saw in the plist files, but that one came up as a missing root. Looking at the troubleshooting, there is discussion of building IOKitUser. Will that get me what I need? Is there a place on my Mac I can copy what I need into my build root?
IOKitUser has some problems building using just the sources released by Apple. You can look at the puredarwin project for workarounds or copy bits needed off of your host system. If this is just a hobby and not a release to the public meant to be pure open source, then copying off of your host system if probably easiest. -Bill
2009/4/29 William Siegrist <wsiegrist@apple.com>:
IOKitUser has some problems building using just the sources released by Apple. You can look at the puredarwin project for workarounds or copy bits needed off of your host system.
See the patches on http://puredarwin.googlecode.com/hg/trunk/patches/ If anyone knows a cleaner solution, please let us know. -- http://www.puredarwin.org/
On Apr 28, 2009, at 8:47 AM, Craig Setera wrote:
Continuing to make progress thanks to your help. I loaded CF and Security and managed to get further. Now I'm seeing:
In file included from /System/Library/Frameworks/Security.framework/ Headers/Security.h:50, from /SourceCache/ppp/ppp-314.0.1/Helpers/pppd/ auth.c:2764: /System/Library/Frameworks/Security.framework/Headers/SecBase.h:63: error: syntax error before 'SecKeychainAttrType'
The source code in that header is:
typedef OSType SecKeychainAttrType;
Any idea where OSType would be declared? Also, what is the difference between doing "darwinbuild CF" rather than "darwinbuild - load CF"? I had done the former, but it required the latter.
"darwinbuild CF" builds CF from source. "darwinbuild -load CF" loads a pre-compiled binary root. -Bill
participants (4)
-
Craig Setera
-
probono
-
Stuart Crook
-
William Siegrist