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: Xcode 2.0 kext load problem



Ron,

I don't think the gcc version is the issue. The particular load error you are seeing is typical when a driver is built against newer IOKit headers than the OS it is loading on (e.g., a driver built with 10.4 headers loading on a 10.3 system). Selecting the 10.2.8 SDK should ensure you are getting appropriate headers, but apparently it is not.

Double check that you are really using 10.2.8 SDK, and make sure and do a "Clean All" prior to building just to make sure there are no lingering bits.

I'll have a look and make sure the expected headers are in the 10.2.8 SDK...
- Dean



On May 19, 2005, at 07:03, Ron Duritsch wrote:

I am maintaining a PCI kext for a digital camera that operates on 10.2, 10.3, and now 10.4.1. If I build the kext in Xcode 1.5 it will load and work fine on all three operating systems. If, however, I build it on Xcode 2.0 in Tiger, it will only load and run on Tiger. It will not load at boot time on 10.3.9. If I try kextload in Terminal on 10.3.9 I get the following error message:

25com_diaginc_iokit_SpotPCI is not compatible with its superclass,
9IOService superclass changed?
kextload: a link/load error occured for kernel extension
/System/Library/Extensions/SpotPCI.kext
load failed for extension /System/Library/Extensions/SpotPCI.kext

I am building against the 10.2.8 SDK. I get the same load error whether I compile using GCC 4.0 or 3.3 in Xcode 2.0.

In the Xcode 2.0 release notes "About Xcode Tools", under the section entitled "Compatibility of Built Binaries" it reads "IOKit- based device drivers built with the GCC 3.3 or GCC 4.0 compilers will run on Mac OS X v10.2 (Jaguar), Mac OS X v10.3 (Panther), and Mac OS X v10.4 (Tiger) systems."

Any clues or hints as to what I need to change to get this to work?

Thanks,

Ron Duritsch
Diagnostic Instruments, Inc.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-drivers/dean.reece% 40apple.com


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-drivers mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-drivers/email@hidden

This email sent to email@hidden
References: 
 >Xcode 2.0 kext load problem (From: Ron Duritsch <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.