site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com I think you need to wrap the declaration of mynke_function in extern "C" -josh On Jul 19, 2007, at 6:24 AM, Rakesh Singhal wrote: Hi all I used nm utility also. nm -m /temp/myiokit.kext/Contents/MacOS/myiokit | grep mynke_function (undefined) external __ZN5myiokit11mynke_functionEv nm -m /temp2/mynke.kext/Contents/MacOS/aoenke | grep mynke_function 00000a36 (__TEXT,__text) external _mynke_function Can anyone suggest me how to solve this issue... Thanks in advance. Best regards Rakesh Singhal _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... I developed an IOkit driver(myiokit.kext) and an NKE(mynke.kext). The NKE is included in OSBundleLibraries in info.plist of IOkit driver (For dependency of IOKit driver on NKE). I put mynke.kext also in System/Library/Extensions folder. When I load the myiokit.kext and it loads mynke.kext also and calls start routine. Till now I dont have any issue. Now I want to communicate between mynke and myiokit. I defined a function in mynke and trying to call it from myiokit but I am getting following problem: kextload -t /temp/myiokit.kext/ kextload: extension /temp/myiokit.kext/ appears to be valid kld(): Undefined symbols: __ZN5myiokit11mynke_functionEv kextload: kld_load_from_memory() failed for module /temp/ myiokit.kext/Contents/MacOS/myiokit kextload: a link/load error occured for kernel extension /temp/ myiokit.kext/ load failed for extension /temp/myiokit.kext/ _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/jgraessley% 40apple.com This email sent to jgraessley@apple.com This email sent to site_archiver@lists.apple.com