Compilation problems with current CVS version
Hi,
For some time now I've been unable to compile lmsensors from CVS. I get an error in adm1021.c, forcing me to disable it in Modules.mk in order to compile and install the other modules.
Attached is the output of make.
Kind regards,
Bertrik Sikken
-------------- next part --------------
[root@kf-gd-tg01-149 lm_sensors2]# make
gcc -DMODVERSIONS -include /lib/modules/2.4.20-pre10/build/include/linux/modversions.h -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I. -Ikernel/include -I/usr/local/include -I/lib/modules/2.4.20-pre10/build/include -O2 -c kernel/chips/adm1021.c -o kernel/chips/adm1021.o
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directorykernel/chips/adm1021.c:52: warning: parameter names (without types) in function declaration kernel/chips/adm1021.c:52: warning: data definition has no type or storage class kernel/chips/adm1021.c:110: field type' has incomplete type kernel/chips/adm1021.c: In function adm1021_attach_adapter':kernel/chips/adm1021.c:211: `addr_data' undeclared (first use in this function) kernel/chips/adm1021.c:211: (Each undeclared identifier is reported only once kernel/chips/adm1021.c:211: for each function it appears in.) kernel/chips/adm1021.c: In function `adm1021_detect':kernel/chips/adm1021.c:270: adm1023' undeclared (first use in this function) kernel/chips/adm1021.c:272: adm1021' undeclared (first use in this function) kernel/chips/adm1021.c:274: thmc10' undeclared (first use in this function) kernel/chips/adm1021.c:276: gl523sm' undeclared (first use in this function) kernel/chips/adm1021.c:280: max1617a' undeclared (first use in this function) kernel/chips/adm1021.c:285: lm84' undeclared (first use in this function) kernel/chips/adm1021.c:287: mc1066' undeclared (first use in this function) kernel/chips/adm1021.c:289: max1617' undeclared (first use in this function) kernel/chips/adm1021.c: In function `adm1021_update_client':kernel/chips/adm1021.c:463: adm1021' undeclared (first use in this function) kernel/chips/adm1021.c:467: adm1023' undeclared (first use in this function) kernel/chips/adm1021.c: In function `adm1021_remote_temp':kernel/chips/adm1021.c:519: `adm1023' undeclared (first use in this function)
make: *** [kernel/chips/adm1021.o] Error 1
[root@kf-gd-tg01-149 lm_sensors2]#
as noted in CHANGES, lm_sensors CVS requires i2c CVS to get SENSORS_INSMOD_8, called at line 52.
Get and install i2c CVS.
mds
Quoted 41 lines · Bertrik Sikken
Hi,
For some time now I've been unable to compile lmsensors from CVS. I get an error in
adm1021.c, forcing me to disable it in Modules.mk in order to compile and install the other modules.Attached is the output of make.
Kind regards,
Bertrik Sikken------------------------------------------------------------------------
[root@kf-gd-tg01-149 lm_sensors2]# make
gcc -DMODVERSIONS -include/lib/modules/2.4.20-pre10/build/include/linux/modversions.h-D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I. -Ikernel/include -I/usr/local/include -I/lib/modules/2.4.20-pre10/build/include -O2 -ckernel/chips/adm1021.c-okernel/chips/adm1021.o
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directorykernel/chips/adm1021.c:52: warning: parameter names (without types) in function declarationkernel/chips/adm1021.c:52: warning: data definition has no type or storage classkernel/chips/adm1021.c:110: fieldtype' has incomplete type kernel/chips/adm1021.c: In functionadm1021_attach_adapter':kernel/chips/adm1021.c:211: `addr_data' undeclared (first use in this function)kernel/chips/adm1021.c:211: (Each undeclared identifier is reported only oncekernel/chips/adm1021.c:211: for each function it appears in.)kernel/chips/adm1021.c: In function `adm1021_detect':kernel/chips/adm1021.c:270:adm1023' undeclared (first use in this function) kernel/chips/adm1021.c:272:adm1021' undeclared (first use in this function)kernel/chips/adm1021.c:274:thmc10' undeclared (first use in this function) kernel/chips/adm1021.c:276:gl523sm' undeclared (first use in this function)kernel/chips/adm1021.c:280:max1617a' undeclared (first use in this function) kernel/chips/adm1021.c:285:lm84' undeclared (first use in this function)kernel/chips/adm1021.c:287:mc1066' undeclared (first use in this function) kernel/chips/adm1021.c:289:max1617' undeclared (first use in this function)kernel/chips/adm1021.c: In function `adm1021_update_client':kernel/chips/adm1021.c:463:adm1021' undeclared (first use in this function) kernel/chips/adm1021.c:467:adm1023' undeclared (first use in this function)kernel/chips/adm1021.c: In function `adm1021_remote_temp':kernel/chips/adm1021.c:519: `adm1023' undeclared (first use in this function)
make: *** [kernel/chips/adm1021.o] Error 1
[root@kf-gd-tg01-149 lm_sensors2]#