apm compile error

Akira YOSHIYAMA (yosshy@tkf.att.ne.jp)
Mon, 11 Oct 1999 22:17:17 +0900


Hi all,

I tried to compile linux 2.3.20 and got error messages:

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -D__SMP__ -pipe -fno-strength-reduce -DCPU=686 -march=i686 -DMODULE -DEXPORT_SYMTAB -c apm.c
apm.c: In function `apm_get_info':
apm.c:1266: warning: unused variable `nbat'
apm.c: At top level:
apm.c:1458: parse error before string constant
apm.c:1458: warning: type defaults to `int' in declaration of `__setup'
apm.c:1458: warning: function declaration isn't a prototype
apm.c:1458: warning: data definition has no type or storage class
apm.c: In function `apm_init':
apm.c:1476: warning: `return' with no value, in function returning non-void
apm.c:1486: warning: `return' with no value, in function returning non-void
apm.c:1515: warning: `return' with no value, in function returning non-void
apm.c:1574: warning: control reaches end of non-void function
apm.c: At top level:
apm.c:648: warning: `apm_get_battery_status' defined but not used
apm.c:1436: warning: `apm_setup' defined but not used
make[1]: *** [apm.o] Error 1
make[1]: Leaving directory `/usr/src/linux/arch/i386/kernel'
make: *** [_mod_arch/i386/kernel] Error 2

host: i686x2(SMP)
compile options:

CONFIG_X86=y
CONFIG_M686=y

CONFIG_SMP=y

CONFIG_APM=m
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
CONFIG_APM_DO_ENABLE=y
# CONFIG_APM_CPU_IDLE is not set
# CONFIG_APM_DISPLAY_BLANK is not set
CONFIG_APM_POWER_OFF=y
# CONFIG_APM_IGNORE_MULTIPLE_SUSPEND is not set
# CONFIG_APM_IGNORE_SUSPEND_BOUNCE is not set
# CONFIG_APM_RTC_IS_GMT is not set
# CONFIG_APM_ALLOW_INTS is not set

Regards,

A.Yoshiyama <yosshy@debian.or.jp>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/