[ale] aureal driver Montego II Mandrake 9 follow up

Neal Wilkinson nealw at bellsouth.net
Sun Dec 1 22:34:14 EST 2002


Ok, I installed the default development stuff and with the same result.
Ideas?

Neal

On Sun, 2002-12-01 at 21:31, James P. Kinney III wrote:
> Neal,
> 
> In short, you have a broken development environment. You don't seem to
> have the kernel headers installed that the running kernel is using. That
> will cause the kernel module you are trying to compile to fail. 
> 
> Best bet from this point is to boot of the Mandrake CD and do an
> upgrade. Select the development stuff (gcc, kernel headers, libs,
> *-devel.rpm) and let the installer fill in the missing pieces. 
> 
> I haven't installed a Mandrake in a while so I'm not sure of the layout
> of the installation process. 
> 
> The best situation is to choose one of the following two scenarios:
> 
> 1. Only install packages from the distribution you are using
> 
> 2. Always compile your own kernel.
> 
> (3. Mix and match but be prepared for lots of work)
> 
> (4. Use a packageless environment that always compiles from tarballs,
> Slackware)
> 
> On Sun, 2002-12-01 at 18:28, Neal Wilkinson wrote:
> > I installed lspci and then figured out I needed GCC and now have the
> > following (see below). If I do what it says to do to the right of the
> > #error messages will that fix the problem? What book could I get that
> > would really explain Linux well to someone new? I have Running Linux
> > 3'rd edition by Matt Welsh and others. I feel like this is probably an
> > easy problem but because I still don't understand how it works I'm
> > sitting here stupid. Thanks for your help/suggestions. If I'm sending
> > out questions that are to basic then please let me know that as well as
> > I don't want to offend. I am learning but it isn't coming quick.I have
> > seen references to this same error message in some of the forums but
> > without solution.
> > 
> > Neal
> > 
> > [root at localhost aureal]# make install
> > gcc -D__KERNEL__ -DMODULE -DAU8830  -mpentiumpro -O6
> > -fomit-frame-pointer  -Wall
> >  -pipe -I/lib/modules/2.4.19-16mdk/build/include  -c -o au_audio.o
> > au_audio.c
> > `-mpentiumpro' is deprecated. Use `-march=pentiumpro' or
> > `-mcpu=pentiumpro' inst
> > ead.
> > In file included from au_vortex.h:39,
> >                  from au_audio.c:49:
> > /usr/include/linux/version.h:2:2: #error
> > "======================================
> > ================="
> > /usr/include/linux/version.h:3:2: #error "You should not include
> > /usr/include/{l
> > inux,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 fro
> > m 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 file
> > s - 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 exis
> > ts and points to"
> > /usr/include/linux/version.h:20:2: #error "   the matching kernel source
> > directo
> > ry"
> > /usr/include/linux/version.h:21:2: #error ""
> > /usr/include/linux/version.h:22:2: #error " o Now copy
> > /boot/vmlinuz.version.h t
> > o"
> > /usr/include/linux/version.h:23:2: #error "   /lib/modules/`uname
> > -r`/build/incl
> > ude/linux/version.h"
> > /usr/include/linux/version.h:24:2: #error ""
> > /usr/include/linux/version.h:25:2: #error " o When compiling, make sure
> > to use t
> > he following"
> > /usr/include/linux/version.h:26:2: #error "   compiler option to use the
> > correct
> >  include files:"
> > /usr/include/linux/version.h:27:2: #error ""
> > /usr/include/linux/version.h:28:2: #error "   -I/lib/modules/`uname
> > -r`/build/in
> > clude"
> > /usr/include/linux/version.h:29:2: #error ""
> > /usr/include/linux/version.h:30:2: #error "   instead of"
> > /usr/include/linux/version.h:31:2: #error ""
> > /usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
> > /usr/include/linux/version.h:33:2: #error ""
> > /usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile
> > accordi
> > ngly."
> > /usr/include/linux/version.h:35:2: #error
> > "=====================================
> > =================="
> > In file included from au_audio.c:49:
> > au_vortex.h:40:40: missing binary operator before '('
> > In file included from /usr/include/linux/prefetch.h:13,
> >                  from /usr/include/linux/list.h:6,
> >                  from /usr/include/linux/module.h:11,
> >                  from au_vortex.h:54,
> >                  from au_audio.c:49:
> > /usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared
> > here (no
> > t in a function)
> > /usr/include/asm/processor.h:55: requested alignment is not a constant
> > In file included from /usr/include/linux/module.h:296,
> >                  from au_vortex.h:54,
> >                  from au_audio.c:49:
> > /usr/include/linux/version.h:2:2: #error
> > "======================================
> > ================="
> > /usr/include/linux/version.h:3:2: #error "You should not include
> > /usr/include/{l
> > inux,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 fro
> > m 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 file
> > s - 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 exis
> > ts and points to"
> > /usr/include/linux/version.h:20:2: #error "   the matching kernel source
> > directo
> > ry"
> > /usr/include/linux/version.h:21:2: #error ""
> > /usr/include/linux/version.h:22:2: #error " o Now copy
> > /boot/vmlinuz.version.h t
> > o"
> > /usr/include/linux/version.h:23:2: #error "   /lib/modules/`uname
> > -r`/build/incl
> > ude/linux/version.h"
> > /usr/include/linux/version.h:24:2: #error ""
> > /usr/include/linux/version.h:25:2: #error " o When compiling, make sure
> > to use t
> > he following"
> > /usr/include/linux/version.h:26:2: #error "   compiler option to use the
> > correct
> >  include files:"
> > /usr/include/linux/version.h:27:2: #error ""
> > /usr/include/linux/version.h:28:2: #error "   -I/lib/modules/`uname
> > -r`/build/in
> > clude"
> > /usr/include/linux/version.h:29:2: #error ""
> > /usr/include/linux/version.h:30:2: #error "   instead of"
> > /usr/include/linux/version.h:31:2: #error ""
> > /usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
> > /usr/include/linux/version.h:33:2: #error ""
> > /usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile
> > accordi
> > ngly."
> > /usr/include/linux/version.h:35:2: #error
> > "=====================================
> > =================="
> > In file included from au_vortex.h:54,
> >                  from au_audio.c:49:
> > /usr/include/linux/module.h:298: parse error before "UTS_RELEASE"
> > In file included from au_vortex.h:55,
> >                  from au_audio.c:49:
> > /usr/include/linux/version.h:2:2: #error
> > "======================================
> > ================="
> > /usr/include/linux/version.h:3:2: #error "You should not include
> > /usr/include/{l
> > inux,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 fro
> > m 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 file
> > s - 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 exis
> > ts and points to"
> > /usr/include/linux/version.h:20:2: #error "   the matching kernel source
> > directo
> > ry"
> > /usr/include/linux/version.h:21:2: #error ""
> > /usr/include/linux/version.h:22:2: #error " o Now copy
> > /boot/vmlinuz.version.h t
> > o"
> > /usr/include/linux/version.h:23:2: #error "   /lib/modules/`uname
> > -r`/build/incl
> > ude/linux/version.h"
> > /usr/include/linux/version.h:24:2: #error ""
> > /usr/include/linux/version.h:25:2: #error " o When compiling, make sure
> > to use t
> > he following"
> > /usr/include/linux/version.h:26:2: #error "   compiler option to use the
> > correct
> >  include files:"
> > /usr/include/linux/version.h:27:2: #error ""
> > /usr/include/linux/version.h:28:2: #error "   -I/lib/modules/`uname
> > -r`/build/in
> > clude"
> > /usr/include/linux/version.h:29:2: #error ""
> > /usr/include/linux/version.h:30:2: #error "   instead of"
> > /usr/include/linux/version.h:31:2: #error ""
> > /usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
> > /usr/include/linux/version.h:33:2: #error ""
> > /usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile
> > accordi
> > ngly."
> > /usr/include/linux/version.h:35:2: #error
> > "=====================================
> > =================="
> > In file included from au_audio.c:49:
> > au_vortex.h:70:41: missing binary operator before '('
> > In file included from au_vortex.h:73,
> >                  from au_audio.c:49:
> > /usr/include/asm/spinlock.h:31: conflicting types for `spinlock_t'
> > /usr/include/linux/spinlock.h:72: previous declaration of `spinlock_t'
> > /usr/include/asm/spinlock.h:80: parse error before "do"
> > /usr/include/asm/spinlock.h:116: parse error before '{' token
> > /usr/include/asm/spinlock.h:126: parse error before "void"
> > /usr/include/asm/spinlock.h:157: conflicting types for `rwlock_t'
> > /usr/include/linux/spinlock.h:135: previous declaration of `rwlock_t'
> > /usr/include/asm/spinlock.h:182: parse error before "void"
> > /usr/include/asm/spinlock.h:191: parse error before "void"
> > au_vortex.h:76:41: missing binary operator before '('
> > au_vortex.h:120:41: missing binary operator before '('
> > au_vortex.h:126:41: missing binary operator before '('
> > au_vortex.h:154:41: missing binary operator before '('
> > au_vortex.h:205:41: missing binary operator before '('
> > In file included from au_audio.c:50:
> > /usr/include/linux/version.h:2:2: #error
> > "======================================
> > ================="
> > /usr/include/linux/version.h:3:2: #error "You should not include
> > /usr/include/{l
> > inux,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 fro
> > m 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 file
> > s - 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 exis
> > ts and points to"
> > /usr/include/linux/version.h:20:2: #error "   the matching kernel source
> > directo
> > ry"
> > /usr/include/linux/version.h:21:2: #error ""
> > /usr/include/linux/version.h:22:2: #error " o Now copy
> > /boot/vmlinuz.version.h t
> > o"
> > /usr/include/linux/version.h:23:2: #error "   /lib/modules/`uname
> > -r`/build/incl
> > ude/linux/version.h"
> > /usr/include/linux/version.h:24:2: #error ""
> > /usr/include/linux/version.h:25:2: #error " o When compiling, make sure
> > to use t
> > he following"
> > /usr/include/linux/version.h:26:2: #error "   compiler option to use the
> > correct
> >  include files:"
> > /usr/include/linux/version.h:27:2: #error ""
> > /usr/include/linux/version.h:28:2: #error "   -I/lib/modules/`uname
> > -r`/build/in
> > clude"
> > /usr/include/linux/version.h:29:2: #error ""
> > /usr/include/linux/version.h:30:2: #error "   instead of"
> > /usr/include/linux/version.h:31:2: #error ""
> > /usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
> > /usr/include/linux/version.h:33:2: #error ""
> > /usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile
> > accordi
> > ngly."
> > /usr/include/linux/version.h:35:2: #error
> > "=====================================
> > =================="
> > au_audio.c:63:41: missing binary operator before '('
> > au_audio.c:78: warning: initialization from incompatible pointer type
> > au_audio.c:79: warning: initialization from incompatible pointer type
> > au_audio.c:80: warning: initialization from incompatible pointer type
> > au_audio.c:82: warning: initialization from incompatible pointer type
> > au_audio.c:83: warning: initialization from incompatible pointer type
> > au_audio.c:84: warning: initialization from incompatible pointer type
> > au_audio.c:85: warning: initialization from incompatible pointer type
> > au_audio.c:87: warning: initialization from incompatible pointer type
> > au_audio.c: In function `au_audio_read':
> > au_audio.c:193: warning: passing arg 1 of `interruptible_sleep_on' from
> > incompat
> > ible pointer type
> > au_audio.c: In function `au_audio_write':
> > au_audio.c:261: warning: passing arg 1 of `interruptible_sleep_on' from
> > incompat
> > ible pointer type
> > au_audio.c: In function `au_audio_poll':
> > au_audio.c:310: warning: passing arg 2 of `poll_wait' from incompatible
> > pointer
> > type
> > au_audio.c:312: warning: passing arg 2 of `poll_wait' from incompatible
> > pointer
> > type
> > au_audio.c:604:41: missing binary operator before '('
> > au_audio.c: In function `au_audio_mmap':
> > au_audio.c:607: structure has no member named `vm_offset'
> > au_audio.c:623:41: missing binary operator before '('
> > au_audio.c:645:41: missing binary operator before '('
> > au_audio.c:688:40: missing binary operator before '('
> > au_audio.c:712:40: missing binary operator before '('
> > au_audio.c: In function `drain_playback':
> > au_audio.c:746: warning: passing arg 1 of `interruptible_sleep_on' from
> > incompat                                                             
> > ible pointer type
> > au_audio.c:789:41: missing binary operator before '('
> > au_audio.c: In function `add_wave_device':
> > au_audio.c:793: warning: implicit declaration of function
> > `init_waitqueue'
> > au_audio.c:847:41: missing binary operator before '('
> > au_audio.c:860:41: missing binary operator before '('
> > au_audio.c: In function `get_frags':
> > au_audio.c:865: warning: implicit declaration of function `MAP_NR'
> > au_audio.c:881:41: missing binary operator before '('
> > au_audio.c:889:41: missing binary operator before '('
> > au_audio.c:901:41: missing binary operator before '('
> > au_audio.c: In function `au_handle_timer':
> > au_audio.c:1144: warning: passing arg 1 of `__wake_up' from incompatible
> > pointer                                                              
> > type
> > au_audio.c:1166: warning: passing arg 1 of `__wake_up' from incompatible
> > pointer                                                              
> > type
> > au_audio.c:1196: warning: passing arg 1 of `__wake_up' from incompatible
> > pointer                                                              
> > type
> > make: *** [au_audio.o] Error 1
> > 
> > 
> > 
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://www.ale.org/mailman/listinfo/ale
> -- 
> James P. Kinney III   \Changing the mobile computing world/
> President and CEO      \          one Linux user         /
> Local Net Solutions,LLC \           at a time.          /
> 770-493-8244             \.___________________________./
> 
> GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics) <jkinney at localnetsolutions.com>
> Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7 
> 
> 


_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list