lkml.org 
[lkml]   [1999]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: FYI (me too!): compilation error in 2.2.3/scsi/sg.c
Date
<!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">&gt; Hello,</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; Linux 2.2.3 fails to compile sg.c correctly! Probably hundreds have already reported </FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; this, but anyway, here's the message and the essence of my &quot;.config&quot;:</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; </FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; make -C scsi modules</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; make[2]: Entering directory `/usr/src/linux223-PPS/drivers/scsi'</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; functions=2 -DCPU=586 -DMODULE -DMODVERSIONS -include </FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; /usr/src/linux/include/linux/modversions.h&nbsp;&nbsp; -c -o sg.o sg.c</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; sg.c: In function `sg_ioctl':</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; sg.c:98: `SG_EMULATED_HOST' undeclared (first use this function)</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; sg.c:98: (Each undeclared identifier is reported only once</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; sg.c:98: for each function it appears in.)</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; 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>
\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.349 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site