[Stgt-devel] (Still) STGT compile error on FC5 Kernel 2.6.16
Rehmann Oliver
oliver.rehmann at atosorigin.com
Thu Jun 15 19:10:10 CEST 2006
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_01C6909D.BC0685A8
Content-Type: text/plain
Hello
I just tried to compile STGT to check wether the nasty compile bug is still
there or not. It seems it is :-)
The compiler bails out complaining about some kernel header files included
in userspace ...
This error exists since I can remember of STGT.
Can this be fixed please ? And don't tell me that I have to use a newer
kernel 2.6.17 for this *smile*
I was already told so when I reported this at 2.6.15; so it must be
something general.
*** Compiler Output from BUILD 487 ***
make -C istgt
make[1]: Entering directory `/user1/software/STGT/trunk/istgt'
make -C usr
make[2]: Entering directory `/user1/software/STGT/trunk/istgt/usr'
cc -O2 -fno-inline -Wall -fPIC -Wstrict-prototypes
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include -I../../include
-I../../usr -c -o istgt.o istgt.c
cc -O2 -fno-inline -Wall -fPIC -Wstrict-prototypes
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include -I../../include
-I../../usr -c -o conn.o conn.c
cc -O2 -fno-inline -Wall -fPIC -Wstrict-prototypes
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include -I../../include
-I../../usr -c -o param.o param.c
cc -O2 -fno-inline -Wall -fPIC -Wstrict-prototypes
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include -I../../include
-I../../usr -c -o iscsid.o iscsid.c
cc -O2 -fno-inline -Wall -fPIC -Wstrict-prototypes
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include -I../../include
-I../../usr -c -o session.o session.c
cc -O2 -fno-inline -Wall -fPIC -Wstrict-prototypes
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include -I../../include
-I../../usr -c -o target.o target.c
cc -O2 -fno-inline -Wall -fPIC -Wstrict-prototypes
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include -I../../include
-I../../usr -c -o chap.o chap.c
cc -O2 -fno-inline -Wall -fPIC -Wstrict-prototypes
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include -I../../include
-I../../usr -c -o ctldev.o ctldev.c
cc -shared -o istgt.so istgt.o conn.o param.o iscsid.o session.o target.o
chap.o ctldev.o
make[2]: Leaving directory `/user1/software/STGT/trunk/istgt/usr'
make -C /lib/modules/2.6.16-1.2133_FC5/build
SUBDIRS=/user1/software/STGT/trunk/istgt/kernel modules
make[2]: Entering directory `/usr/src/kernels/2.6.16-1.2133_FC5-i686'
CC [M] /user1/software/STGT/trunk/istgt/kernel/iscsi.o
CC [M] /user1/software/STGT/trunk/istgt/kernel/nthread.o
CC [M] /user1/software/STGT/trunk/istgt/kernel/config.o
CC [M] /user1/software/STGT/trunk/istgt/kernel/digest.o
CC [M] /user1/software/STGT/trunk/istgt/kernel/conn.o
CC [M] /user1/software/STGT/trunk/istgt/kernel/session.o
CC [M] /user1/software/STGT/trunk/istgt/kernel/param.o
LD [M] /user1/software/STGT/trunk/istgt/kernel/istgt.o
Building modules, stage 2.
MODPOST
*** Warning: "tgt_cmd_create"
[/user1/software/STGT/trunk/istgt/kernel/istgt.ko] undefined!
*** Warning: "tgt_msg_send"
[/user1/software/STGT/trunk/istgt/kernel/istgt.ko] undefined!
*** Warning: "tgt_target_template_unregister"
[/user1/software/STGT/trunk/istgt/kernel/istgt.ko] undefined!
*** Warning: "tgt_session_destroy"
[/user1/software/STGT/trunk/istgt/kernel/istgt.ko] undefined!
*** Warning: "tgt_target_template_register"
[/user1/software/STGT/trunk/istgt/kernel/istgt.ko] undefined!
*** Warning: "tgt_session_create"
[/user1/software/STGT/trunk/istgt/kernel/istgt.ko] undefined!
CC /user1/software/STGT/trunk/istgt/kernel/istgt.mod.o
LD [M] /user1/software/STGT/trunk/istgt/kernel/istgt.ko
make[2]: Leaving directory `/usr/src/kernels/2.6.16-1.2133_FC5-i686'
make[1]: Leaving directory `/user1/software/STGT/trunk/istgt'
make -C usr
make[1]: Entering directory `/user1/software/STGT/trunk/usr'
cc -O2 -fno-inline -Wall -Wstrict-prototypes -fPIC
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include -DNETLINK_TGT=20
-c -o tgtd.o tgtd.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -fPIC
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include -DNETLINK_TGT=20
-c -o netlink.o netlink.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -fPIC
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include -DNETLINK_TGT=20
-c -o ipc.o ipc.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -fPIC
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include -DNETLINK_TGT=20
-c -o dl.o dl.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -fPIC
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include -DNETLINK_TGT=20
-c -o mgmt.o mgmt.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -fPIC
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include -DNETLINK_TGT=20
-c -o target.o target.c
In file included from
/lib/modules/2.6.16-1.2133_FC5/build/include/linux/fs.h:9,
from target.c:24:
/lib/modules/2.6.16-1.2133_FC5/build/include/linux/config.h:8:2: error:
#error including kernel header in userspace; use the glibc headers instead!
make[1]: *** [target.o] Error 1
make[1]: Leaving directory `/user1/software/STGT/trunk/usr'
make: *** [all] Error 2
Regards,
Oliver Rehmann
Manager IT
Atos Origin Telecom Schweiz AG
Binzmuehlestr. 95
8050 Zurich
Switzerland
Phone +41 44 308 9515
Fax +41 44 308 9599
oliver.rehmann at atosorigin.com
www.atosorigin.com <www.atosorigin.com>
This e-mail and the documents attached are confidential and intended solely
for the addressee; it may also be privileged. If you receive this e-mail
in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin group
liability cannot be triggered for the message content. Although the
sender endeavours to maintain a computer virus-free network, the sender does
not
warrant that this transmission is virus-free and will not be liable for
any damages resulting from any virus transmitted.
------_=_NextPart_001_01C6909D.BC0685A8
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2657.73">
<TITLE>(Still) STGT compile error on FC5 Kernel 2.6.16</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2 FACE=3D"Arial">Hello</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">I just tried to compile STGT to check =
wether the nasty compile bug is still there or not. It seems it is =
:-)<BR>
The compiler bails out complaining about some kernel header files =
included in userspace ...</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">This error exists since I can =
remember of STGT.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">Can this be fixed please ? And don't =
tell me that I have to use a newer kernel 2.6.17 for this *smile*<BR>
I was already told so when I reported this at 2.6.15; so it must be =
something general.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">*** Compiler Output from BUILD 487 =
***</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">make -C istgt</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">make[1]: Entering directory =
`/user1/software/STGT/trunk/istgt'</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">make -C usr</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">make[2]: Entering directory =
`/user1/software/STGT/trunk/istgt/usr'</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">cc -O2 -fno-inline -Wall -fPIC =
-Wstrict-prototypes -I/lib/modules/2.6.16-1.2133_FC5/build/include =
-I../include -I../../include -I../../usr -c -o istgt.o =
istgt.c</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">cc -O2 -fno-inline -Wall -fPIC =
-Wstrict-prototypes -I/lib/modules/2.6.16-1.2133_FC5/build/include =
-I../include -I../../include -I../../usr -c -o conn.o =
conn.c</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">cc -O2 -fno-inline -Wall -fPIC =
-Wstrict-prototypes -I/lib/modules/2.6.16-1.2133_FC5/build/include =
-I../include -I../../include -I../../usr -c -o param.o =
param.c</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">cc -O2 -fno-inline -Wall -fPIC =
-Wstrict-prototypes -I/lib/modules/2.6.16-1.2133_FC5/build/include =
-I../include -I../../include -I../../usr -c -o iscsid.o =
iscsid.c</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">cc -O2 -fno-inline -Wall -fPIC =
-Wstrict-prototypes -I/lib/modules/2.6.16-1.2133_FC5/build/include =
-I../include -I../../include -I../../usr -c -o session.o =
session.c</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">cc -O2 -fno-inline -Wall -fPIC =
-Wstrict-prototypes -I/lib/modules/2.6.16-1.2133_FC5/build/include =
-I../include -I../../include -I../../usr -c -o target.o =
target.c</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">cc -O2 -fno-inline -Wall -fPIC =
-Wstrict-prototypes -I/lib/modules/2.6.16-1.2133_FC5/build/include =
-I../include -I../../include -I../../usr -c -o chap.o =
chap.c</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">cc -O2 -fno-inline -Wall -fPIC =
-Wstrict-prototypes -I/lib/modules/2.6.16-1.2133_FC5/build/include =
-I../include -I../../include -I../../usr -c -o ctldev.o =
ctldev.c</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">cc -shared -o istgt.so istgt.o conn.o =
param.o iscsid.o session.o target.o chap.o ctldev.o</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">make[2]: Leaving directory =
`/user1/software/STGT/trunk/istgt/usr'</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">make -C =
/lib/modules/2.6.16-1.2133_FC5/build =
SUBDIRS=3D/user1/software/STGT/trunk/istgt/kernel modules</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">make[2]: Entering directory =
`/usr/src/kernels/2.6.16-1.2133_FC5-i686'</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> CC [M] =
/user1/software/STGT/trunk/istgt/kernel/iscsi.o</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> CC [M] =
/user1/software/STGT/trunk/istgt/kernel/nthread.o</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> CC [M] =
/user1/software/STGT/trunk/istgt/kernel/config.o</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> CC [M] =
/user1/software/STGT/trunk/istgt/kernel/digest.o</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> CC [M] =
/user1/software/STGT/trunk/istgt/kernel/conn.o</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> CC [M] =
/user1/software/STGT/trunk/istgt/kernel/session.o</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> CC [M] =
/user1/software/STGT/trunk/istgt/kernel/param.o</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> LD [M] =
/user1/software/STGT/trunk/istgt/kernel/istgt.o</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> Building modules, stage =
2.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> MODPOST</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">*** Warning: =
"tgt_cmd_create" =
[/user1/software/STGT/trunk/istgt/kernel/istgt.ko] undefined!</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">*** Warning: "tgt_msg_send" =
[/user1/software/STGT/trunk/istgt/kernel/istgt.ko] undefined!</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">*** Warning: =
"tgt_target_template_unregister" =
[/user1/software/STGT/trunk/istgt/kernel/istgt.ko] undefined!</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">*** Warning: =
"tgt_session_destroy" =
[/user1/software/STGT/trunk/istgt/kernel/istgt.ko] undefined!</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">*** Warning: =
"tgt_target_template_register" =
[/user1/software/STGT/trunk/istgt/kernel/istgt.ko] undefined!</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">*** Warning: =
"tgt_session_create" =
[/user1/software/STGT/trunk/istgt/kernel/istgt.ko] undefined!</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
CC =
/user1/software/STGT/trunk/istgt/kernel/istgt.mod.o</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> LD [M] =
/user1/software/STGT/trunk/istgt/kernel/istgt.ko</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">make[2]: Leaving directory =
`/usr/src/kernels/2.6.16-1.2133_FC5-i686'</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">make[1]: Leaving directory =
`/user1/software/STGT/trunk/istgt'</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">make -C usr</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">make[1]: Entering directory =
`/user1/software/STGT/trunk/usr'</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">cc -O2 -fno-inline -Wall =
-Wstrict-prototypes -fPIC =
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include =
-DNETLINK_TGT=3D20 -c -o tgtd.o tgtd.c</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">cc -O2 -fno-inline -Wall =
-Wstrict-prototypes -fPIC =
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include =
-DNETLINK_TGT=3D20 -c -o netlink.o netlink.c</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">cc -O2 -fno-inline -Wall =
-Wstrict-prototypes -fPIC =
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include =
-DNETLINK_TGT=3D20 -c -o ipc.o ipc.c</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">cc -O2 -fno-inline -Wall =
-Wstrict-prototypes -fPIC =
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include =
-DNETLINK_TGT=3D20 -c -o dl.o dl.c</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">cc -O2 -fno-inline -Wall =
-Wstrict-prototypes -fPIC =
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include =
-DNETLINK_TGT=3D20 -c -o mgmt.o mgmt.c</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">cc -O2 -fno-inline -Wall =
-Wstrict-prototypes -fPIC =
-I/lib/modules/2.6.16-1.2133_FC5/build/include -I../include =
-DNETLINK_TGT=3D20 -c -o target.o target.c</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">In file included from =
/lib/modules/2.6.16-1.2133_FC5/build/include/linux/fs.h:9,</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> &nb=
sp; from target.c:24:</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">/lib/modules/2.6.16-1.2133_FC5/build/include/linux/config=
.h:8:2: error: #error including kernel header in userspace; use the =
glibc headers instead!</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">make[1]: *** [target.o] Error 1</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">make[1]: Leaving directory =
`/user1/software/STGT/trunk/usr'</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">make: *** [all] Error 2</FONT>
</P>
<BR>
<P><FONT SIZE=3D2 FACE=3D"Arial">Regards,</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">Oliver Rehmann</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Manager IT</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Atos Origin Telecom Schweiz AG</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Binzmuehlestr. 95</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">8050 Zurich</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Switzerland</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Phone +41 44 308 9515</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Fax +41 44 308 9599</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">oliver.rehmann at atosorigin.com</FONT>
<BR><A HREF=3D"www.atosorigin.com"><U><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">www.atosorigin.com</FONT></U></A>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">This e-mail and the documents attached =
are confidential and intended solely<BR>
for the addressee; it may also be privileged. If you receive this =
e-mail<BR>
in error, please notify the sender immediately and destroy it.<BR>
As its integrity cannot be secured on the Internet, the Atos Origin =
group<BR>
liability cannot be triggered for the message content. Although the<BR>
sender endeavours to maintain a computer virus-free network, the sender =
does not</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">warrant that this transmission is =
virus-free and will not be liable for<BR>
any damages resulting from any virus transmitted.</FONT>
</P>
<BR>
<BR>
</BODY>
</HTML>
------_=_NextPart_001_01C6909D.BC0685A8--
More information about the stgt
mailing list