Hello,
Would anyone please help me with rebuilding 2.2.16-22 of RedHat Linux 7?
When building kernel, an error occurred as below:
make[2]: Entering directory '/usr/src/linux/arch/i386/lib'
gcc -D__KERNEL__ -I/usr/src/linux/include -D__ASSEMBLY__ -D__SMP__
-traditional -c checksum.S -o checksum.o
checksum.S:231: badly punctuate parameter list in #define
checksum.S:237: badly punctuate parameter list in #define
make[2]: *** [checksum.o] Error 1
make[2]: Leaving directory '/usr/src/linux/arch/i386/lib'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory '/usr/src/linux/arch/i386/lib'
make: *** [_dir_arch/i386/lib] Error 2
[root: 115#]
Looking at the code in vi,
227 #define SRC(y...) \
228 9999: y; \
229 .section __ex_table, "a"; \
230 .long 9999b, 6001f; \
231 .previous
232
233 #define DST(y...) \
234 9999: y; \
235 .section __ex_table, "a"; \
236 .long 9999b, 6002f; \
237 .previous
Does anyone know what to do to overcome this problem around these define macros
made up of assembler statements? It seems that the dot is not liked and I tried
putting brackets in vain.
Thank you in advance,
Tom
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!