2002-10-02 06:32:48

by Corporal Pisang

[permalink] [raw]
Subject: 2.5.40 compile error (missing imm.o)


Hi,

2.5.40 gives me a compile error doesnt exists before.

gcc -Wp,-MD,./.imm.o.d -D__KERNEL__ -I/usr/src/linux/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=athlon -I/usr/src/linux/arch/i386/mach-generic -nostdinc
-iwithprefix include -DKBUILD_BASENAME=imm -c -o imm.o imm.c
drivers/scsi/imm.c: In function `imm_interrupt':
drivers/scsi/imm.c:901: warning: implicit declaration of function
`queue_task'
drivers/scsi/imm.c:901: `tq_timer' undeclared (first use in this function)
drivers/scsi/imm.c:901: (Each undeclared identifier is reported only once
drivers/scsi/imm.c:901: for each function it appears in.)
drivers/scsi/imm.c: In function `imm_queuecommand':
drivers/scsi/imm.c:1108: `tq_immediate' undeclared (first use in this
function)
drivers/scsi/imm.c:1109: warning: implicit declaration of function `mark_bh'
drivers/scsi/imm.c:1109: `IMMEDIATE_BH' undeclared (first use in this
function)
ld -m elf_i386 -r -o sd_mod.o sd.o
ld -m elf_i386 -r -o sr_mod.o sr.o sr_ioctl.o sr_vendor.o
gcc -Wp,-MD,./.sg.o.d -D__KERNEL__ -I/usr/src/linux/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=athlon -I/usr/src/linux/arch/i386/mach-generic -nostdinc
-iwithprefix include -DKBUILD_BASENAME=sg -c -o sg.o sg.c
ld -m elf_i386 -r -o built-in.o scsi_mod.o ide-scsi.o imm.o sd_mod.o
sr_mod.o sg.o
ld: cannot open imm.o: No such file or directory
make[2]: *** [built-in.o] Error 1
make[2]: Leaving directory `/usr/src/linux/drivers/scsi'
make[1]: *** [scsi] Error 2
make[1]: Leaving directory `/usr/src/linux/drivers'
make: *** [drivers] Error 2


Regards

-Ubaida-



2002-10-02 07:34:09

by Bongani Hlope

[permalink] [raw]
Subject: Re: 2.5.40 compile error (missing imm.o)

>
> Hi,
>
> 2.5.40 gives me a compile error doesnt exists before.
>
> gcc -Wp,-MD,./.imm.o.d -D__KERNEL__ -I/usr/src/linux/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
> -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
> -march=athlon -I/usr/src/linux/arch/i386/mach-generic -nostdinc
> -iwithprefix include -DKBUILD_BASENAME=imm -c -o imm.o imm.c
> drivers/scsi/imm.c: In function `imm_interrupt':
> drivers/scsi/imm.c:901: warning: implicit declaration of function
> `queue_task'
> drivers/scsi/imm.c:901: `tq_timer' undeclared (first use in this function)
> drivers/scsi/imm.c:901: (Each undeclared identifier is reported only once
> drivers/scsi/imm.c:901: for each function it appears in.)
> drivers/scsi/imm.c: In function `imm_queuecommand':
> drivers/scsi/imm.c:1108: `tq_immediate' undeclared (first use in this
> function)
> drivers/scsi/imm.c:1109: warning: implicit declaration of function `mark_bh'
> drivers/scsi/imm.c:1109: `IMMEDIATE_BH' undeclared (first use in this
> function)

<snip>

Try this patch I think it should fix it (not tested though)


diff -uNr linux-2.5/drivers/scsi/imm.c.old linux-2.5/drivers/scsi/imm.c
--- linux-2.5/drivers/scsi/imm.c.old 2002-10-02 09:30:41.000000000 +0200
+++ linux-2.5/drivers/scsi/imm.c 2002-10-02 09:31:53.000000000 +0200
@@ -898,7 +898,7 @@
if (imm_engine(tmp, cmd)) {
tmp->imm_tq.data = (void *) tmp;
tmp->imm_tq.sync = 0;
- queue_task(&tmp->imm_tq, &tq_timer);
+ schedule_task(&tmp->imm_tq);
return;
}
/* Command must of completed hence it is safe to let go... */
@@ -1105,8 +1105,7 @@

imm_hosts[host_no].imm_tq.data = imm_hosts + host_no;
imm_hosts[host_no].imm_tq.sync = 0;
- queue_task(&imm_hosts[host_no].imm_tq, &tq_immediate);
- mark_bh(IMMEDIATE_BH);
+ schedule_task(&imm_hosts[host_no].imm_tq);

return 0;
}

Cheers

>
> Regards
>
> -Ubaida-


---------------------------------------------
This message was sent using M-Web Airmail.
JUST LIKE THAT
Are you ready for 10-digit dialling?
To find out how this will affect your Internet connection go to http://www.mweb.co.za/ten
http://airmail.mweb.co.za/


2002-10-02 08:16:52

by Corporal Pisang

[permalink] [raw]
Subject: Re: 2.5.40 compile error (missing imm.o)

>
> Try this patch I think it should fix it (not tested though)

your patch makes the compilation start again, and no problem till the end
at make modules_install

make modules_install produce this error:


if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.5.40; fi
depmod: *** Unresolved symbols in /lib/modules/2.5.40/kernel/fs/xfs/xfs.o
depmod: run_task_queue
depmod: TQ_ACTIVE
depmod: queue_task
depmod: *** Unresolved symbols in
/lib/modules/2.5.40/kernel/net/ipv4/netfilter/ipt_owner.o
depmod: next_thread
depmod: find_task_by_pid
depmod: *** Unresolved symbols in
/lib/modules/2.5.40/kernel/net/ipv6/netfilter/ip6t_owner.o
depmod: next_thread
depmod: find_task_by_pid


Regards

-Ubaida-