Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[root@localhost cmaudio]# make
cc -D__KERNEL__ -I/usr/src/linux-2.6.3-15mdk/include -Wall -Wstrict-prototypes -O -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -c -o main.o main.c
In file included from main.c:1:
cmaudio.h:19:27: linux/wrapper.h: No such file or directory
In file included from /usr/src/linux-2.6.3-15mdk/include/linux/irq.h:20,
from /usr/src/linux-2.6.3-15mdk/include/asm/hardirq.h:6,
from cmaudio.h:21,
from main.c:1:
/usr/src/linux-2.6.3-15mdk/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/src/linux-2.6.3-15mdk/include/asm/hardirq.h:6,
from cmaudio.h:21,
from main.c:1:
/usr/src/linux-2.6.3-15mdk/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/src/linux-2.6.3-15mdk/include/linux/irq.h:72,
from /usr/src/linux-2.6.3-15mdk/include/asm/hardirq.h:6,
from cmaudio.h:21,
from main.c:1:
/usr/src/linux-2.6.3-15mdk/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
/usr/src/linux-2.6.3-15mdk/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function)
main.c: In function `alloc_dmabuf':
main.c:450: warning: implicit declaration of function `mem_map_reserve'
main.c: In function `dealloc_dmabuf':
main.c:503: warning: implicit declaration of function `mem_map_unreserve'
main.c: In function `cmedia_probe':
main.c:1989: error: structure has no member named `driver_data'
main.c: In function `cmedia_remove':
main.c:2005: error: structure has no member named `driver_data'
main.c: In function `cmedia_init_module':
main.c:2063: warning: implicit declaration of function `pci_present'
make: *** [main.o] Error 1
I am trying intsall the sound driver from CMI but when I exeuce the make command this is the result.
Can anyone tell me what went wrong?
# SYSINCLUDE can be overridden by environment variable or command line argument
# TARGET_KERNEL can be overridden by build system
# TARGET_KERNEL ?= $(shell uname -r)
LINUXDIR = $(shell uname -r | awk '{sub(/-.*/,"",$$0); print $$0}')
#SYSINCLUDE = /usr/src/linux-2.4/include
SYSINCLUDE = /usr/src/linux-2.6.3-15mdk/include
# Double install; try first without setting root, then try again with
# so we can build rpm files
install:
mkdir -p $(INSTROOT)/$(TARGETDIR)
install -b -m 644 $(MODULE) $(INSTROOT)/$(TARGETDIR)
-install -b -m 644 -o root $(MODULE) $(INSTROOT)/$(TARGETDIR)
-/sbin/depmod -a
uninstall:
rm -f $(TARGETDIR)/$(MODULE)
/sbin/depmod -a
Originally posted by 5h4r4d do you have the kernel sources on your machine?
for compiling a kernel module you will need the kernel-source code that matches your running kernel
I am sure I have installed the kernel by exeucing the "urpmi" command.
the make file is expecting the kernel sources, if you do not have the kernel source for your active kernel, download and install the kernel sources / headers.
[root@localhost include]# dir
acpi asm-generic asm-m68k asm-x86_64 math-emu pcmcia sound
asm asm-i386 asm-ppc config media rxrpc video
asm-alpha asm-ia64 asm-um linux net scsi
[root@localhost include]#
These are all directries. I dont know what does a header file look like.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.