|
From: Wall, K. <kur...@ti...> - 2005-06-08 14:20:35
|
On a stock, updated FC3 system, ddccontrol-0.1.1 failes to build (sorry for the unsightly line wrap): Making all in src make[1]: Entering directory `/home/kwall/Desktop/ddccontrol-0.1.1/src' make all-recursive make[2]: Entering directory `/home/kwall/Desktop/ddccontrol-0.1.1/src' Making all in lib make[3]: Entering directory `/home/kwall/Desktop/ddccontrol-0.1.1/src/lib' if gcc -DHAVE_CONFIG_H -I. -I. -I../../src -I.. -DLOCALEDIR=3D \"/usr/local/share/locale\" -I/usr/include/libxml2 -g -O2 -Wall - DDATADIR=3D"\"/usr/local/share/ddccontrol-db\"" = -DBINDIR=3D"\"/usr/local/bin \"" -MT ddcci.o -MD -MP -MF ".deps/ddcci.Tpo" -c -o ddcci.o ddcci.c; \ then mv -f ".deps/ddcci.Tpo" ".deps/ddcci.Po"; else rm -f ".deps/ddcci.Tpo"; exit 1; fi ddcci.c: In function `i2c_write': ddcci.c:232: error: storage size of 'msg_rdwr' isn't known ddcci.c:233: error: storage size of 'i2cmsg' isn't known ddcci.c:244: error: `I2C_RDWR' undeclared (first use in this function) ddcci.c:244: error: (Each undeclared identifier is reported only once ddcci.c:244: error: for each function it appears in.) ddcci.c:232: warning: unused variable `msg_rdwr' ddcci.c:233: warning: unused variable `i2cmsg' ddcci.c: In function `i2c_read': ddcci.c:286: error: storage size of 'msg_rdwr' isn't known ddcci.c:287: error: storage size of 'i2cmsg' isn't known ddcci.c:294: error: `I2C_M_RD' undeclared (first use in this function) ddcci.c:298: error: `I2C_RDWR' undeclared (first use in this function) ddcci.c:286: warning: unused variable `msg_rdwr' ddcci.c:287: warning: unused variable `i2cmsg' make[3]: *** [ddcci.o] Error 1 make[3]: Leaving directory `/home/kwall/Desktop/ddccontrol-0.1.1/src/lib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/kwall/Desktop/ddccontrol-0.1.1/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/kwall/Desktop/ddccontrol-0.1.1/src' make: *** [all-recursive] Error 1 The storage size of msg_rdwr and i2cmsg *should* be known, because i2c-dev.h is properly included... Thanks, --=20 Kurt Wall <kur...@ti...> TimeSys Customer Engineering |
|
From: Nicolas B. <ni...@bo...> - 2005-06-08 14:41:47
|
Hello, Grr... It seems there are always such kind of problems with kernel headers... Could you send me config.log, and /usr/include/linux/version.h and /usr/include/linux/i2c-dev.h? Thanks. Best regards, Nicolas On Wed, 2005-06-08 at 10:13 -0400, Wall, Kurt wrote: > On a stock, updated FC3 system, ddccontrol-0.1.1 failes > to build (sorry for the unsightly line wrap): > > Making all in src > make[1]: Entering directory `/home/kwall/Desktop/ddccontrol-0.1.1/src' > make all-recursive > make[2]: Entering directory `/home/kwall/Desktop/ddccontrol-0.1.1/src' > Making all in lib > make[3]: Entering directory > `/home/kwall/Desktop/ddccontrol-0.1.1/src/lib' > if gcc -DHAVE_CONFIG_H -I. -I. -I../../src -I.. -DLOCALEDIR= > \"/usr/local/share/locale\" -I/usr/include/libxml2 -g -O2 -Wall - > DDATADIR="\"/usr/local/share/ddccontrol-db\"" -DBINDIR="\"/usr/local/bin > \"" -MT ddcci.o -MD -MP -MF ".deps/ddcci.Tpo" -c -o ddcci.o ddcci.c; \ > then mv -f ".deps/ddcci.Tpo" ".deps/ddcci.Po"; else rm -f > ".deps/ddcci.Tpo"; exit 1; fi > ddcci.c: In function `i2c_write': > ddcci.c:232: error: storage size of 'msg_rdwr' isn't known > ddcci.c:233: error: storage size of 'i2cmsg' isn't known > ddcci.c:244: error: `I2C_RDWR' undeclared (first use in this function) > ddcci.c:244: error: (Each undeclared identifier is reported only once > ddcci.c:244: error: for each function it appears in.) > ddcci.c:232: warning: unused variable `msg_rdwr' > ddcci.c:233: warning: unused variable `i2cmsg' > ddcci.c: In function `i2c_read': > ddcci.c:286: error: storage size of 'msg_rdwr' isn't known > ddcci.c:287: error: storage size of 'i2cmsg' isn't known > ddcci.c:294: error: `I2C_M_RD' undeclared (first use in this function) > ddcci.c:298: error: `I2C_RDWR' undeclared (first use in this function) > ddcci.c:286: warning: unused variable `msg_rdwr' > ddcci.c:287: warning: unused variable `i2cmsg' > make[3]: *** [ddcci.o] Error 1 > make[3]: Leaving directory > `/home/kwall/Desktop/ddccontrol-0.1.1/src/lib' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/home/kwall/Desktop/ddccontrol-0.1.1/src' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/home/kwall/Desktop/ddccontrol-0.1.1/src' > make: *** [all-recursive] Error 1 > > The storage size of msg_rdwr and i2cmsg *should* be known, because > i2c-dev.h is properly included... > > Thanks, > |
|
From: Wall, K. <kur...@ti...> - 2005-06-08 15:16:02
|
T24gV2VkLCAyMDA1LTA2LTA4IGF0IDE2OjQxICswMjAwLCBOaWNvbGFzIEJvaWNoYXQgd3JvdGU6 DQo+IEhlbGxvLA0KPiANCj4gR3JyLi4uIEl0IHNlZW1zIHRoZXJlIGFyZSBhbHdheXMgc3VjaCBr aW5kIG9mIHByb2JsZW1zIHdpdGgga2VybmVsDQo+IGhlYWRlcnMuLi4NCg0KSSBmZWVsIHlvdXIg cGFpbi4NCg0KPiBDb3VsZCB5b3Ugc2VuZCBtZSBjb25maWcubG9nLCBhbmQgL3Vzci9pbmNsdWRl L2xpbnV4L3ZlcnNpb24uaA0KPiBhbmQgL3Vzci9pbmNsdWRlL2xpbnV4L2kyYy1kZXYuaD8NCg0K QXR0YWNoZWQuIFRoYW5rcyBmb3IgdGhlIHByb21wdCByZXBseS4NCg0KDQpLdXJ0IFdhbGwgPGt1 cnQud2FsbEB0aW1lc3lzLmNvbT4NClRpbWVTeXMgQ3VzdG9tZXIgRW5naW5lZXJpbmcNCg0KDQo= |
|
From: Nicolas B. <ni...@bo...> - 2005-06-08 15:47:49
Attachments:
i2c-dev.patch
|
Hello, I don't understand why FC3 still uses 2.4 kernel headers..... Anyway, I think I found why the problem occurs, a "small" problem of preprocessor symbols... Could you try the attached patch ? (Apply with "patch -p0 < i2c-dev.patch" in ddccontrol directory) Thank you. Best regards, Nicolas On Wed, 2005-06-08 at 11:08 -0400, Wall, Kurt wrote: > On Wed, 2005-06-08 at 16:41 +0200, Nicolas Boichat wrote: > > Hello, > > > > Grr... It seems there are always such kind of problems with kernel > > headers... > > I feel your pain. > > > Could you send me config.log, and /usr/include/linux/version.h > > and /usr/include/linux/i2c-dev.h? > > Attached. Thanks for the prompt reply. > > > Kurt Wall <kur...@ti...> > TimeSys Customer Engineering > > |
|
From: Wall, K. <kur...@ti...> - 2005-06-08 17:21:30
|
On Wed, 2005-06-08 at 17:47 +0200, Nicolas Boichat wrote: > Hello, >=20 > I don't understand why FC3 still uses 2.4 kernel headers..... >=20 > Anyway, I think I found why the problem occurs, a "small" problem of > preprocessor symbols... >=20 > Could you try the attached patch ? > (Apply with "patch -p0 < i2c-dev.patch" in ddccontrol directory) The patch applied cleanly and ddccontrol built. There was an annoying warning (see below), but it built and seems to work.=20 Thanks again for the quick response. make[3]: Entering directory `/home/kwall/Desktop/ddccontrol-0.1.1/src/ddcpci' if gcc -DHAVE_CONFIG_H -I. -I. -I../../src -I../lib -DLOCALEDIR=3D\"\" -g -O2-Wall -DDATADIR=3D"\"/usr/local/share/ddccontrol-db\"" - DBINDIR=3D"\"/usr/local/bin\"" -MT main.o -MD -MP -MF ".deps/main.Tpo" = -c -o main.o main.c; \ then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi main.c: In function `open_card': main.c:126: warning: long unsigned int format, unsigned int arg (arg 9) main.c:126: warning: long unsigned int format, unsigned int arg (arg 10) main.c: In function `list': main.c:215: warning: long unsigned int format, unsigned int arg (arg 9) main.c:215: warning: long unsigned int format, unsigned int arg (arg 10) main.c: At top level: main.c:54: warning: 'dumphex' defined but not used if gcc -DHAVE_CONFIG_H -I. -I. -I../../src -I../lib -DLOCALEDIR=3D\"\" -g -O2-Wall -DDATADIR=3D"\"/usr/local/share/ddccontrol-db\"" - DBINDIR=3D"\"/usr/local/bin\"" -MT nvidia.o -MD -MP -MF = ".deps/nvidia.Tpo" -c -o nvidia.o nvidia.c; \ then mv -f ".deps/nvidia.Tpo" ".deps/nvidia.Po"; else rm -f ".deps/nvidia.Tpo";exit 1; fi Best regards, --=20 Kurt Wall <kur...@ti...> TimeSys Customer Engineering |
|
From: Nicolas B. <ni...@bo...> - 2005-06-08 18:24:20
|
Hello, I applied this patch, and fixed the compile warnings you mentionned in the CVS. Thanks for reporting these problems. I'll release version 0.1.2 soon, because I think this problem affects almost all distributions. Best regards, Nicolas On Wed, 2005-06-08 at 13:14 -0400, Wall, Kurt wrote: > On Wed, 2005-06-08 at 17:47 +0200, Nicolas Boichat wrote: > > Hello, > > > > I don't understand why FC3 still uses 2.4 kernel headers..... > > > > Anyway, I think I found why the problem occurs, a "small" problem of > > preprocessor symbols... > > > > Could you try the attached patch ? > > (Apply with "patch -p0 < i2c-dev.patch" in ddccontrol directory) > > The patch applied cleanly and ddccontrol built. There was an > annoying warning (see below), but it built and seems to work. > Thanks again for the quick response. > > make[3]: Entering directory > `/home/kwall/Desktop/ddccontrol-0.1.1/src/ddcpci' > if gcc -DHAVE_CONFIG_H -I. -I. -I../../src -I../lib -DLOCALEDIR=\"\" > -g -O2-Wall -DDATADIR="\"/usr/local/share/ddccontrol-db\"" - > DBINDIR="\"/usr/local/bin\"" -MT main.o -MD -MP -MF ".deps/main.Tpo" -c > -o main.o main.c; \ > then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f > ".deps/main.Tpo"; exit 1; fi > main.c: In function `open_card': > main.c:126: warning: long unsigned int format, unsigned int arg (arg 9) > main.c:126: warning: long unsigned int format, unsigned int arg (arg 10) > main.c: In function `list': > main.c:215: warning: long unsigned int format, unsigned int arg (arg 9) > main.c:215: warning: long unsigned int format, unsigned int arg (arg 10) > main.c: At top level: > main.c:54: warning: 'dumphex' defined but not used > if gcc -DHAVE_CONFIG_H -I. -I. -I../../src -I../lib -DLOCALEDIR=\"\" > -g -O2-Wall -DDATADIR="\"/usr/local/share/ddccontrol-db\"" - > DBINDIR="\"/usr/local/bin\"" -MT nvidia.o -MD -MP -MF ".deps/nvidia.Tpo" > -c -o nvidia.o nvidia.c; \ > then mv -f ".deps/nvidia.Tpo" ".deps/nvidia.Po"; else rm -f > ".deps/nvidia.Tpo";exit 1; fi > > Best regards, > |