* linux 2.4.22 compile error
@ 2003-09-08 8:40 Ottavio Campana
2003-09-08 13:15 ` Herbert Poetzl
2003-09-08 14:49 ` Marcelo Abreu
0 siblings, 2 replies; 4+ messages in thread
From: Ottavio Campana @ 2003-09-08 8:40 UTC (permalink / raw)
To: linux-kernel
I just downloaded linux 2.4.22 and applied the following patches: xfs,
i2c 2.8.0 and lm_sensors 2.8.0 .
The kernel is failing to compile, here's the error:
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
-pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4
-DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.22/include/linux/modversions.h
-nostdinc -iwithprefix include -DKBUILD_BASENAME=bttv_if -DEXPORT_SYMTAB
-c bttv-if.c
bttv-if.c:244: unknown field `inc_use' specified in initializer
bttv-if.c:244: warning: initialization from incompatible pointer type
bttv-if.c:245: unknown field `dec_use' specified in initializer
bttv-if.c:245: warning: missing braces around initializer
bttv-if.c:245: warning: (near initialization for `bttv_i2c_adap_template.name')
bttv-if.c:245: warning: initialization makes integer from pointer without a cast
bttv-if.c:245: initializer element is not computable at load time
bttv-if.c:245: (near initialization for `bttv_i2c_adap_template.name[0]')
bttv-if.c:246: unknown field `name' specified in initializer
bttv-if.c:246: warning: initialization makes integer from pointer without a cast
bttv-if.c:246: initializer element is not computable at load time
bttv-if.c:246: (near initialization for `bttv_i2c_adap_template.name[1]')
bttv-if.c:247: unknown field `id' specified in initializer
bttv-if.c:248: unknown field `client_register' specified in initializer
bttv-if.c:248: warning: initialization makes integer from pointer without a cast
bttv-if.c:248: initializer element is not computable at load time
bttv-if.c:248: (near initialization for `bttv_i2c_adap_template.name[3]')
make[4]: *** [bttv-if.o] Error 1
make[4]: Leaving directory `/usr/src/linux-2.4.22/drivers/media/video'
make[3]: *** [_modsubdir_video] Error 2
make[3]: Leaving directory `/usr/src/linux-2.4.22/drivers/media'
make[2]: *** [_modsubdir_media] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.22/drivers'
make[1]: *** [_mod_drivers] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.22'
make: *** [stamp-build] Error 2
I've given a look a bttv-if, but I can't understand the error, so I
can't help more than this. I'm using gcc 2.95.4 .
If you need more infos can you please cc me, for I'm not subscribed to
the list?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linux 2.4.22 compile error
2003-09-08 8:40 linux 2.4.22 compile error Ottavio Campana
@ 2003-09-08 13:15 ` Herbert Poetzl
2003-09-09 6:02 ` Ottavio Campana
2003-09-08 14:49 ` Marcelo Abreu
1 sibling, 1 reply; 4+ messages in thread
From: Herbert Poetzl @ 2003-09-08 13:15 UTC (permalink / raw)
To: Ottavio Campana; +Cc: linux-kernel
On Mon, Sep 08, 2003 at 10:40:36AM +0200, Ottavio Campana wrote:
> I just downloaded linux 2.4.22 and applied the following patches: xfs,
> i2c 2.8.0 and lm_sensors 2.8.0 .
>
> The kernel is failing to compile, here's the error:
>
> gcc -D__KERNEL__ -I/usr/src/linux-2.4.22/include -Wall -Wstrict-prototypes
> -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
> -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4
> -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.22/include/linux/modversions.h
> -nostdinc -iwithprefix include -DKBUILD_BASENAME=bttv_if -DEXPORT_SYMTAB
> -c bttv-if.c
> bttv-if.c:244: unknown field `inc_use' specified in initializer
> bttv-if.c:244: warning: initialization from incompatible pointer type
> bttv-if.c:245: unknown field `dec_use' specified in initializer
> bttv-if.c:245: warning: missing braces around initializer
> bttv-if.c:245: warning: (near initialization for `bttv_i2c_adap_template.name')
> bttv-if.c:245: warning: initialization makes integer from pointer without a cast
> bttv-if.c:245: initializer element is not computable at load time
> bttv-if.c:245: (near initialization for `bttv_i2c_adap_template.name[0]')
> bttv-if.c:246: unknown field `name' specified in initializer
> bttv-if.c:246: warning: initialization makes integer from pointer without a cast
> bttv-if.c:246: initializer element is not computable at load time
> bttv-if.c:246: (near initialization for `bttv_i2c_adap_template.name[1]')
> bttv-if.c:247: unknown field `id' specified in initializer
> bttv-if.c:248: unknown field `client_register' specified in initializer
> bttv-if.c:248: warning: initialization makes integer from pointer without a cast
> bttv-if.c:248: initializer element is not computable at load time
> bttv-if.c:248: (near initialization for `bttv_i2c_adap_template.name[3]')
> make[4]: *** [bttv-if.o] Error 1
> make[4]: Leaving directory `/usr/src/linux-2.4.22/drivers/media/video'
> make[3]: *** [_modsubdir_video] Error 2
> make[3]: Leaving directory `/usr/src/linux-2.4.22/drivers/media'
> make[2]: *** [_modsubdir_media] Error 2
> make[2]: Leaving directory `/usr/src/linux-2.4.22/drivers'
> make[1]: *** [_mod_drivers] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.4.22'
> make: *** [stamp-build] Error 2
>
> I've given a look a bttv-if, but I can't understand the error, so I
> can't help more than this. I'm using gcc 2.95.4 .
>
> If you need more infos can you please cc me, for I'm not subscribed to
> the list?
at least the lines of bttv-if.c around 240 would be helpful,
better put the whole tree on the web somewhere ...
best,
Herbert
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linux 2.4.22 compile error
2003-09-08 13:15 ` Herbert Poetzl
@ 2003-09-09 6:02 ` Ottavio Campana
0 siblings, 0 replies; 4+ messages in thread
From: Ottavio Campana @ 2003-09-09 6:02 UTC (permalink / raw)
To: Herbert Poetzl; +Cc: linux-kernel
On Mon, Sep 08, 2003 at 03:15:56PM +0200, Herbert Poetzl wrote:
> > If you need more infos can you please cc me, for I'm not subscribed to
> > the list?
>
> at least the lines of bttv-if.c around 240 would be helpful,
> better put the whole tree on the web somewhere ...
static struct i2c_adapter bttv_i2c_adap_template = { # 243
.inc_use = bttv_inc_use,
.dec_use = bttv_dec_use,
I2C_DEVNAME("bt848"),
.id = I2C_HW_B_BT848,
.client_register = attach_inform,
}; # 249
The error is in this struct.
If you need the source, you can get it from
http://www.campana.vi.it/ottavio/kernel-source-2.4.22-dirac.tar.bz2 .
Don't mind the extraversion, I use it only because I don't want debian
kernel packages to overwrite my kernel when I build my debs.
--
Non c'è più forza nella normalità, c'è solo monotonia.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linux 2.4.22 compile error
2003-09-08 8:40 linux 2.4.22 compile error Ottavio Campana
2003-09-08 13:15 ` Herbert Poetzl
@ 2003-09-08 14:49 ` Marcelo Abreu
1 sibling, 0 replies; 4+ messages in thread
From: Marcelo Abreu @ 2003-09-08 14:49 UTC (permalink / raw)
To: linux-kernel; +Cc: Ottavio Campana
Ottavio Campana wrote:
> I just downloaded linux 2.4.22 and applied the following patches: xfs,
> i2c 2.8.0 and lm_sensors 2.8.0 .
>
> The kernel is failing to compile, here's the error:
>
> gcc -D__KERNEL__ -I/usr/src/linux-2.4.22/include -Wall -Wstrict-prototypes
> -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
> -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4
> -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.22/include/linux/modversions.h
> -nostdinc -iwithprefix include -DKBUILD_BASENAME=bttv_if -DEXPORT_SYMTAB
> -c bttv-if.c
> bttv-if.c:244: unknown field `inc_use' specified in initializer
> bttv-if.c:244: warning: initialization from incompatible pointer type
> ...
I think you need the patches available here:
http://www.ensicaen.ismra.fr/~delvare/devel/i2c/
...and maybe you should get i2c from CVS.
Marcelo
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-09-09 6:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-08 8:40 linux 2.4.22 compile error Ottavio Campana
2003-09-08 13:15 ` Herbert Poetzl
2003-09-09 6:02 ` Ottavio Campana
2003-09-08 14:49 ` Marcelo Abreu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox