lkml.org 
[lkml]   [1998]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject2.1.102 compilation problem w/ APM
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
function)
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
function)
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) {
..)
?

LLaP
bero
---
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

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.332 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site