Re: Module Errors
Horst von Brand <[email protected]>
| Newsgroups | gmane.linux.aurora.devel |
|---|---|
| Message-ID | <[email protected]> |
"Anthony Mendoza" <[email protected]> said: > I'm trying to compile a module via the following: > > cc -D__KERNEL__ -D__KERNEL_MODULE_sparc=1 > -I/usr/src/linux-2.4.20-2.3sparc/include -Wall -Wstrict-prototypes > -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing > -fno-common -Wno-unused -pipe -m32 -mtune=ultrasparc -DMODULE ^^^^^^^^^^^^^^^^^^^^^^ > -DMODVERSIONS -include > /usr/src/linux-2.4.20-2.3sparc/include/linux/modversions.h > -DKBUILD_BASENAME=ppp_generic -DEXPORT_SYMTAB -c ppp_generic.c > > > I receive no errors, yet when I run depmod -a later I get: > > Updating module dependencies > depmod: ELF file > /lib/modules/2.4.20-2.3sparc/kernel/drivers/net/ppp_generic.o not for > this architecture Modules need to be for the right architecture, i.e. sparc64 for an ultra. -- Dr. Horst H. von Brand User #22616 counter.li.org Departamento de Informatica Fono: +56 32 654431 Universidad Tecnica Federico Santa Maria +56 32 654239 Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513