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: current_thread() -> Undefined symbols NKE



Mach.exports:_current_thread

You need to declare a dependency on Mach.

-- Terry

On Jul 23, 2007, at 3:25 AM, Erez Kaplan wrote:
Hi,

I am working with NKE.

I am in need of using current_thread()


#include <kern/thread.h>

thread_t mt_t = current_thread();

Compiling and linking of kext are OK, but loading fails as follows:
(I tried from .c and .cpp to make sure it's not an extern "C" )

+ kextload /tmp/tcplognke.kext
kld(): Undefined symbols:
_current_thread
kextload: kld_load_from_memory() failed for module /tmp/ tcplognke.kext/Contents/MacOS/tcplognke
kextload: a link/load error occured for kernel extension /tmp/ tcplognke.kext
load failed for extension /tmp/tcplognke.kext


Please advise.

Cheers, Erez


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

This email sent to email@hidden

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

This email sent to email@hidden
References: 
 >current_thread() -> Undefined symbols NKE (From: Erez Kaplan <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.