Linux Projects Forum Index Users - W996[87]CF
make failed | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| lucien | Posted on: 2005/11/19 12:10 |
Just popping in ![]() Joined: 2005/11/19 From: Posts: 1 |
make failed on gentoo machine ... kernel 2.6.14 i receive this message
eva w9968cf-1.36 # make Building W996[87]CF driver for OFFICIAL 2.6 kernels (http://www.kernel.org) PLEASE IGNORE THE "Overriding SUBDIRS", "CRC" AND VERSIONING WARNINGS Remember: you must have read/write access to your kernel source tree. make -C /lib/modules/`uname -r`/build SUBDIRS=/wcam/w9968cf-1.36 modules make[1]: Entering directory `/usr/src/linux-2.6.14-gentoo-r2' CC [M] /wcam/w9968cf-1.36/w9968cf.o /wcam/w9968cf-1.36/w9968cf.c: In function `w9968cf_i2c_attach_inform': /wcam/w9968cf-1.36/w9968cf.c:2359: warning: implicit declaration of function `i2c_clientname' /wcam/w9968cf-1.36/w9968cf.c:2359: warning: initialization makes pointer from integer without a cast /wcam/w9968cf-1.36/w9968cf.c: In function `w9968cf_i2c_detach_inform': /wcam/w9968cf-1.36/w9968cf.c:2390: warning: initialization makes pointer from integer without a cast /wcam/w9968cf-1.36/w9968cf.c: In function `w9968cf_i2c_init': /wcam/w9968cf-1.36/w9968cf.c:2428: error: unknown field `name' specified in initializer /wcam/w9968cf-1.36/w9968cf.c:2428: warning: initialization from incompatible pointer type /wcam/w9968cf-1.36/w9968cf.c:2429: error: unknown field `id' specified in initializer /wcam/w9968cf-1.36/w9968cf.c:2429: error: `I2C_ALGO_SMBUS' undeclared (first use in this function) /wcam/w9968cf-1.36/w9968cf.c:2429: error: (Each undeclared identifier is reported only once /wcam/w9968cf-1.36/w9968cf.c:2429: error: for each function it appears in.) /wcam/w9968cf-1.36/w9968cf.c:2429: error: initializer element is not constant /wcam/w9968cf-1.36/w9968cf.c:2429: error: (near initialization for `algo.smbus_xfer') /wcam/w9968cf-1.36/w9968cf.c:2436: error: initializer element is not constant /wcam/w9968cf-1.36/w9968cf.c:2436: error: (near initialization for `adap.id') make[2]: *** [/wcam/w9968cf-1.36/w9968cf.o] Error 1 make[1]: *** [_module_/wcam/w9968cf-1.36] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.14-gentoo-r2' make: *** [default] Error 2 what append'? |
| meteficha | Posted on: 2005/12/30 15:19 |
Just popping in ![]() Joined: 2005/12/30 From: Posts: 1 |
Re: make failed I'm having the same problem. Luca, could you please update the driver?
Thanks, Felipe. |
| phormix | Posted on: 2006/1/1 2:52 |
Just popping in ![]() Joined: 2006/1/1 From: Posts: 3 |
Ditto here Have tried with various CFF versions (2.95, 3.3, 4.0) and no luck.
I2C support is included in my kernel (modular) so I am assuming this isn't the problem? Looks like the i2c spec has changed a bit, go figure. |
| phormix | Posted on: 2006/1/1 4:21 |
Just popping in ![]() Joined: 2006/1/1 From: Posts: 3 |
Re: Ditto here OK, investigating further it appears that the i2c spec has indeed changed, mainly the structure definition for i2c_algorithm.
Neither the "name" nor the "id" fields are valid/required. Also, the constant I2C_ALGO_SMBUS seems to no longer be defined. That as it is, I've managed to alter these and get the driver to compiled again for 2.6.14.5 Below the dotted lines will be the patchfile (w9968cf.c.diff), which can be applied from the source directory using "patch w9968cf.c 29968cf.c.diff). In the event that the forum mangles my patch, you can find it on my server (as of 31/Dec/2005) at: http://www.phormix.com/linux/patches/w9968cf/w9968cf.c.diff Patch file as below the = signs =================================================== 2359c2359,2360 < const char* clientname = i2c_clientname(client); --- > const char* clientname = client->name; //i2c_clientname(client); > 2390c2391 < const char* clientname = i2c_clientname(client); --- > const char* clientname = client->name; //i2c_clientname(client); 2426c2427,2428 < --- > #define I2C_ALGO_SMBUS 0x040000 > 2428,2429c2430,2431 < .name = "W996[87]CF algorithm", < .id = I2C_ALGO_SMBUS, --- > /*name = "W996[87]CF algorithm", > .id = I2C_ALGO_SMBUS,*/ 2434a2437 > |
| phormix | Posted on: 2006/1/1 4:22 |
Just popping in ![]() Joined: 2006/1/1 From: Posts: 3 |
Here's a patch OK, investigating further it appears that the i2c spec has indeed changed, mainly the structure definition for i2c_algorithm.
Neither the "name" nor the "id" fields are valid/required. Also, the constant I2C_ALGO_SMBUS seems to no longer be defined. That as it is, I've managed to alter these and get the driver to compiled again for 2.6.14.5 Below the dotted lines will be the patchfile (w9968cf.c.diff), which can be applied from the source directory using "patch w9968cf.c 29968cf.c.diff). In the event that the forum mangles my patch, you can find it on my server (as of 31/Dec/2005) at: http://www.phormix.com/linux/patches/w9968cf/w9968cf.c.diff Patch file as below the = signs =================================================== 2359c2359,2360 < const char* clientname = i2c_clientname(client); --- > const char* clientname = client->name; //i2c_clientname(client); > 2390c2391 < const char* clientname = i2c_clientname(client); --- > const char* clientname = client->name; //i2c_clientname(client); 2426c2427,2428 < --- > #define I2C_ALGO_SMBUS 0x040000 > 2428,2429c2430,2431 < .name = "W996[87]CF algorithm", < .id = I2C_ALGO_SMBUS, --- > /*name = "W996[87]CF algorithm", > .id = I2C_ALGO_SMBUS,*/ 2434a2437 > |
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |
