Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross-compile PPC kernel on Intel?



I'm trying the 10.4.9 sources now, and get the same error but on line
79 of IOWorkLoop.cpp instead of line 81.

On 8/29/07, Boris Remizov <email@hidden> wrote:
> > /Users/mike/Kernel/Build/xnu-792.12.6/iokit/Kernel/IOWorkLoop.cpp: In
> > member function 'virtual bool IOWorkLoop::init()':
> > /Users/mike/Kernel/Build/xnu-792.12.6/iokit/Kernel/IOWorkLoop.cpp:81:
> > error: converting from `IOReturn (IOWorkLoop::*)(void*, void*, void*,
> > void*)' to `IOReturn (*)(OSObject*, void*, void*, void*, void*)' in a
> > kext.  Use OSMemberFunctionCast() instead.
>
>         Please take a source code for this error.

bool IOWorkLoop::init()
{
    // The super init and gateLock allocation MUST be done first
    if ( !super::init() )
        return false;

    if ( !(gateLock = IORecursiveLockAlloc()) )
        return false;

    if ( !(workToDoLock = IOSimpleLockAlloc()) )
        return false;

    controlG = IOCommandGate::   // *** The line below ---V ****
        commandGate(this, (IOCommandGate::Action) &IOWorkLoop::_maintRequest);
    if ( !controlG )

Some source of confusion seems to be that trying to build cctools
after having run xnu/SETUP/setup.sh screws things up.  When I realized
that I started a new terminal session.

Thanks -- Mike
-- 
Michael David Crawford
mdcrawford at gmail dot com

   Enjoy my art, photography, music and writing at
http://www.geometricvisions.com/
        --- Free Music Downloads ---
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-kernel/email@hidden

This email sent to email@hidden

References: 
 >Cross-compile PPC kernel on Intel? (From: "Michael Crawford" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.