Re: Build 10.5 kext on 10.9
Re: Build 10.5 kext on 10.9
- Subject: Re: Build 10.5 kext on 10.9
- From: Benjamin Fleischer <email@hidden>
- Date: Fri, 23 May 2014 14:03:43 +0200
Hi,
I’ve been using using a slightly modified Xcode 3.2.6 to build 10.5 kernel extensions (including ppc support) on Mavericks for some time now. Here is what I did to make this work:
To set things up you need a Mac running 10.6 and install Xcode 3.2.6. Then tar the /Developer directory:
tar -cjvf ~/Desktop/Developer.tbz /Developer
On Mavericks extract the tar:
cd /
sudo tar -xjvpf /path/to/Developer.tbz
Now delete the following SVN plugins on Mavericks. They don’t seem to be compatible with Mavericks.
/Developer/Library/Xcode/Plug-ins/XcodeSubversionIDEPlugin.xcplugin
/Developer/Library/Xcode/Plug-ins/XcodeSubversionPlugin.xcplugin
Then copy the following tools from 10.6 over to /Developer on Mavericks. Make sure owner an group are set to root:wheel.
/usr/bin/codesign from 10.6 to /Developer/usr/bin/codesign on Mavericks
/usr/bin/codesign_allocate from 10.6 to /Developer/usr/bin/codesign_allocate on Mavericks
/usr/bin/ld from 10.6 to /Developer/usr/bin/ld on Mavericks
/usr/bin/lipo from 10.6 to /Developer/usr/bin/lipo on Mavericks
Clear xcrun’s cache:
DEVELOPER_DIR=/Developer xcrun —kill-cache
This should be all. After doing this I was able to build 10.5 kernel extensions using xcodebuild:
DEVELOPER_DIR=/Developer xcodebuild ...
I hope this helps.
Regards,
Benjamin
Am 23.05.2014 um 12:55 schrieb Jeff Schindler <email@hidden>:
> Hi Nick,
>
> Thanks for the response and the clue. It's frustrating because I *was* using 2 build systems and just migrated to a single one before encountering this. I will dig a little deeper and let you know if I find anything.
>
> Thanks,
> Jeff
>
> On May 22, 2014, at 11:39 PM, Nick Blievers wrote:
>
>> I gave up on this and use two separate build machines. Not what you want to hear I know. As a possible hint, the missing symbols are:
>>
>> $ c++filt
>> __Znam
>> operator new[](unsigned long)
>> __ZdaPv
>> operator delete[](void*)
>>
>> hope this helps, and if you do figure it out, please post it!
>>
>>
>> Nick
>>
>> On 23 May 2014, at 12:56 pm, Jeff Schindler <email@hidden> wrote:
>>
>>> I'm trying to build a 10.5 kext under Mavericks and am getting some undefined symbols upon loading the kext under 10.5:
>>>
>>> kld(): Undefined symbols:
>>> __ZdaPv
>>> __Znam
>>>
>>> I'm using Xcode 4.6 and have tried both compilers (llvm and gcc). I had been building it under 10.6.8 with Xcode 4.3 with no problems (haven't changed any project settings). Anyone have any pointers?
>>>
>>> Thanks,
>>> Jeff
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Darwin-kernel mailing list (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Darwin-kernel mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden