Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
error emerging sys-block/iscsitarget-1.4.20.2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
twomonkeysayoyo
n00b
n00b


Joined: 21 Oct 2007
Posts: 7

PostPosted: Thu Apr 26, 2012 1:37 pm    Post subject: error emerging sys-block/iscsitarget-1.4.20.2 Reply with quote

what I thought should be a pretty simple emerge breaks:

uname -a
Code:
Linux smashburn 3.2.12-gentoo #9 SMP Mon Apr 16 11:56:47 EDT 2012 x86_64 Quad-Core AMD Opteron(tm) Processor 2356 AuthenticAMD GNU/Linux


Code:

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] sys-block/iscsitarget-1.4.20.2  0 kB

Total: 1 package (1 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-block/iscsitarget-1.4.20.2
 * iscsitarget-1.4.20.2.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                                            [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.2.12-gentoo/build
 * Found sources for kernel version:
 *     3.2.12-gentoo
 * Checking for suitable kernel configuration options...                                                                                                                                  [ ok ]
>>> Unpacking source...
>>> Unpacking iscsitarget-1.4.20.2.tar.gz to /var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work
 * Applying iscsitarget-0.4.15-isns-set-scn-flag.patch ...                                                                                                                                [ ok ]
 * Applying iscsitarget-1.4.20.2-respect-flags.patch ...                                                                                                                                  [ ok ]
 * Applying iscsitarget-1.4.20.2_kernel-2.6.36.patch ...                                                                                                                                  [ ok ]
 * Converting iscsitarget-1.4.20.2/Makefile to use M= instead of SUBDIRS= ...                                                                                                             [ ok ]
>>> Source unpacked in /var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work
>>> Compiling source in /var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2 ...
make -j9 KSRC=/usr/src/linux usr
make -C usr
make[1]: Entering directory `/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/usr'
cc -march=barcelona -O2 -pipe -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE    -c -o ietd.o ietd.c
cc -march=barcelona -O2 -pipe -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE    -c -o iscsid.o iscsid.c
cc -march=barcelona -O2 -pipe -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE    -c -o conn.o conn.c
cc -march=barcelona -O2 -pipe -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE    -c -o session.o session.c
cc -march=barcelona -O2 -pipe -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE    -c -o target.o target.c
cc -march=barcelona -O2 -pipe -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE    -c -o message.o message.c
cc -march=barcelona -O2 -pipe -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE    -c -o ctldev.o ctldev.c
cc -march=barcelona -O2 -pipe -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE    -c -o log.o log.c
cc -march=barcelona -O2 -pipe -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE    -c -o chap.o chap.c
cc -march=barcelona -O2 -pipe -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE    -c -o event.o event.c
cc -march=barcelona -O2 -pipe -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE    -c -o param.o param.c
cc -march=barcelona -O2 -pipe -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE    -c -o plain.o plain.c
cc -march=barcelona -O2 -pipe -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE    -c -o isns.o isns.c
cc -march=barcelona -O2 -pipe -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE    -c -o md5.o md5.c
cc -march=barcelona -O2 -pipe -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE    -c -o sha1.o sha1.c
cc -march=barcelona -O2 -pipe -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE    -c -o ietadm.o ietadm.c
cc -Wl,-O1 -Wl,--as-needed ietadm.o param.o -o ietadm
cc -Wl,-O1 -Wl,--as-needed ietd.o iscsid.o conn.o session.o target.o message.o ctldev.o log.o chap.o event.o param.o plain.o isns.o md5.o sha1.o -o ietd
make[1]: Leaving directory `/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/usr'
make -j9 KSRC=/usr/src/linux kernel
make -C /usr/src/linux M=/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel modules
make[1]: Entering directory `/usr/src/linux-3.2.12-gentoo'
  CC [M]  /var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/tio.o
  CC [M]  /var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/iscsi.o
  CC [M]  /var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/nthread.o
  CC [M]  /var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/wthread.o
  CC [M]  /var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/config.o
  CC [M]  /var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/conn.o
  CC [M]  /var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/session.o
  CC [M]  /var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/digest.o
  CC [M]  /var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.o
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/config.c:12:8: warning: type defaults to 'int' in declaration of 'DECLARE_MUTEX'
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/config.c:12:1: warning: parameter names (without types) in function declaration
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/wthread.c: In function 'worker_thread':/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/config.c: In function 'ioctl':
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/config.c:261:28: error: 'ioctl_sem' undeclared (first use in this function)
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/config.c:261:28: note: each undeclared identifier is reported only once for each function it appears in

/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/wthread.c:75:3: error: implicit declaration of function 'copy_io_context'
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/config.c: In function 'release':
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/config.c:350:8: error: 'ioctl_sem' undeclared (first use in this function)
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/config.c: At top level:
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/config.c:358:12: error: 'THIS_MODULE' undeclared here (not in a function)
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/session.c:175:12: error: 'THIS_MODULE' undeclared here (not in a function)
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/config.c:12:8: warning: 'DECLARE_MUTEX' declared 'static' but never defined
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c:14:8: warning: type defaults to 'int' in declaration of 'DECLARE_MUTEX'
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c:14:1: warning: parameter names (without types) in function declaration
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c: In function 'target_lookup_by_id':
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c:89:8: error: 'target_list_sem' undeclared (first use in this function)
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c:89:8: note: each undeclared identifier is reported only once for each function it appears in
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c: In function 'iscsi_target_create':
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c:134:2: error: implicit declaration of function 'try_module_get'
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c:134:22: error: 'THIS_MODULE' undeclared (first use in this function)
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c:160:2: error: implicit declaration of function 'init_MUTEX'
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c:188:2: error: implicit declaration of function 'module_put'
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c: In function 'target_add':
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c:198:28: error: 'target_list_sem' undeclared (first use in this function)
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c: In function 'target_destroy':
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c:248:13: error: 'THIS_MODULE' undeclared (first use in this function)
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c: In function 'target_del':
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c:286:28: error: 'target_list_sem' undeclared (first use in this function)
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c: In function 'target_del_all':
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c:308:8: error: 'target_list_sem' undeclared (first use in this function)
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c: In function 'iet_seq_start':
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c:330:28: error: 'target_list_sem' undeclared (first use in this function)
make[2]: *** [/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/config.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c: In function 'iet_seq_stop':
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c:344:6: error: 'target_list_sem' undeclared (first use in this function)
make[2]: *** [/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/session.o] Error 1
make[2]: *** [/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/wthread.o] Error 1
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c: At top level:
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.c:14:8: warning: 'DECLARE_MUTEX' declared 'static' but never defined
make[2]: *** [/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/target.o] Error 1
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/conn.c: In function 'conn_info_show':
/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel/conn.c:47:6: warning: format '%p' expects type 'void *', but argument 4 has type '__be32'
make[1]: *** [_module_/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-3.2.12-gentoo'
make: *** [kernel] Error 2
emake failed
 * ERROR: sys-block/iscsitarget-1.4.20.2 failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 3181:  Called die
 * The specific snippet of code:
 *       emake KSRC="${KERNEL_DIR}" kernel || die
 *
 * If you need support, post the output of 'emerge --info =sys-block/iscsitarget-1.4.20.2',
 * the complete build log and the output of 'emerge -pqv =sys-block/iscsitarget-1.4.20.2'.
 * The complete build log is located at '/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/temp/environment'.
 * S: '/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2'

>>> Failed to emerge sys-block/iscsitarget-1.4.20.2, Log file:

>>>  '/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/temp/build.log'

 * Messages for package sys-block/iscsitarget-1.4.20.2:

 * ERROR: sys-block/iscsitarget-1.4.20.2 failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 3181:  Called die
 * The specific snippet of code:
 *       emake KSRC="${KERNEL_DIR}" kernel || die
 *
 * If you need support, post the output of 'emerge --info =sys-block/iscsitarget-1.4.20.2',
 * the complete build log and the output of 'emerge -pqv =sys-block/iscsitarget-1.4.20.2'.
 * The complete build log is located at '/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/temp/environment'.
 * S: '/var/tmp/portage/sys-block/iscsitarget-1.4.20.2/work/iscsitarget-1.4.20.2'

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


Any ideas?
Back to top
View user's profile Send private message
VoVaN
l33t
l33t


Joined: 02 Jul 2003
Posts: 666
Location: The Netherlands

PostPosted: Thu May 03, 2012 10:20 am    Post subject: Reply with quote

Tip: Search before posting!
http://forums.gentoo.org/viewtopic-p-7028504.html#7028504
Back to top
View user's profile Send private message
twomonkeysayoyo
n00b
n00b


Joined: 21 Oct 2007
Posts: 7

PostPosted: Mon Jun 04, 2012 3:25 pm    Post subject: Reply with quote

I read this, but it is not my error, is it?

I do not have the
Code:
iscsitarget/trunk/kernel/wthread.c: In function ‘worker_thread’:
iscsitarget/trunk/kernel/wthread.c:74:3: error: implicit declaration of function ‘get_task_io_context’
iscsitarget/trunk/kernel/wthread.c:74:21: warning: assignment makes pointer from integer without a cast
make[2]: *** [iscsitarget/trunk/kernel/wthread.o] Error 1
make[1]: *** [_module_/home/wltsang/iscsitarget/trunk/kernel] Error 2


error at all. Also changing as advised the iet_u.h made no difference.
Back to top
View user's profile Send private message
direwolf
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2003
Posts: 90
Location: Richmond, VA

PostPosted: Thu Jul 12, 2012 4:58 am    Post subject: Reply with quote

Your second error is the same as mine. Upstream claims that they have a fix for version 1.4.20.3 -

http://sourceforge.net/mailarchive/forum.php?thread_name=BAY157-w51C799D3C8242E210B7E7ED4ED0%40phx.gbl&forum_name=iscsitarget-devel

But ... that was February of 2011 of last year, and the current stable release is still 1.4.20.2.

The only thing I've found that works is to check out revision 467 from SVN, and apply this patch: http://sourceforge.net/tracker/?func=detail&aid=3506545&group_id=108475&atid=650593

dire
_________________
========================================================
"Somebody has to do something, and it's just incredibly pathetic that it has to be us."
- Jerry Garcia
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum