stevens writes:
> bash-3.00$ cc -D_KERNEL -m64 -c qotd_1.c

What compiler is that?  If it's gcc, then you'll need at least
something like this to compile 64-bit kernel modules:

        -fno-builtin -fno-asm -nodefaultlibs -m64 -mtune=opteron \
        -fno-strict-aliasing -O2 -ffreestanding -mcmodel=kernel \
        -mno-red-zone -gdwarf-2 -D_KERNEL -D_SYSCALL32 -D_SYSCALL32_IMPL

If it's Sun's cc, then different options apply.  Check with the manual
for your compiler and with the Writing Device Drivers book.

-- 
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to