Porting XNU code to Mac OS X 10.4.4
Porting XNU code to Mac OS X 10.4.4
- Subject: Porting XNU code to Mac OS X 10.4.4
- From: "Anees Alappat" <email@hidden>
- Date: Thu, 9 Nov 2006 11:24:24 +0530
Hello All,
I was trying to compile the Link aggregation code from xnu-792.6.56
(if_bond.c) in MAC OS X 10.4.4 (Darwin 8.4).
But i got lots of errors.I understood from the documents that,the structure
of MAC OS X
10.3 and MAC OS X 10.4 differ a lot.
But since MAC OS X 10.4.4 uses xnu-792.6.56 kernel,it is expected to work the
link aggregation code in MAC 10.4.4 also.
I would like to know why xnu-792.6.56 still follows the structure of MAC OS X
10.3?
Why xnu later versions still not using KPIs,instead still follows dlil interfaces?
Could any one please suggest a way to port the dlil fuctions from OS X 10.3 to OS X 10.4?
Please sind the attached files for Build steps and Error log
Thanks & Best Regards
Anees
/usr/bin/gcc-4.0 -x c -arch ppc -pipe -Wno-trigraphs -fasm-blocks -Os -Wreturn-type -Wunused-variable -fmessage-length=0 -mtune=G5 -mmacosx-version-min=10.4 -I/var/root/MAC_Bond/build/MAC_Bond.build/Release/MAC_Bond.build/MAC_Bond.hmap -F/var/root/MAC_Bond/build/Release -I/var/root/MAC_Bond/build/Release/include -I/System/Library/Frameworks/Kernel.framework/PrivateHeaders -I/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Kernel.framework/Headers -I/var/root/MAC_Bond/build/MAC_Bond.build/Release/MAC_Bond.build/DerivedSources -fno-common -nostdinc -fno-builtin -finline -fno-keep-inline-functions -force_cpusubtype_ALL -fno-exceptions -msoft-float -static -mlong-branch -DBSD_BUILD -DKERNEL -DPRIVATE -DBSD_KERNEL_PRIVATE -DKERNEL_PRIVATE -DDRIVER_PRIVATE -DAPPLE -DNeXT -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c /var/root/MAC_Bond/English.lproj/MAC_Bond.c -o /var/root/MAC_Bond/build/MAC_Bond.build/Release/MAC_Bond.build/Objects-normal/ppc/MAC_Bond.o
/usr/bin/gcc-4.0 -o /var/root/MAC_Bond/build/MAC_Bond.build/Release/MAC_Bond.build/Objects-normal/ppc/MAC_Bond -L/var/root/MAC_Bond/build/Release -F/var/root/MAC_Bond/build/Release -filelist /var/root/MAC_Bond/build/MAC_Bond.build/Release/MAC_Bond.build/Objects-normal/ppc/MAC_Bond.LinkFileList -arch ppc -static -nostdlib -r -lkmodc++ /var/root/MAC_Bond/build/MAC_Bond.build/Release/MAC_Bond.build/Objects-normal/ppc/MAC_Bond_info.o -lkmod -lcc_kext -lcpp_kext -isysroot /Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/lipo -create /var/root/MAC_Bond/build/MAC_Bond.build/Release/MAC_Bond.build/Objects-normal/ppc/MAC_Bond -output /var/root/MAC_Bond/build/Release/MAC_Bond.kext/Contents/MacOS/MAC_Bond
ushus:/tmp root# kextload MAC_Bond.kext
kld(): Undefined symbols:
_copyin
_copyout
_dlil_attach_protocol
_dlil_detach_protocol
_dlil_event
_dlil_if_acquire
_dlil_if_attach
_dlil_if_detach
_dlil_if_release
_dlil_input_packet
_dlil_ioctl
_dlil_output
_dlil_reg_if_modules
_dlil_reg_proto_module
_ether_add_if
_ether_add_proto_old
_ether_attach_inet
_ether_attach_inet6
_ether_del_if
_ether_detach_inet
_ether_detach_inet6
_etherbroadcastaddr
_if_addmulti
_if_clone_attach
_if_delmultiaddr
_if_index
_ifma_release
_ifnet_addrs
_ifnet_lock_done
_ifnet_lock_exclusive
_ifunit
_lck_attr_alloc_init
_lck_attr_free
_lck_attr_setdefault
_lck_grp_alloc_init
_lck_grp_attr_alloc_init
_lck_grp_attr_free
_lck_grp_attr_setdefault
_lck_mtx_alloc_init
_lck_mtx_assert
_lck_mtx_lock
_lck_mtx_unlock
_m_free
_m_freem
_m_get
_m_gethdr
_m_pullup
kextload: kld_load_from_memory() failed for module /private/tmp/MAC_Bond.kext/Contents/MacOS/MAC_Bond
kextload: a link/load error occured for kernel extension MAC_Bond.kext
load failed for extension MAC_Bond.kext
(run kextload with -t for diagnostic output)
ushus:/tmp root#
_______________________________________________
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