2.1.102 compilation problem w/ APM

Mailing lists account (linux@windows95.sucks.eu.org)
Mon, 18 May 1998 13:01:42 +0200 (CEST)

This happens on a UP K6 system:

gcc -D__KERNEL__ -I/UW-SCSI/linux-2.1.102/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fomit-frame-pointer
-mamdk6 -march=amdk6 -mcpu=amdk6 -DCPU=686 -c -o time.o time.c
time.c: In function `timer_interrupt':
time.c:402: warning: suggest explicit braces to avoid ambiguous `else'
time.c: In function `time_init':
time.c:529: `do_fast_gettimeoffset' undeclared (first use in this
time.c:529: (Each undeclared identifier is reported only once
time.c:529: for each function it appears in.)
time.c:530: `do_x86_get_fast_time' undeclared (first use in this function)
time.c:546: `init_timer_cc' undeclared (first use in this function)
time.c:548: `pentium_timer_interrupt' undeclared (first use in this
make[1]: *** [time.o] Error 1
make[1]: Leaving directory `/UW-SCSI/linux-2.1.102/arch/i386/kernel'
make: *** [linuxsubdirs] Error 2

The problem is that do_fast_gettimeoffset etc. are defined only
#ifndef CONFIG_APM
but they're used when CONFIG_APM is set, anyway.
What's the correct way to fix it? Remove the #ifndef CONFIG_APM things in
front of the definitions, or make the kernel believe we don't have CPU
hardware time counters
+ #ifndef CONFIG_APM
if(boot_cpu_data.x86_capability & 16) {


Windows 98 doesn't support b/w displays - they can't display the blue screen...
Anyone sending unwanted advertising e-mail to this address will be charged
$25 for network traffic and computing time. By extracting my address from
this message or its header, you agree to these terms.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu