Linux-kernel mailing list archive 2000-06,: sg.c/IrDA in 2.3.43: compile fails

# sg.c/IrDA in 2.3.43: compile fails

Jean-Luc Pedneault (umaro@step.polymtl.ca)
Fri, 11 Feb 2000 01:44:19 -0500 (EST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Rajeev Kumar: "Mirroring Root Disks"
- Previous message: Jarno Lahteenmaki: "Re: Adaptec 2940UW Pro lockup in 2.2.14"
- Next in thread: Douglas Gilbert: "Re: sg.c/IrDA in 2.3.43: compile fails"
- Reply: Douglas Gilbert: "Re: sg.c/IrDA in 2.3.43: compile fails"
- Reply: Douglas Gilbert: "Re: sg.c/IrDA in 2.3.43: compile fails"

I get this while compiling the 2.3.43 kernel (2.3.42 compiled fine):

-----------
make -C scsi modules
make[2]: Entering directory `/usr/src/linux-2.3/drivers/scsi'
ld -m elf_i386 -r -o sr_mod.o sr.o sr_ioctl.o sr_vendor.o
gcc -D__KERNEL__ -I/usr/src/linux-2.3/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -pipe -DCPU=586 -DMODULE -c -o sg.o sg.c
sg.c: In function `sg_init':
sg.c:1092: `CONFIG_SD_EXTRA_DEVS' undeclared (first use in this function)
sg.c:1092: (Each undeclared identifier is reported only once
sg.c:1092: for each function it appears in.)
sg.c:1073: warning: `size' might be used uninitialized in this function
sg.c:1094: warning: `count' might be used uninitialized in this function
sg.c:1094: warning: `count' might be used uninitialized in this function
sg.c:1094: warning: `count' might be used uninitialized in this function
sg.c:1094: warning: `count' might be used uninitialized in this function
make[2]: *** [sg.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.3/drivers/scsi'
make[1]: *** [_modsubdir_scsi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.3/drivers'
make: *** [_mod_drivers] Error 2

---------
I notice that CONFIG_SD_EXTRA_DEVS is the broken #define, and I need it
for my cd writer (via SCSI emulation). linux/drivers/scsi/Config.in seems
to define this only when the SCSI disk support is set to Yes or Module,
even though I got no SCSI disk inside my computer.

Actually, sg.c DOES compile when SCSI Disk support is activated.

The IrDA subsystem seems to be a source of compile failures too:

----------
make -C irda modules
make[3]: Entering directory `/usr/src/linux-2.3/drivers/net/irda'
/usr/src/linux-2.3/Rules.make:263: target `irport.o' given more than once
in the same rule.
gcc -D__KERNEL__ -I/usr/src/linux-2.3/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -pipe -DCPU=586 -DMODULE -DEXPORT_SYMTAB -c
irport.c
irport.c: In function `irport_write_wakeup':
irport.c:508: structure has no member named `tbusy'
irport.c:511: `NET_BH' undeclared (first use in this function)
irport.c:511: (Each undeclared identifier is reported only once
irport.c:511: for each function it appears in.)
irport.c: In function `irport_change_speed_complete':
irport.c:580: structure has no member named `tbusy'
irport.c:583: `NET_BH' undeclared (first use in this function)
irport.c: In function `irport_hard_xmit':
irport.c:610: structure has no member named `tbusy'
irport.c:612: structure has no member named `start'
irport.c: In function `irport_interrupt':
irport.c:699: structure has no member named `interrupt'
irport.c:736: structure has no member named `interrupt'
irport.c: In function `irport_net_open':
irport.c:774: structure has no member named `tbusy'
irport.c:775: structure has no member named `interrupt'
irport.c:776: structure has no member named `start'
irport.c: In function `irport_net_close':
irport.c:812: structure has no member named `tbusy'
irport.c:813: structure has no member named `start'
make[3]: *** [irport.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.3/drivers/net/irda'
make[2]: *** [_modinsubdir_irda] Error 2
make[2]: Leaving directory `/usr/src/linux-2.3/drivers/net'
make[1]: *** [_modsubdir_net] Error 2
make[1]: Leaving directory `/usr/src/linux-2.3/drivers'
make: *** [_mod_drivers] Error 2
-----------

It seems a major rewrite is in the works here.

- JL

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

- Next message: Rajeev Kumar: "Mirroring Root Disks"
- Previous message: Jarno Lahteenmaki: "Re: Adaptec 2940UW Pro lockup in 2.2.14"
- Next in thread: Douglas Gilbert: "Re: sg.c/IrDA in 2.3.43: compile fails"
- Reply: Douglas Gilbert: "Re: sg.c/IrDA in 2.3.43: compile fails"
- Reply: Douglas Gilbert: "Re: sg.c/IrDA in 2.3.43: compile fails"