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

Neil Weisenfeld linux-thinkpad@linux-thinkpad.org
Fri, 19 Sep 2003 19:30:11 -0400


I don't think that you're using the 2.4 version of the thinkpad stuff. 
There's stuff for 2.4, 2.5, and 2.6 in the 4.3 package.  I have no idea
what "cpu_gdt_table" is, but the only references to it that I can find
are in the 2.5 code.

See the part of the README that says "If you are running Linux 2.4, do:"


Neil



On Sat, 2003-09-13 at 06:12, Dan Sawyer wrote:
> 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
> 
>