Re: first shoot for smartbattery (was Re: Re: i2c-acpi-ec.c)

Bruno Ducrot
2004-12-31T19:09:07Z

On Fri, Dec 31, 2004 at 07:48:53PM +0100, François Valenduc wrote:
> Hello,
>
> Since I own a ACER Travelmate 4001 which has a smartbattery, I tried
> this driver. Everythings works well until I try to compile
> smartbattery.c. If I launch the gcc command like explained in the README
> file, here is what I get:
>
> gcc -W -Wall -O2 -o smartbattery smartbattery.c
> smartbattery.c: Dans la fonction « main »:
> smartbattery.c:274: attention : implicit declaration of function `ioctl'
> smartbattery.c:274: error: `I2C_FUNCS' undeclared (first use in this
> function)
> smartbattery.c:274: error: (Each undeclared identifier is reported only once
> smartbattery.c:274: error: for each function it appears in.)
> smartbattery.c:280: error: `I2C_FUNC_SMBUS_READ_WORD_DATA' undeclared
> (first use in this function)
> smartbattery.c:290: error: `I2C_SLAVE_FORCE' undeclared (first use in
> this function)

I missed up some include in /usr/local/include/linux installing latest
lm-sensors I guess... Sorry. I don't have time to fix this properly.

Please refetch (will contain now the include I'm using) and do a
$ gcc -W -Wall -I./include -O2 -o smartbattery smartbattery.c

You need only this latest step.

Cheers,

--
Bruno Ducrot

-- Which is worse: ignorance or apathy?
-- Don't know. Don't care.