2.4.21-pre7: error compiling aic7(censored)/aicasm/aicasm.c
Subsystems (2)
<-- snip -->
gcc-2.95 -D__KERNEL__
-I/home/bunk/linux/kernel-2.4/linux-2.4.21-pre7-full-nohotplug/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=k6 -D__KERNEL__ -I/home/bunk/linux/kernel-2.4/linux-2.4.21-pre7-full-nohotplug/include -e stextaicasm/aicasm.c -o aicasm/aicasm/usr/bin/ld: warning: cannot find entry symbol stext; defaulting to 08048760 /tmp/ccZW2or5.o(.text+0x372): In function `main':
: undefined reference to `symtable_open'
/tmp/ccZW2or5.o(.text+0x37f): In function `main':
: undefined reference to `include_file'
/tmp/ccZW2or5.o(.text+0x384): In function `main':
: undefined reference to `yyparse'
/tmp/ccZW2or5.o(.text+0x3ea): In function `main':
: undefined reference to `symtable_dump'
/tmp/ccZW2or5.o(.text+0x4bf): In function `output_code':
: undefined reference to `versions'
/tmp/ccZW2or5.o(.text+0x548): In function `output_code':
: undefined reference to `patch_arg_list'
/tmp/ccZW2or5.o(.text+0x560): In function `output_code':
: undefined reference to `patch_arg_list'
/tmp/ccZW2or5.o(.text+0x566): In function `output_code':
: undefined reference to `prefix'
/tmp/ccZW2or5.o(.text+0x58e): In function `output_code':
: undefined reference to `patch_arg_list'
/tmp/ccZW2or5.o(.text+0x59c): In function `output_code':
: undefined reference to `prefix'
/tmp/ccZW2or5.o(.text+0x5c6): In function `output_code':
: undefined reference to `prefix'
/tmp/ccZW2or5.o(.text+0x5fa): In function `output_code':
: undefined reference to `prefix'
/tmp/ccZW2or5.o(.text+0xb56): In function `stop':
: undefined reference to `yyfilename'
/tmp/ccZW2or5.o(.text+0xb63): In function `stop':
: undefined reference to `yylineno'
/tmp/ccZW2or5.o(.text+0xc55): In function `stop':
: undefined reference to `symlist_free'
/tmp/ccZW2or5.o(.text+0xc5a): In function `stop':
: undefined reference to `symtable_close'
/tmp/ccZW2or5.o(.text+0xcaf): In function `seq_alloc':
: undefined reference to `yylineno'
collect2: ld returned 1 exit status
make[4]: *** [aicasm/aicasm] Error 1
make[4]: Leaving directory `/home/bunk/linux/kernel-2.4/linux-2.4.21-pre7-full-nohotplug/drivers/scsi/aic7xxx'
<-- snip -->
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedQuoted 8 lines
<-- snip -->
gcc-2.95 -D__KERNEL__
(quoted diff) +0
-3-I/home/bunk/linux/kernel-2.4/linux-2.4.21-pre7-full-nohotplug/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=k6 -D__KERNEL__ -I/home/bunk/linux/kernel-2.4/linux-2.4.21-pre7-full-nohotplug/include -e stext
aicasm/aicasm.c-o aicasm/aicasm/usr/bin/ld: warning: cannot find entry symbol stext; defaulting to 08048760
This is probably due to the misplaced endif in the currently committed drivers/scsi/aic7xxx/Makefile. Updated versions of the Makefile/driver can be found here:
http://people.FreeBSD.org/~gibbs/linux/SRC/
--
Justin
Quoted 13 lines · Justin T. Gibbs
Quoted 8 lines
<-- snip -->
gcc-2.95 -D__KERNEL__
(quoted diff) +0
-3-I/home/bunk/linux/kernel-2.4/linux-2.4.21-pre7-full-nohotplug/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=k6 -D__KERNEL__ -I/home/bunk/linux/kernel-2.4/linux-2.4.21-pre7-full-nohotplug/include -e stext
aicasm/aicasm.c-o aicasm/aicasm/usr/bin/ld: warning: cannot find entry symbol stext; defaulting to 08048760This is probably due to the misplaced endif in the currently committed
drivers/scsi/aic7xxx/Makefile. Updated versions of the Makefile/driver can be found here:
Quoted 1 line
Yes, thanks, this fixed it.
Marcelo:
Below is the fix by Justin, please apply.
Quoted 1 line
Justin
cu
Adrian
drivers/scsi/aic7xxx/Makefile renamed from drivers/scsi/aic7xxx/Makefile.old +1 -1
@@ -83,7 +83,7 @@ endif $(aic79xx_gen): aic79xx.seq aic79xx.reg aicasm/aicasm $(aic79xx_asm_cmd) +endif aicasm/aicasm: aicasm/*.[chyl] $(MAKE) -C aicasm -endif
Quoted 1 line
Below is the fix by Justin, please apply.
Actually, if you are inclined to take any of my changes, please just take the bk send output that I put up for 2.4 that includes all of the driver history.
http://people.FreeBSD.org/~gibbs/linux/SRC/
--
Justin