Messages in this thread | | | From | "Gilbert, Douglas" <> | Subject | Re: FYI (me too!): compilation error in 2.2.3/scsi/sg.c | Date | Fri, 12 Mar 1999 14:30:40 -0500 |
| |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2232.0"> <TITLE>Re: FYI (me too!): compilation error in 2.2.3/scsi/sg.c</TITLE> </HEAD> <BODY>
<P><FONT SIZE=2 FACE="Arial">> Hello,</FONT> <BR><FONT SIZE=2 FACE="Arial">></FONT> <BR><FONT SIZE=2 FACE="Arial">> Linux 2.2.3 fails to compile sg.c correctly! Probably hundreds have already reported </FONT> <BR><FONT SIZE=2 FACE="Arial">> this, but anyway, here's the message and the essence of my ".config":</FONT> <BR><FONT SIZE=2 FACE="Arial">> </FONT> <BR><FONT SIZE=2 FACE="Arial">> make -C scsi modules</FONT> <BR><FONT SIZE=2 FACE="Arial">> make[2]: Entering directory `/usr/src/linux223-PPS/drivers/scsi'</FONT> <BR><FONT SIZE=2 FACE="Arial">> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-</FONT> <BR><FONT SIZE=2 FACE="Arial">> pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-</FONT> <BR><FONT SIZE=2 FACE="Arial">> functions=2 -DCPU=586 -DMODULE -DMODVERSIONS -include </FONT> <BR><FONT SIZE=2 FACE="Arial">> /usr/src/linux/include/linux/modversions.h -c -o sg.o sg.c</FONT> <BR><FONT SIZE=2 FACE="Arial">> sg.c: In function `sg_ioctl':</FONT> <BR><FONT SIZE=2 FACE="Arial">> sg.c:98: `SG_EMULATED_HOST' undeclared (first use this function)</FONT> <BR><FONT SIZE=2 FACE="Arial">> sg.c:98: (Each undeclared identifier is reported only once</FONT> <BR><FONT SIZE=2 FACE="Arial">> sg.c:98: for each function it appears in.)</FONT> <BR><FONT SIZE=2 FACE="Arial">> make[2]: *** [sg.o] Error 1</FONT> </P>
<P><FONT SIZE=2 FACE="Arial">That constant is defined in include/scsi/sg.h (line 33). It has not changed, it won't</FONT> <BR><FONT SIZE=2 FACE="Arial">be changing either. Interestingly the compiler found the constants defined on lines</FONT> <BR><FONT SIZE=2 FACE="Arial">30 and 31. So your sg.h file has been truncated or, more likely, you have memory</FONT> <BR><FONT SIZE=2 FACE="Arial">problems.</FONT> </P>
<P><FONT SIZE=2 FACE="Arial">Doug Gilbert </FONT> </P>
</BODY> </HTML> | |