Re: module compilation problems

Search this archive.

From: Matan Ziv-Av (matan@svgalib.org)
Date: Fri 21 Jun 2002 - 00:17:43 IDT


On Wed, 19 Jun 2002, George Carless wrote:

> Hi there,
> 
> I'm having problems getting svgalib 1.9.15 to compile on my machine, which
> is running kernel 2.5.18, RedHat 7.3 ...
> I'm seeing the following:
> 
> cc -D__KERNEL__ -DMODULE -Wall -O2 -I/usr/src/linux/include
> -DSVGALIB_HELPER_MAJOR=209 -c -o main.o main.c
> main.c: In function `svgalib_helper_ioctl':
> main.c:71: invalid operands to binary &
> main.c: In function `svgalib_helper_open':
> main.c:206: invalid operands to binary &
> main.c: In function `svgalib_helper_mmap':
> main.c:224: invalid operands to binary &
> main.c:242: warning: passing arg 1 of `remap_page_range' makes pointer
> from integer without a cast
> main.c:242: incompatible type for argument 4 of `remap_page_range'
> main.c:242: too few arguments to function `remap_page_range'
> main.c:257: warning: passing arg 1 of `remap_page_range' makes pointer
> from integer without a cast
> main.c:257: incompatible type for argument 4 of `remap_page_range'
> main.c:257: too few arguments to function `remap_page_range'
> main.c:272: warning: passingarg 1 of `remap_page_range' makes pointer
> from integer without a cast
> main.c:272: incompatible type for argument 4 of `remap_page_range'
> main.c:272: too few arguments to function `remap_page_range'
> make[1]: *** [main.o] Error 1
> 
> This is with gcc 3.1
> 
> Any help would be much appreciated -- or any advice on using rpms
> instead...


I don't use 2.5, and I don't think I'll use it in the near future, so if
it changed something in a way that breaks svgalib_helper (which seems
that it does), someone will have to port svgalib_helper to 2.5.



-- 
Matan Ziv-Av.                         matan@svgalib.org



------------------------------------------------------------------
Unsubscribe:  To:   listbot@svgalib.org
              Body: unsubscribe linux-svgalib


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:25 IST