Header issues?
Header issues?
- Subject: Header issues?
- From: Mason Loring Bliss <email@hidden>
- Date: Tue, 24 May 2005 22:05:07 -0400
Hi, all.
I've tried building XNU, and more recently I've tried compiling
AppleADBKeyboard, and I get failures that make me think I've got
some sort of missing headers or header mismatch.
Can someone suggest what might be wrong here? Is this perhaps an issue with
gcc4, and can I tell XCode to use gcc3 somehow? I'd really like to get this
to build, but I'm new to XCode and new to MacOS in general.
I'm using Tiger/XCode 2, FWIW.
I assume I'm missing something, somewhere, because, for instance, a definition
for SUB_ABSOLUTETIME is just plain missing, and I don't see it as I grep
through /usr/include...
Thanks in advance for clues!
Building target AppleADBKeyboard with build style Deployment (optimization:level size, debug-symbols:on) (8 errors, 1 warning)
/usr/bin/g++-4.0 -c -I/Users/mason/Desktop/AppleADBKeyboard-238.3.4/build/AppleADBKeyboard.build/AppleADBKeyboard.build/AppleADBKeyboard.hmap -F/Users/mason/Desktop/AppleADBKeyboard-238.3.4/build -I/Users/mason/Desktop/AppleADBKeyboard-238.3.4/build/include -arch ppc -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 -mlong-branch -static -DKERNEL -DKERNEL_PRIVATE -DDRIVER_PRIVATE -DAPPLE -DNeXT -pipe "-fmessage-length=0" -g -I/Users/mason/Desktop/AppleADBKeyboard-238.3.4/build/AppleADBKeyboard.build/AppleADBKeyboard.build/DerivedSources -I/Users/mason/Desktop/AppleADBKeyboard-238.3.4/build/AppleADBKeyboard.build/AppleADBKeyboard.build/DerivedSources AppleADBKeyboard.cpp -o /Users/mason/Desktop/AppleADBKeyboard-238.3.4/build/AppleADBKeyboard.build/AppleADBKeyboard.build/Objects-normal/ppc/AppleADBKeyboard.o
AppleADBKeyboard.cpp: In member function `virtual bool AppleADBKeyboard::start(IOService*)':
AppleADBKeyboard.cpp:231: error: cannot convert 'AbsoluteTime*' to 'uint64_t*' for argument '3' to 'void clock_interval_to_absolutetime_interval(uint32_t, uint32_t, uint64_t*)'
AppleADBKeyboard.cpp:232: error: cannot convert 'AbsoluteTime*' to 'uint64_t*' for argument '3' to 'void clock_interval_to_absolutetime_interval(uint32_t, uint32_t, uint64_t*)'
AppleADBKeyboard.cpp: In member function `virtual bool AppleADBKeyboard::open(IOService*, IOOptionBits, void (*)(OSObject*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, bool, AbsoluteTime), void (*)(OSObject*, unsigned int, unsigned int, unsigned int, unsigned int, UInt64, bool, AbsoluteTime), void (*)(OSObject*, unsigned int))':
AppleADBKeyboard.cpp:274: error: cannot convert 'AbsoluteTime*' to 'uint64_t*' for argument '1' to 'void clock_get_uptime(uint64_t*)'
AppleADBKeyboard.cpp: In member function `virtual void AppleADBKeyboard::dispatchKeyboardEvent(unsigned int, bool, AbsoluteTime)':
AppleADBKeyboard.cpp:720: error: 'SUB_ABSOLUTETIME' was not declared in this scope
AppleADBKeyboard.cpp:721: error: 'CMP_ABSOLUTETIME' was not declared in this scope
AppleADBKeyboard.cpp: In member function `IOReturn AppleADBKeyboard::packet(UInt8*, IOByteCount, UInt8)':
AppleADBKeyboard.cpp:826: error: cannot convert 'AbsoluteTime*' to 'uint64_t*' for argument '1' to 'void clock_get_uptime(uint64_t*)'
AppleADBKeyboard.cpp: In member function `AbsoluteTime AppleADBKeyboard::getTimeLastNonmodKeydown()':
AppleADBKeyboard.cpp:867: error: 'CMP_ABSOLUTETIME' was not declared in this scope
AppleADBKeyboard.cpp: In member function `virtual void AppleADBKeyboard::keyboardEvent(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)':
AppleADBKeyboard.cpp:896: error: cannot convert 'AbsoluteTime*' to 'uint64_t*' for argument '1' to 'void clock_get_uptime(uint64_t*)'
AppleADBKeyboard.cpp: In member function `AbsoluteTime AppleADBKeyboard::getTimeLastNonmodKeydown()':
AppleADBKeyboard.cpp:871: warning: control reaches end of non-void function
AppleADBKeyboard.cpp:231: error: cannot convert 'AbsoluteTime*' to 'uint64_t*' for argument '3' to 'void clock_interval_to_absolutetime_interval(uint32_t, uint32_t, uint64_t*)'
AppleADBKeyboard.cpp:232: error: cannot convert 'AbsoluteTime*' to 'uint64_t*' for argument '3' to 'void clock_interval_to_absolutetime_interval(uint32_t, uint32_t, uint64_t*)'
AppleADBKeyboard.cpp:274: error: cannot convert 'AbsoluteTime*' to 'uint64_t*' for argument '1' to 'void clock_get_uptime(uint64_t*)'
AppleADBKeyboard.cpp:720: error: 'SUB_ABSOLUTETIME' was not declared in this scope
AppleADBKeyboard.cpp:721: error: 'CMP_ABSOLUTETIME' was not declared in this scope
AppleADBKeyboard.cpp:826: error: cannot convert 'AbsoluteTime*' to 'uint64_t*' for argument '1' to 'void clock_get_uptime(uint64_t*)'
AppleADBKeyboard.cpp:867: error: 'CMP_ABSOLUTETIME' was not declared in this scope
AppleADBKeyboard.cpp:896: error: cannot convert 'AbsoluteTime*' to 'uint64_t*' for argument '1' to 'void clock_get_uptime(uint64_t*)'
AppleADBKeyboard.cpp:871: warning: control reaches end of non-void function
Build failed for target "AppleADBKeyboard" using build style "Deployment" (8 errors, 1 warning)
--
Mason Loring Bliss email@hidden http://blisses.org/
Anything can be impossible, given sufficient bureaucracy.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden