Re: best acpi solution

sjb
2003-05-22T14:03:56Z

Thanks to everyone who helped out with my question from yestrday.

Following the suggestions, I'm trying to build a new kernel based on
Alan Cox's patches to 2.4.21-rc2

Everything goes fine until I try to make the modules, when I get the
attached error.

I know this isn't striclty an ACPI question, but I guess many of you
have been down this route before so I thought I'd ask here in case
somebody had seen this before.

My gcc version is

linux:/usr/src/linux # gcc -v
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/3.3/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib
--enable-languages=c,c++,f77,objc,java,ada --disable-checking
--enable-libgcj --with-gxx-include-dir=/usr/include/g++
--with-slibdir=/lib --with-system-zlib --enable-shared
--enable-__cxa_atexit i486-suse-linux
Thread model: posix
gcc version 3.3 20030226 (prerelease) (SuSE Linux)

Any help gratefully received since I'm now almost there ;-)

sjb

make -C atm modules
make[2]: Entering directory `/usr/src/linux-2.4.21-rc2-ac2/drivers/atm'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-rc2-ac2/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-malign-functions=0 -malign-jumps=0 -malign-loops=0 -DMODULE
-DMODVERSIONS -include
/usr/src/linux-2.4.21-rc2-ac2/include/linux/modversions.h -g -nostdinc
-iwithprefix include -DKBUILD_BASENAME=ambassador -c -o ambassador.o
ambassador.c
cc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions
In file included from
/usr/src/linux-2.4.21-rc2-ac2/include/linux/atmdev.h:212,
from ambassador.c:31:
/usr/src/linux-2.4.21-rc2-ac2/include/linux/skbuff.h: In function
`__pskb_pull':
/usr/src/linux-2.4.21-rc2-ac2/include/linux/skbuff.h:855: warning:
comparison between signed and unsigned
/usr/src/linux-2.4.21-rc2-ac2/include/linux/skbuff.h: In function
`pskb_may_pull':
/usr/src/linux-2.4.21-rc2-ac2/include/linux/skbuff.h:871: warning:
comparison between signed and unsigned
In file included from ambassador.c:31:
/usr/src/linux-2.4.21-rc2-ac2/include/linux/atmdev.h: In function
`atm_may_send':
/usr/src/linux-2.4.21-rc2-ac2/include/linux/atmdev.h:450: warning:
comparison between signed and unsigned
ambassador.c:301:21: pasting "." and "start" does not give a valid
preprocessing token
ambassador.c:305:23: pasting "." and "regions" does not give a valid
preprocessing token
ambassador.c:310:20: pasting "." and "data" does not give a valid
preprocessing token
ambassador.c: At top level:
/usr/src/linux-2.4.21-rc2-ac2/include/linux/module.h:299: warning:
`__module_kernel_version' defined but not used
/usr/src/linux-2.4.21-rc2-ac2/include/linux/module.h:302: warning:
`__module_using_checksums' defined but not used
ambassador.c:2588: warning: `__module_license' defined but not used
make[2]: *** [ambassador.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.21-rc2-ac2/drivers/atm'
make[1]: *** [_modsubdir_atm] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.21-rc2-ac2/drivers'
make: *** [_mod_drivers] Error 2