Kext on 10.1.5
Kext on 10.1.5
- Subject: Kext on 10.1.5
- From: Eric Long <email@hidden>
- Date: Wed, 16 Apr 2003 10:24:01 -0700
Hi all,
This list has helped me wrangle with some of the pitfalls with kernel
extensions. Thanks to those who have provided input at various times.
At present, I have a working kext for Jaguar. I'm now trying to create a
version for 10.1.5. As far as I can tell, we should be able to support
10.1.5. At this point though, I'm encountering some "resistance".
I found that the 2.9.5 GCC compiler used by PB, shipped with the 10.1.5 Dev
tools, choked on the code. I think it should have been able to handle it,
but it's not happy. For instance, I use a debugging macro with a variable
arguments list, and it doesn't know how to handle it. It would be a
nightmare for me to rewrite this code to suit that compiler.
I was advised to obtain the April 2002 Dev tools, containing a pre-release
version of PB that supports the GCC 3.1 compiler and that will run on
10.1.5. I obtained it and added the appropriate build setting to my project
to compile with with GCC 3.1. The kext appears to build fine.
Unfortunately, when I try to load it, I get a crop of undefined symbol
errors like these:
kmodload: __ZN11OSMetaClass21_RESERVEDOSMetaClass0Ev
kmodload: __ZN11OSMetaClass21_RESERVEDOSMetaClass1Ev
kmodload: __ZN12IOUserClient10getServiceEv
kmodload: __ZN12IOUserClient12initWithTaskEP4taskPvmP12OSDictionary
kmodload: __ZN12IOUserClient13connectClientEPS_
kmodload: __ZN12IOUserClient15mapClientMemoryEmP4taskmj
kmodload: __ZN15IORegistryEntry26_RESERVEDIORegistryEntry18Ev
kmodload: __ZN15IORegistryEntry26_RESERVEDIORegistryEntry19Ev
kmodload: __ZN8OSObject19_RESERVEDOSObject19Ev
kmodload: __ZN9IOService12didTerminateEPS_mPb
kmodload: __ZN9IOService12getBusyStateEv
This leaves me with two questions...
a) Is it safe to use the version of the pre-release GCC 3.1 compiler shipped
with the April 2002 Dev tools?
b) All of the undefined symbols I see seem to be IOKit related. Anyone know
what's up with this? How to get around the problem?
Thanks in advance,
Eric Long
_____________________________________________________________________
In the movie, Jon Lovitz will play the Iraqi Information Minister.
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.