LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-30-2004, 04:26 PM   #1
DracoBlue
LQ Newbie
 
Registered: Oct 2004
Posts: 2

Rep: Reputation: 0
Can't compile CMEDIA-Source 0.41


Hello!

I'm quite new to this forums and hope that this is the correct forum where I post this question.

when I run make in my cmedia directory I get this message :
Code:
cc -D__KERNEL__  -I/usr/src/linux-2.4/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 /usr/include/linux/module.h:20,
                 from cmaudio.h:1,
                 from main.c:1:
/usr/include/asm/module.h:56:2: #error unknown processor family
In file included from cmaudio.h:2,
                 from main.c:1:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error "   the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Configure kernel sources:"
/usr/include/linux/version.h:23:2: #error "   - cd /usr/src/linux"
/usr/include/linux/version.h:24:2: #error "   - make mrproper"
/usr/include/linux/version.h:25:2: #error "   - make cloneconfig"
/usr/include/linux/version.h:26:2: #error "   - make dep"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:29:2: #error "   compiler option to use the correct include files:"
/usr/include/linux/version.h:30:2: #error ""
/usr/include/linux/version.h:31:2: #error "   -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:32:2: #error ""
/usr/include/linux/version.h:33:2: #error "   instead of"
/usr/include/linux/version.h:34:2: #error ""
/usr/include/linux/version.h:35:2: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:36:2: #error ""
/usr/include/linux/version.h:37:2: #error "   Please adjust the Makefile accordingly."
/usr/include/linux/version.h:38:2: #error "======================================================="
In file included from /usr/include/linux/mm.h:206,
                 from /usr/include/asm/pci.h:7,
                 from /usr/include/linux/pci.h:727,
                 from cmaudio.h:11,
                 from main.c:1:
/usr/include/linux/page-flags.h:119: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/page-flags.h:119: error: requested alignment is not a constant
In file included from main.c:1:
cmaudio.h:19:27: linux/wrapper.h: Datei oder Verzeichnis nicht gefunden
In file included from /usr/include/linux/irq.h:20,
                 from /usr/include/asm/hardirq.h:6,
                 from cmaudio.h:21,
                 from main.c:1:
/usr/include/asm/irq.h:16:25: irq_vectors.h: Datei oder Verzeichnis nicht gefunden
In file included from /usr/include/asm/hardirq.h:6,
                 from cmaudio.h:21,
                 from main.c:1:
/usr/include/linux/irq.h:68: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:68: error: requested alignment is not a constant
/usr/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/include/linux/irq.h:72,
                 from /usr/include/asm/hardirq.h:6,
                 from cmaudio.h:21,
                 from main.c:1:
/usr/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
/usr/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function)
In file included from cmaudio.h:21,
                 from main.c:1:
/usr/include/asm/hardirq.h:13: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:13: error: requested alignment is not a constant
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] Fehler 1
Can somebody tell me, what I did wrong?

I am using KDE, SUSE 9.1 Prof, ASROCK K7VM4, 512MB RAM, AMD 2400+.
Code:
>uname -r
2.6.5-7.111-default
Code:
>/sbin/lspci
0000:00:00.0 Host bridge: VIA Technologies, Inc.: Unknown device 3205
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge
0000:00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
0000:00:10.0 USB Controller: VIA Technologies, Inc. USB (rev 80)
0000:00:10.1 USB Controller: VIA Technologies, Inc. USB (rev 80)
0000:00:10.2 USB Controller: VIA Technologies, Inc. USB (rev 80)
0000:00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE (rev 06)
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235 AC97 Audio Controller (rev 50)
0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV25 [GeForce4 Ti 4600] (rev a3)
Thanks in advance,
DracoBlue

Last edited by DracoBlue; 10-30-2004 at 04:43 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile source on other pc ??? sys7em Linux - General 1 11-01-2004 09:53 AM
How to compile source??? Aranilion Programming 12 08-25-2004 12:44 PM
Compile from source kaon Slackware 4 07-19-2004 10:06 AM
Still can't compile from source Nappa Slackware 1 12-27-2003 04:12 AM
How do I compile from source? graystarr Red Hat 3 09-19-2003 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration