Re: FYI (me too!): compilation error in 2.2.3/scsi/sg.c

Gilbert, Douglas (douglas.gilbert@rbcds.com)
Fri, 12 Mar 1999 14:30:40 -0500


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BE6CBE.D088C346
Content-Type: text/plain

> Hello,
>
> Linux 2.2.3 fails to compile sg.c correctly! Probably hundreds have
already reported
> this, but anyway, here's the message and the essence of my ".config":
>
> make -C scsi modules
> make[2]: Entering directory `/usr/src/linux223-PPS/drivers/scsi'
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-
> pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2
-malign-
> functions=2 -DCPU=586 -DMODULE -DMODVERSIONS -include
> /usr/src/linux/include/linux/modversions.h -c -o sg.o sg.c
> sg.c: In function `sg_ioctl':
> sg.c:98: `SG_EMULATED_HOST' undeclared (first use this function)
> sg.c:98: (Each undeclared identifier is reported only once
> sg.c:98: for each function it appears in.)
> make[2]: *** [sg.o] Error 1

That constant is defined in include/scsi/sg.h (line 33). It has not changed,
it won't
be changing either. Interestingly the compiler found the constants defined
on lines
30 and 31. So your sg.h file has been truncated or, more likely, you have
memory
problems.

Doug Gilbert

------_=_NextPart_001_01BE6CBE.D088C346
Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
Re: FYI (me too!): compilation error in 2.2.3/scsi/sg.c

> Hello,
>
> Linux 2.2.3 fails to compile sg.c correctly! Probably hundreds have already reported
> this, but anyway, here's the message and the essence of my ".config":
>
> make -C scsi modules
> make[2]: Entering directory `/usr/src/linux223-PPS/drivers/scsi'
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-
> pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-
> functions=2 -DCPU=586 -DMODULE -DMODVERSIONS -include
> /usr/src/linux/include/linux/modversions.h   -c -o sg.o sg.c
> sg.c: In function `sg_ioctl':
> sg.c:98: `SG_EMULATED_HOST' undeclared (first use this function)
> sg.c:98: (Each undeclared identifier is reported only once
> sg.c:98: for each function it appears in.)
> make[2]: *** [sg.o] Error 1

That constant is defined in include/scsi/sg.h (line 33). It has not changed, it won't
be changing either. Interestingly the compiler found the constants defined on lines
30 and 31. So your sg.h file has been truncated or, more likely, you have memory
problems.

Doug Gilbert

------_=_NextPart_001_01BE6CBE.D088C346--

-
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/