#67 Can't compiler under RedHat9! up set

open
nobody
None
5
2003-08-18
2003-08-18
Anonymous
No

There are only a error.
cc -D__KERNEL__ -DMODULE -DAU8830 -mcpu=pentium -O6
-fomit-frame-pointer -Wall -pipe
-I/usr/src/linux/include -c -o au_audio.o au_audio.c
au_audio.c: In function `au_audio_mmap':
au_audio.c:624: warning: passing arg 1 of
`remap_page_range_R2baf18f2' makes pointer from integer
without a cast
au_audio.c:624: incompatible type for argument 4 of
`remap_page_range_R2baf18f2'
au_audio.c:624: too few arguments to function
`remap_page_range_R2baf18f2'
au_audio.c:640: warning: passing arg 1 of
`remap_page_range_R2baf18f2' makes pointer from integer
without a cast
au_audio.c:640: incompatible type for argument 4 of
`remap_page_range_R2baf18f2'
au_audio.c:640: too few arguments to function
`remap_page_range_R2baf18f2'
au_audio.c: In function `set_data_format':
au_audio.c:975: warning: deprecated use of label at end
of compound statement
make: *** [au_audio.o] Error 1

Discussion

  • George B. Cole
    George B. Cole
    2003-10-29

    Logged In: YES
    user_id=897085

    Got the same problem. The solution:

    Incompatible versions of remap_page_range. If you go into
    au_audio.c and and change all the calls to remap_page_range
    to add a fifth argument, vma, at the beginning it will compile:

    remap_page_range(vma, ....)

    I figured this out from fgrep'ing the default sound drivers
    provided with Red Hat 9.

    The warning on line 975 is due to incompatible versions of
    gcc. If you want to get rid of it, you can go to that line, and
    comment out everything in the corresponding switch
    statement after the last break. Be careful though, there's
    already one comment in that area.

    After this, it will compile, but you'll probably still run into the
    incompatible versions of gcc problem when you try to load it.
    This is a separate bug.