cvs missing gamma.h
Status: Alpha
Brought to you by:
aabaker
make[1]: Entering directory
`/mnt/disk2/export/src/linux-2.6.11-6mdk'
CC [M] /usr/local/src/sqcam26/sq905.o
/usr/local/src/sqcam26/sq905.c:134:19: gamma.h: No such
file or directory
/usr/local/src/sqcam26/sq905.c: In function `sqcam_open':
/usr/local/src/sqcam26/sq905.c:908: warning: ISO C90
forbids mixed declarations and code
/usr/local/src/sqcam26/sq905.c: In function
`sqcam_decode_bayer':
/usr/local/src/sqcam26/sq905.c:1039: error:
`gamma_table' undeclared (first use in this function)
Logged In: YES
user_id=1414233
use make gamma.h first, then make. Works fine.
Logged In: YES
user_id=24771
Indeed "make gamma.h" does make the gamma.h, and the project
compiles, but it does not load under Linux 2.6.11:
/usr/local/src/sqcam26/sq905.c:1184: warning: implicit
declaration of function `remap_page_range'
$ sudo modprobe sqcam
FATAL: Error inserting sqcam
(/lib/modules/2.6.11-13mdk/kernel/3rdparty/sqcam26/sqcam.ko.gz):
Unknown symbol in module, or unknown parameter (see dmesg)
$ dmesg
...
sqcam: Unknown symbol remap_page_range
http://www.ussg.iu.edu/hypermail/linux/kernel/0411.3/1734.html
suggests this may be a function removed from the Mandrake
version of the Linux kernel (ie the -mm branch) although it
is in the Linus kernel; there are some hints on the SuSE
mailing list that remap_pfn_range is to be used instead, but
it is apparently not a drop-in replacement. There is a
patch listed at
http://www.rage3d.com/board/showpost.php?p=1333461186&postcount=27
which may or may not be relevent to sqcam's use of that
function.