LinuxQuestions.org
Visit Jeremy's Blog.
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 09-03-2004, 12:06 PM   #1
engnet
Member
 
Registered: May 2003
Posts: 30

Rep: Reputation: 15
Compile Prob


Hello all

I have just been given a hollywood plus card and have been trying to install the drivers.

When I try the make command in the modules dir, I get the following error!!

[root@Freevo modules]# make
cc -D__KERNEL__ -DMODULE -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -g
-I ../include -I /lib/modules/2.4.20-35_39.rh9.at/build/include/ -O2 -fomit-fra
me-pointer -Wall -DEM8300_VIDEOMODE_DEFAULT=EM8300_VIDEOMODE_PAL -DEM8300_AUDIOM
ODE_DEFAULT=EM8300_AUDIOMODE_ANALOG -DEM8300_VERSION=\""0.14.0"\" -DCONFIG_ADV71
7X_PIXELPORT16BIT -DCONFIG_ADV717X_PIXELPORTPAL -DCONFIG_EM8300_DICOMPAL -DCONFI
G_EM8300_DICOMFIX -DCONFIG_EM8300_DICOMCTRL -DMODVERSIONS -include /lib/modules/
2.4.20-35_39.rh9.at/build/include/linux/modversions.h -c -o em8300_main.o em83
00_main.c
em8300_main.c: In function `em8300_io_mmap':
em8300_main.c:477: warning: passing arg 1 of `remap_page_range_R5b53cc01' makes
pointer from integer without a cast
em8300_main.c:477: incompatible type for argument 4 of `remap_page_range_R5b53cc
01'
em8300_main.c:477: too few arguments to function `remap_page_range_R5b53cc01'
em8300_main.c:505: warning: passing arg 1 of `remap_page_range_R5b53cc01' makes
pointer from integer without a cast
em8300_main.c:505: incompatible type for argument 4 of `remap_page_range_R5b53cc
01'
em8300_main.c:505: too few arguments to function `remap_page_range_R5b53cc01'
make: *** [em8300_main.o] Error 1
[root@Freevo modules]#

Any ideas how to sort this out. The system is running RH9 and 2.4.20-35_39.rh9.at kernel

Many Thanks

Chris
 
Old 09-05-2004, 08:50 AM   #2
mkaman
Member
 
Registered: Oct 2003
Location: spain
Distribution: fc2, fc3
Posts: 54

Rep: Reputation: 16
redhat9 have an issue that make some builds to fail. It's related to a change in the prototype of the function remap_page_range, and that is what is causing these error. This error only can be found in the kernels of 2.4.20 and above for redhat because this change is part of newer kernels and everybody knows it.

Quote:
em8300_main.c: In function `em8300_io_mmap':
em8300_main.c:477: warning: passing arg 1 of `remap_page_range_R5b53cc01' makes
pointer from integer without a cast
em8300_main.c:477: incompatible type for argument 4 of `remap_page_range_R5b53cc
01'
em8300_main.c:477: too few arguments to function `remap_page_range_R5b53cc01'
em8300_main.c:505: warning: passing arg 1 of `remap_page_range_R5b53cc01' makes
pointer from integer without a cast
em8300_main.c:505: incompatible type for argument 4 of `remap_page_range_R5b53cc
01'
em8300_main.c:505: too few arguments to function `remap_page_range_R5b53cc01'
make: *** [em8300_main.o] Error 1
You can take a look in the file around the lines 477 and 505 and see if there is a preprocesor directive to change that function. If you find KERNEL_VERSION(2, 5, 3) before the call to remap_page_range, change it for KERNEL_VERSION(2, 4, 20).
 
  


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
kernel module compile prob darkRoom Linux - General 3 11-08-2005 12:16 AM
Compile prob with OpenCity Ygarl Linux - Software 0 01-11-2005 03:11 PM
startx after kernel compile, tcp/ip prob? cadj Linux - Software 2 09-12-2004 12:44 AM
glib-2.2.3 won't compile because libiconv prob behmjose Linux - Newbie 6 02-21-2004 10:14 PM
RH kernel compile prob enine Red Hat 2 11-19-2003 07:58 PM

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

All times are GMT -5. The time now is 03:17 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration