Jump to content
3 posts in this topic

Recommended Posts

Hi,

 

My notebook needs a small hack to avoid PS2 bus freeze.

Tuxx made a fix for it a few monthes ago, here is the modified kext : http://forum.insanelymac.com/index.php?showtopic=3353

 

I need to re-build it for 10.4.8, however I dunno at all how I should do this.

 

Could you tell me first if OSX kernel is built with gcc3.3 or gcc4.0 ?

 

I managed to get it build, but source code is not gcc4.0 compliant, build fails due to bad casts... That's why I would first know if kernel is really built with gcc4.0

 

Thanks in advance,

 

Regards, Adam.

It seems gcc-3.3 has been deprecated ofr mactel so it's not needed.

 

It's an xcode project, but I don't know how to deal with it... :/

 

Here is what I get when building with gcc-4.0 :

CompileCplusplus /Users/gandalf/Desktop/ApplePS2Trackpad-9/build/ApplePS2Trackpad.build/Default/ApplePS2Trackpad.build/Objects-normal/i386/ApplePS2SynapticsTouchPad.o ApplePS2SynapticsTouchPad.cpp

/usr/bin/g++-4.0 -c -I/Users/gandalf/Desktop/ApplePS2Trackpad-9/build/ApplePS2Trackpad.build/Default/ApplePS2Trackpad.build/ApplePS2Trackpad.hmap -F/Users/gandalf/Desktop/ApplePS2Trackpad-9/build/Default -I/Users/gandalf/Desktop/ApplePS2Trackpad-9/build/Default/include -arch i386 -fno-common -nostdinc -Os -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -I/System/Library/Frameworks/Kernel.framework/PrivateHeaders -I/System/Library/Frameworks/Kernel.framework/Headers -fno-builtin -finline -fno-keep-inline-functions -force_cpusubtype_ALL -fno-rtti -fno-exceptions -fcheck-new -msoft-float -fapple-kext -static -DKERNEL -DKERNEL_PRIVATE -DDRIVER_PRIVATE -DAPPLE -DNeXT -pipe "-fmessage-length=0" -g -I/Users/gandalf/Desktop/ApplePS2Trackpad-9/build/ApplePS2Trackpad.build/Default/ApplePS2Trackpad.build/DerivedSources -I/Users/gandalf/Desktop/ApplePS2Trackpad-9/build/ApplePS2Trackpad.build/Default/ApplePS2Trackpad.build/DerivedSources ApplePS2SynapticsTouchPad.cpp -o /Users/gandalf/Desktop/ApplePS2Trackpad-9/build/ApplePS2Trackpad.build/Default/ApplePS2Trackpad.build/Objects-normal/i386/ApplePS2SynapticsTouchPad.o

ApplePS2SynapticsTouchPad.cpp: In member function 'virtual bool ApplePS2SynapticsTouchPad::start(IOService*)':

ApplePS2SynapticsTouchPad.cpp:200: error: converting from `void (ApplePS2SynapticsTouchPad::*)(UInt8)' to `void (*)(void*, UInt8)' in a kext. Use OSMemberFunctionCast() instead.

ApplePS2SynapticsTouchPad.cpp:221: error: converting from `void (ApplePS2SynapticsTouchPad::*)(UInt32)' to `void (*)(void*, UInt32)' in a kext. Use OSMemberFunctionCast() instead.

ApplePS2SynapticsTouchPad.cpp: In member function 'virtual void ApplePS2SynapticsTouchPad::dispatchRelativePointerEventWithPacket(UInt8*, UInt32)':

ApplePS2SynapticsTouchPad.cpp:345: error: cannot convert 'AbsoluteTime*' to 'uint64_t*' for argument '1' to 'void clock_get_uptime(uint64_t*)'

** BUILD FAILED *

 

But my 10.4.8 OS X has an ApplePS2 kernel module, and the sources I'm trying to built comes from apple opensource website, latest version for 10.4.8.

That's why I don't understand why it fails :thumbsup_anim:

×
×
  • Create New...