[ltp] tpctl - thinkpad - thinkpadpm errors on build ??

Dan Sawyer linux-thinkpad@linux-thinkpad.org
Sat, 13 Sep 2003 03:12:45 -0700


All,

I am upgrading to kernel 2.4.22 and decided to upgread tpctl as well. I 
loaded tpctl 4.3 and thinkpad 4.3. (for some reason I could not find 
thinkpad 4.4 so I had to go with the older version ??)

make all of thinkpad 4.3 errors with the following:

cc -Wall -Wcast-align -Wstrict-prototypes -O2 
-I/lib/modules/2.4.22/build/include -I. -I../include -DLINUX -o 
thinkpadpm.o -c thinkpadpm.c
thinkpadpm.c: In function `apm_bios_call':
thinkpadpm.c:237: warning: implicit declaration of function `get_cpu'
thinkpadpm.c:238: `cpu_gdt_table' undeclared (first use in this function)
thinkpadpm.c:238: (Each undeclared identifier is reported only once
thinkpadpm.c:238: for each function it appears in.)
thinkpadpm.c:241: warning: implicit declaration of function 
`local_save_flags'
thinkpadpm.c:263: warning: implicit declaration of function `put_cpu'
thinkpadpm.c: In function `apm_bios_call_simple':
thinkpadpm.c:296: `cpu_gdt_table' undeclared (first use in this function)
make[1]: *** [thinkpadpm.o] Error 1
make[1]: Leaving directory `/home/src/tpctl/thinkpad-4.3/drivers'
make: *** [all] Error 2

Is there a fix for this??

Thanks,
Dan