Skip to contentSkip to conversation

New: multiple definition of `ST_partstat'

Bugme-new Andrew Morton 3 participants 3 messages Nov 16, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Begin forwarded message:

Date: Tue, 16 Nov 2004 10:43:01 -0800
From: [email protected]
To: [email protected]
Subject: [Bugme-new] [Bug 3753] New: multiple definition of `ST_partstat'

http://bugme.osdl.org/show_bug.cgi?id=3753

Summary: multiple definition of `ST_partstat'
Kernel Version: 2.6.10-rc2
Status: NEW
Severity: blocking
Owner: [email protected]
Submitter: [email protected]

Distribution: Debian Sarge

Problem Description:

  LD      drivers/scsi/sd_mod.o
  CC      drivers/scsi/sg.o
  LD      drivers/scsi/built-in.o

drivers/scsi/osst.o(.bss+0x0): multiple definition of `ST_partstat' drivers/scsi/st.o(.bss+0x0): first defined here
make[2]: *** [drivers/scsi/built-in.o] Error 1
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

#1 lore raw
Quoted 9 lines · Andrew Morton

Problem Description:

  LD      drivers/scsi/sd_mod.o
  CC      drivers/scsi/sg.o
  LD      drivers/scsi/built-in.o

drivers/scsi/osst.o(.bss+0x0): multiple definition of `ST_partstat' drivers/scsi/st.o(.bss+0x0): first defined here
make[2]: *** [drivers/scsi/built-in.o] Error 1
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2

Kai,

This looks like a missed piece in a typedef conversion in st.h from the patch SCSI tape: remove remaining typedefs.

James

===== drivers/scsi/st.h 1.20 vs edited =====

drivers/scsi/st.h +1 -1
@@ -67,7 +67,7 @@
 	u32 last_block_visited;
 	int drv_block;		/* The block where the drive head is */
 	int drv_file;
-} ST_partstat;
+};
 
 #define ST_NBR_PARTITIONS 4
 
#2 lore raw
Quoted 22 lines · James Bottomley
Quoted 9 lines · Andrew Morton

Problem Description:

  LD      drivers/scsi/sd_mod.o
  CC      drivers/scsi/sg.o
  LD      drivers/scsi/built-in.o

drivers/scsi/osst.o(.bss+0x0): multiple definition of `ST_partstat' drivers/scsi/st.o(.bss+0x0): first defined here
make[2]: *** [drivers/scsi/built-in.o] Error 1
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2

Kai,

This looks like a missed piece in a typedef conversion in st.h from the patch SCSI tape: remove remaining typedefs.

James

===== drivers/scsi/st.h 1.20 vs edited =====

drivers/scsi/st.h line 73

Quoted 8 lines
drivers/scsi/st.h +1 -1
@@ -67,7 +67,7 @@
 	u32 last_block_visited;
 	int drv_block;		/* The block where the drive head is */
 	int drv_file;
-} ST_partstat;
+};
 
 #define ST_NBR_PARTITIONS 4
 

Yes. One more reminder that I should _never_ forget to re-add osst to the kernel configuration if I temporarily remove it ;-(

Thanks to all involved in noticing and fixing this bug.

Signature · 1 line
Kai