>> I am running debian/sarge and 2.4.27. 
> The driver itself might well compile on 
> the SPARC. Just try it. I know that the driver works on the powerpc, 

I am attempting to compile ivtv-0.4.3.

ultra:/usr/src/ivtv/driver# make
make SUBDIRS=/usr/src/ivtv-0.4.3/driver -C
/lib/modules/2.4.27-2-sparc64/build modules
make[1]: Entering directory `/usr/src/kernel-source-2.4.27'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o
scripts/split-include scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
make -C  /usr/src/ivtv-0.4.3/driver CFLAGS="-D__KERNEL__
-I/usr/src/kernel-source-2.4.27/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -m64 -pipe -mno-fpu -mcpu=ultrasparc
-mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used-g7
-Wno-sign-compare -Wa,--undeclared-regs -finline-limit=100000 -DMODULE
-DMODVERSIONS -include
/usr/src/kernel-source-2.4.27/include/linux/modversions.h"
MAKING_MODULES=1 modules
make[2]: Entering directory `/usr/src/ivtv-0.4.3/driver'
gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.27/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -m64 -pipe -mno-fpu -mcpu=ultrasparc
-mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used-g7
-Wno-sign-compare -Wa,--undeclared-regs -finline-limit=100000 -DMODULE
-DMODVERSIONS -include
/usr/src/kernel-source-2.4.27/include/linux/modversions.h  -nostdinc
-iwithprefix include -DKBUILD_BASENAME=msp3400  -c -o msp3400.o
msp3400.c
gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.27/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -m64 -pipe -mno-fpu -mcpu=ultrasparc
-mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used-g7
-Wno-sign-compare -Wa,--undeclared-regs -finline-limit=100000 -DMODULE
-DMODVERSIONS -include
/usr/src/kernel-source-2.4.27/include/linux/modversions.h  -nostdinc
-iwithprefix include -DKBUILD_BASENAME=saa7115  -c -o saa7115.o
saa7115.c
saa7115.c:1388: error: syntax error before "saa7115_init_module"
saa7115.c:1389: warning: return type defaults to `int'
saa7115.c:1393: error: syntax error before "saa7115_cleanup_module"
saa7115.c:1394: warning: return type defaults to `int'
saa7115.c:1398: warning: type defaults to `int' in declaration of
`module_init'
saa7115.c:1398: warning: parameter names (without types) in function
declaration
saa7115.c:1398: warning: data definition has no type or storage class
saa7115.c:1399: warning: type defaults to `int' in declaration of
`module_exit'
saa7115.c:1399: warning: parameter names (without types) in function
declaration
saa7115.c:1399: warning: data definition has no type or storage class
make[2]: *** [saa7115.o] Error 1
make[2]: Leaving directory `/usr/src/ivtv-0.4.3/driver'
make[1]: *** [_mod_/usr/src/ivtv-0.4.3/driver] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.4.27'
make: *** [all] Error 2
ultra:/usr/src/ivtv/driver# 

Here is a snippet from saa7115.c. For your reference, line
saa7115.c:1388 is the line 
static int __init saa7115_init_module(void)


#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
EXPORT_NO_SYMBOLS;
#endif

static int __init saa7115_init_module(void)
{
        return i2c_add_driver(&i2c_driver_saa7115);
}

static void __exit saa7115_cleanup_module(void)
{
        i2c_del_driver(&i2c_driver_saa7115);
}

That all looks sane to me, but I have not worked on a real C program in
13 years or so. If I do a make -k, some things seem to compile OK,
which is encouraging.

I'm not sure that I've got my environment set up correctly. My /usr/src
looks like this:
ultra:/usr/src# ls -l
total 30788
lrwxrwxrwx   1 root src        10 2006-03-08 18:08 ivtv -> ivtv-0.4.3
drwxr-xr-x   7 root root     4096 2006-02-15 16:48 ivtv-0.4.3
drwxr-xr-x  15 root root     4096 2006-03-07 20:04 kernel-source-2.4.27
lrwxrwxrwx   1 root src         9 2006-03-08 18:32 linux -> linux-2.4
lrwxrwxrwx   1 root src        20 2006-03-07 19:39 linux-2.4 ->
kernel-source-2.4.27


[EMAIL PROTECTED]  
Database Development and Administration 

"Change is hardest for those caught by surprise.", Thomas Friedman

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to