From: Daniel S. <dan...@ya...> - 2004-03-23 17:17:32
|
I am trying to build colinux and am getting the following error when building driver.o: ------------------------ i686-pc-cygwin-gcc -Wl,--base-file,colinux/os/current/build/driver.base.tmp \ -Wl,--entry,_DriverEntry@8 \ -nostartfiles -nostdlib \ -o junk.tmp colinux/os/current/build/driver.o -lntoskrnl -lhal -lgcc colinux/os/current/build/driver.o(.text+0x43e2):alloc.c: undefined reference to `__imp__MmAllocatePagesForMdl@28' colinux/os/current/build/driver.o(.text+0x4539):alloc.c: undefined reference to `__imp__MmMapIoSpace@16' collect2: ld returned 1 exit status make: *** [colinux/os/current/build/driver.base.tmp] Error 1 ------------------------- When I ran dumpbin on libntoskrnl.a, I see that it exports _MmAllocatePagesForMdl@16 and _MmMapIoSpace@12 Looking at the headers reveals that these are the symbols it should be looking for - i.e. MmMapIoSPace pushes 12 bytes of arguments and MmAllocatePagesForMdl pushed 16 bytes of arguments. Any ideas about why ld us becomming confused about these symbols? Note: I am trying to build snapshot colinux-20040321, but I have seen the same problem with snapshot colinux-20040313. ===== Daniel R. Slater mailto:dan...@ya... |