Ticket #1548 (closed task)

Opened 8 years ago

error compiling i2c-2.8.2. or i2c-2.7.0 in i2c-philips-par.c (Examined/Solved - i2c-2.8.2 and i2c-2.7.0)

Reported by: contact Owned by: somebody
Priority: minor Milestone:
Component: kernel Version:
Keywords: Cc:

Description

Hi,

I have an error when compiling i2c-2.8.2. or i2c-2.7.0.

It is at "i2c-philips-par.c". Any help is appreciated!

Please see the make - output below for details.

System: SuSE 9.0 pro with kernel 2.4.21-166-default

Mobo: AsusP4P800

Thanks,

Martin

==========================

.../lmsensors/i2c-2.8.2> make

Makefile:168: kernel/i2c-core.d: No such file or directory

Makefile:168: kernel/i2c-dev.d: No such file or directory

Makefile:168: kernel/i2c-algo-bit.d: No such file or directory

Makefile:168: kernel/i2c-algo-biths.d: No such file or directory

Makefile:168: kernel/i2c-philips-par.d: No such file or directory

Makefile:168: kernel/i2c-elv.d: No such file or directory

Makefile:168: kernel/i2c-velleman.d: No such file or directory

Makefile:168: kernel/i2c-algo-pcf.d: No such file or directory

Makefile:168: kernel/i2c-proc.d: No such file or directory

Makefile:168: kernel/i2c-pport.d: No such file or directory

gcc -M -MG -DMODVERSIONS -include /lib/modules/2.4.

21-166-default/build/include/linux/modversions.h -I/lib/modules/2.4.

21-166-default/build/include -nostdinc -I /usr/lib/gcc-lib/i586-suse-linux/3.3.

1/include -Wall -O2 -DLM_SENSORS -DKERNEL -DMODULE -fomit-frame-pointer

-DEXPORT_SYMTAB kernel/i2c-pport.c | \

sed -e 's@\(.*\)\.o:@kernel/i2c-pport.d kernel/i2c-pport.o: Makefile dirname

kernel/i2c-pport.d'/Module.mk' @' > kernel/i2c-pport.d

[ ... snip ...]

gcc -DMODVERSIONS -include /lib/modules/2.4.

21-166-default/build/include/linux/modversions.h -I/lib/modules/2.4.

21-166-default/build/include -nostdinc -I /usr/lib/gcc-lib/i586-suse-linux/3.3.

1/include -Wall -O2 -DLM_SENSORS -DKERNEL -DMODULE -fomit-frame-pointer

-DEXPORT_SYMTAB -c kernel/i2c-philips-par.c -o kernel/i2c-philips-par.o

kernel/i2c-philips-par.c:142: error: initializer element is not constant

kernel/i2c-philips-par.c:142: error: (near initialization for 'bit_lp_data.

timeout')

kernel/i2c-philips-par.c:151: error: initializer element is not constant

kernel/i2c-philips-par.c:151: error: (near initialization for 'bit_lp_data2.

timeout')

make: *** [kernel/i2c-philips-par.o] Error 1

=================

.../lmsensors/i2c-2.7.0> make

Makefile:188: kernel/i2c-core.d: No such file or directory

Makefile:188: kernel/i2c-dev.d: No such file or directory

Makefile:188: kernel/i2c-algo-bit.d: No such file or directory

Makefile:188: kernel/i2c-philips-par.d: No such file or directory

Makefile:188: kernel/i2c-elv.d: No such file or directory

Makefile:188: kernel/i2c-velleman.d: No such file or directory

Makefile:188: kernel/i2c-algo-pcf.d: No such file or directory

Makefile:188: kernel/i2c-elektor.d: No such file or directory

Makefile:188: kernel/i2c-proc.d: No such file or directory

Makefile:188: kernel/i2c-pport.d: No such file or directory

Makefile:188: kernel/i2c-pcf-epp.d: No such file or directory

gcc -M -MG -I/lib/modules/2.4.21-166-default/build/include -O2 -DLM_SENSORS

-DKERNEL -DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB -DMODVERSIONS

-include /lib/modules/2.4.21-166-default/build/include/linux/modversions.h

kernel/i2c-pcf-epp.c | \

sed -e 's@\(.*\)\.o:@kernel/i2c-pcf-epp.d kernel/i2c-pcf-epp.o: Makefile

dirname kernel/i2c-pcf-epp.d'/Module.mk' @' > kernel/i2c-pcf-epp.d

[ ... snip ...]

gcc -I/lib/modules/2.4.21-166-default/build/include -O2 -DLM_SENSORS

-DKERNEL -DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB -DMODVERSIONS

-include /lib/modules/2.4.21-166-default/build/include/linux/modversions.h -c

kernel/i2c-philips-par.c -o kernel/i2c-philips-par.o

kernel/i2c-philips-par.c:163: error: initializer element is not constant

kernel/i2c-philips-par.c:163: error: (near initialization for 'bit_lp_data.

timeout')

kernel/i2c-philips-par.c:172: error: initializer element is not constant

kernel/i2c-philips-par.c:172: error: (near initialization for 'bit_lp_data2.

timeout')

make: *** [kernel/i2c-philips-par.o] Error 1

--- Duplicate of ticket #1511.

Khali 2004-01-17

Note: See TracTickets for help on using tickets.