Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 475634 - app-emulation/xen-tools-4.2.2-r3 USE="qemu hvm" with net-libs/libiscsi-1.9.0-r1 - .../work/xen-4.2.2/tools/qemu-xen/block/iscsi.c:230:31: error: too few arguments to function ‘iscsi_write10_task’ /usr/include/iscsi/iscsi.h:676:1: note: declared here
Summary: app-emulation/xen-tools-4.2.2-r3 USE="qemu hvm" with net-libs/libiscsi-1.9.0-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ian Delaney (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-03 14:35 UTC by ron widler
Modified: 2013-07-21 16:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xen-tools-4.2.2-r3 build log (build.log,353.70 KB, text/plain)
2013-07-03 14:36 UTC, ron widler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ron widler 2013-07-03 14:35:12 UTC
compilation of xen-tools-4.2.2-r3 failes when libiscsi is installed on the system.
xen-tools seems to bring it's own iscsi.h header files, but uses the ones of libiscsi (/usr/include/iscsi/iscsi.h) at compilation time.

workarounds: 
1) uninstall libiscsi, emerge xen-tools
2) USE='-qemu -hvm' emerge xen-tools




Reproducible: Always

Steps to Reproduce:
1. have libiscsi installed
2. emerge xen-tools-4.2.2-r3
3.
Actual Results:  
from the build log:

  CC    block/iscsi.o
/var/tmp/portage/app-emulation/xen-tools-4.2.2-r3/work/xen-4.2.2/tools/qemu-xen/block/iscsi.c: In function ‘iscsi_aio_cancel’:
/var/tmp/portage/app-emulation/xen-tools-4.2.2-r3/work/xen-4.2.2/tools/qemu-xen/block/iscsi.c:84:5: warning: implicit declaration of function ‘iscsi_scsi_task_cancel’ [-Wimplicit-function-declaration]
/var/tmp/portage/app-emulation/xen-tools-4.2.2-r3/work/xen-4.2.2/tools/qemu-xen/block/iscsi.c:84:5: warning: nested extern declaration of ‘iscsi_scsi_task_cancel’ [-Wnested-externs]
/var/tmp/portage/app-emulation/xen-tools-4.2.2-r3/work/xen-4.2.2/tools/qemu-xen/block/iscsi.c: In function ‘iscsi_aio_writev’:
/var/tmp/portage/app-emulation/xen-tools-4.2.2-r3/work/xen-4.2.2/tools/qemu-xen/block/iscsi.c:230:31: warning: passing argument 3 of ‘iscsi_write10_task’ makes integer from pointer without a cast [enabled by default]
/usr/include/iscsi/iscsi.h:676:1: note: expected ‘uint32_t’ but argument is of type ‘uint8_t *’
/var/tmp/portage/app-emulation/xen-tools-4.2.2-r3/work/xen-4.2.2/tools/qemu-xen/block/iscsi.c:230:31: warning: passing argument 4 of ‘iscsi_write10_task’ makes pointer from integer without a cast [enabled by default]
/usr/include/iscsi/iscsi.h:676:1: note: expected ‘unsigned char *’ but argument is of type ‘size_t’
/var/tmp/portage/app-emulation/xen-tools-4.2.2-r3/work/xen-4.2.2/tools/qemu-xen/block/iscsi.c:230:31: warning: passing argument 9 of ‘iscsi_write10_task’ makes integer from pointer without a cast [enabled by default]
/usr/include/iscsi/iscsi.h:676:1: note: expected ‘int’ but argument is of type ‘void (*)(struct iscsi_context *, int,  void *, void *)’
/var/tmp/portage/app-emulation/xen-tools-4.2.2-r3/work/xen-4.2.2/tools/qemu-xen/block/iscsi.c:230:31: warning: passing argument 10 of ‘iscsi_write10_task’ makes integer from pointer without a cast [enabled by default]
/usr/include/iscsi/iscsi.h:676:1: note: expected ‘int’ but argument is of type ‘struct IscsiAIOCB *’
/var/tmp/portage/app-emulation/xen-tools-4.2.2-r3/work/xen-4.2.2/tools/qemu-xen/block/iscsi.c:230:31: error: too few arguments to function ‘iscsi_write10_task’
/usr/include/iscsi/iscsi.h:676:1: note: declared here
/var/tmp/portage/app-emulation/xen-tools-4.2.2-r3/work/xen-4.2.2/tools/qemu-xen/block/iscsi.c: In function ‘iscsi_aio_readv’:
/var/tmp/portage/app-emulation/xen-tools-4.2.2-r3/work/xen-4.2.2/tools/qemu-xen/block/iscsi.c:312:30: warning: passing argument 6 of ‘iscsi_read10_task’ makes integer from pointer without a cast [enabled by default]
/usr/include/iscsi/iscsi.h:671:1: note: expected ‘int’ but argument is of type ‘void (*)(struct iscsi_context *, int,  void *, void *)’
/var/tmp/portage/app-emulation/xen-tools-4.2.2-r3/work/xen-4.2.2/tools/qemu-xen/block/iscsi.c:312:30: warning: passing argument 7 of ‘iscsi_read10_task’ makes integer from pointer without a cast [enabled by default]
/usr/include/iscsi/iscsi.h:671:1: note: expected ‘int’ but argument is of type ‘struct IscsiAIOCB *’
/var/tmp/portage/app-emulation/xen-tools-4.2.2-r3/work/xen-4.2.2/tools/qemu-xen/block/iscsi.c:312:30: error: too few arguments to function ‘iscsi_read10_task’
/usr/include/iscsi/iscsi.h:671:1: note: declared here
make[2]: *** [block/iscsi.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-4.2.2-r3/work/xen-4.2.2/tools/qemu-xen-dir'
make[1]: *** [subdir-all-qemu-xen-dir] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-4.2.2-r3/work/xen-4.2.2/tools'
make: *** [subdirs-all] Error 2
make: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-4.2.2-r3/work/xen-4.2.2/tools'
 * ERROR: app-emulation/xen-tools-4.2.2-r3 failed (compile phase):
 *   emake failed

Expected Results:  
xen-tools should get emerged

Portage 2.1.12.11 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.17, 3.9.8-gentoo-xen x86_64)
=================================================================
System uname: Linux-3.9.8-gentoo-xen-x86_64-AMD_Phenom-tm-_II_X4_955_Processor-with-gentoo-2.2
KiB Mem:     8183060 total,    371876 free
KiB Swap:    8388604 total,   7828072 free
Timestamp of tree: Wed, 03 Jul 2013 13:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5, 3.2.5-r1, 3.3.2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.14
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.4.7, 4.6.3, 4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo zugaina write2David vmware sunrise proaudio perl-experimental pd-overlay gentoo-zh hasufell dustin steam-overlay local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/tomoyo/conf /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://gentoo.lagis.at/ ftp://212.219.56.138/sites/www.ibiblio.org/gentoo/ rsync://212.219.56.153/www.ibiblio.org/gentoo/ http://123.58.173.106/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/zugaina /var/lib/layman/write2David /var/lib/layman/vmware /var/lib/layman/sunrise /var/lib/layman/pro-audio /var/lib/layman/perl-experimental /var/lib/layman/pd-overlay /var/lib/layman/gentoo-zh /var/lib/layman/hasufell /var/lib/layman/dustin /var/lib/layman/steam /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi ada addns admin ads alsa amd64 amr apache2 api apm apng applet archive artworkextra audiofile auth avahi bash-completion berkdb bidi binfilter bluetooth branding btrfs bzip2 cairo calendar call capi caps cdda cddb cdio cdr cgi cjk cli client clucene clutter consolekit context coverage coverart cracklib cron crypt cups curl cvs cxx dbi dbus ddate detex device-mapper dhcpcd dia dirac djvu dlz dmraid dmx dri dts dv dvb dvd dvdr dvi2tty dvipdfm eclipse editor emboss encode epspdf equalizer eve examples exif expat expoblending extra-tools extraengine faac fam fastcgi fat fbcondecor fftw filter-aaaa firefox flac flash fluidsynth fontconfig fortran freesound frei0r ftp fuse gadu gajim galago gcdmaster gcrypt gd gdbm geoip ggi ggz gif gimp git glchess gmail gnome-online-accounts gnuplot gpac gpg gphoto2 gpm graphics graphviz groupwise gs gsf gsm gssapi gstreamer gtk gtk3 guile hddtemp hfs highlight html humanities hvm i18n iconv icq icu id3 id3tag idle idn imagemagick imlib inkjar iodbc ioemu iostats iplayer iptables ipv6 irc irda iscsi ithreads jabber jack jadetex java javascript jbig jfs jingle joystick jpeg jpeg2k kdrive kerberos kvm ladcca ladspa lame lash lasi lcms ldap led libcaca libcanberra liblockfile libnotify libsamplerate libssh2 libv4l2 libvirtd libvisual lirc listen-queue live lm_sensors log4j logrotate logwatch luatex lv2 lvm lvm2 lzma lzo mad map math matroska md5sum mdadm mdb meanwhile mem-scramble mercurial metis mhash midi mikmod mime minizip mixer mjpeg mms mmx mmxext mng moc modplug modules mono mousewarp mp3 mp4 mpd mpeg mpg123 msn mtp mudflap multilib multimedia musicbrainz mxdatetime mxit mysql mysqli nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh nas natspec nautilus ncurses network networking nforce2 nfs nls nntp nokia nptl ntfs nvcontrol nvidia ocr odbc offensive ogg ogm omega openal openexr opengl openldap openmp openntpd pae pam pango panorama parted pcap pch pcre pda pdf pdfannotextractor pdfimport perl perl-geoipupdate physfs pidgin pinentry pink playlist plotutils plugins pmu png pnm policykit postgres postproc postscript ppds prediction projectm pstricks publishers pulseaudio pygrub python qemu qq qt3support qt4 quota radio rar raw readline realtime redeyes reiser4 reiserfs rle rrdcgi rss rtmp ruby samba sasl scanner science sdl sdl-image sdl-sound sdlaudio search-index seed sendto session shm shout sid silc sip skins slang smi smime smp sndfile snmp socks5 sox spamassassin speex spell spice sql sqlite sqlite3 srt sse sse2 sse4a ssh ssl startup-notification stream subversion svg swat taglib tcl tcpd tcpreplay templates tex4ht textures tftp tga theora thin-splines threads thumbnail thunar tidy tiff tk toolame toolbar tools trayicon truetype udev udisks umfpack unicode upower ups urandom usb usbredir utils v4l v4l2 vaapi vala vboxwebsrv vcd vcdx vim vim-pager vim-syntax virt-network virtfs virtualbox visibility visual vnc vorbis wad waveout wavpack weather-xoap webkit wifi wiimote wireshark wma wma-fixed wmf wxwidgets x264 xa xanim xattr xcb xcomposite xen xetex xface xforward xfs xhtml xindy xinerama xml xorg xpm xterm xterm-color xv xvid xvmc yahoo youtube yv12 zephyr zfs zip zlib zoran" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2 adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a jl2005c kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z template topfield toshiba_pdrm11" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de de_AT de_DE zh zh_TW zh_CN en en_GB en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="x86_64 arm i386" QEMU_USER_TARGETS="arm armeb i386 x86_64" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="dummy fbdev nv v4l vesa nouveau sis nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 ron widler 2013-07-03 14:36:06 UTC
Created attachment 352526 [details]
xen-tools-4.2.2-r3 build log
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2013-07-21 16:10:24 UTC
hmm; basically libiscsi is an antagonist package.

  21 Jul 2013; Ian Delaney <idella4@gentoo.org>
  files/xen-4-fix_dotconfig-gcc.patch, files/xen-4.2.0-anti-download.patch,
  xen-tools-4.2.2-r4.ebuild, xen-tools-4.3.0.ebuild:
  Rm antiquated line from elog, add antagonist dep behind IUSE hvm, fixes Bug
  #475634