Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368567 - sys-block/open-iscsi-2.0.871-r1 - iscsi_sysfs.c:(.text+0x1037): undefined reference to `S_ISLNK'
Summary: sys-block/open-iscsi-2.0.871-r1 - iscsi_sysfs.c:(.text+0x1037): undefined ref...
Status: RESOLVED DUPLICATE of bug 334077
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mike Doty (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-24 10:23 UTC by Fabrice Aneche
Modified: 2011-06-08 13:58 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabrice Aneche 2011-05-24 10:23:32 UTC
cc  -march=core2 -mtune=generic -O2 -pipe -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE -Wl,--as-needed -o iscsid util.o io.o auth.o login.o log.o md5.o sha1.o iface.o idbm.o sysfs.o host.o session_info.o iscsi_sysfs.o ../utils/sysdeps/sysdeps.o netlink.o initiator.o scsi.o actor.o event_poll.o mgmt_ipc.o isns.o cxgb3i.o transport.o iscsid.o
cc  -march=core2 -mtune=generic -O2 -pipe -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE -Wl,--as-needed -o iscsistart netlink.o util.o io.o auth.o login.o log.o md5.o sha1.o iface.o idbm.o sysfs.o host.o session_info.o iscsi_sysfs.o ../utils/sysdeps/sysdeps.o initiator.o scsi.o actor.o event_poll.o mgmt_ipc.o isns.o cxgb3i.o transport.o ../utils/fwparam_ibft/fw_entry.o ../utils/fwparam_ibft/fwparam_ibft_sysfs.o ../utils/fwparam_ibft/fwparam_ppc.o ../utils/fwparam_ibft/prom_lex.o ../utils/fwparam_ibft/prom_parse.tab.o iscsistart.o statics.o
iscsi_sysfs.o: In function `iscsi_sysfs_get_blockdev_from_lun':
iscsi_sysfs.c:(.text+0x1037): undefined reference to `S_ISLNK'
iscsi_sysfs.c:(.text+0x1094): undefined reference to `S_ISDIR'
iscsi_sysfs.o: In function `iscsi_sysfs_get_sid_from_path':
iscsi_sysfs.c:(.text+0x193a): undefined reference to `S_ISDIR'
iscsi_sysfs.c:(.text+0x1a18): undefined reference to `S_ISLNK'
collect2: ld returned 1 exit status
make[1]: *** [iscsid] Error 1
make[1]: *** Waiting for unfinished jobs....
iscsi_sysfs.o: In function `iscsi_sysfs_get_blockdev_from_lun':
iscsi_sysfs.c:(.text+0x1037): undefined reference to `S_ISLNK'
iscsi_sysfs.c:(.text+0x1094): undefined reference to `S_ISDIR'
iscsi_sysfs.o: In function `iscsi_sysfs_get_sid_from_path':
iscsi_sysfs.c:(.text+0x193a): undefined reference to `S_ISDIR'
iscsi_sysfs.c:(.text+0x1a18): undefined reference to `S_ISLNK'
collect2: ld returned 1 exit status
make[1]: *** [iscsistart] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-block/open-iscsi-2.0.871-r1/work/open-iscsi-2.0-871/usr'
make: *** [user] Error 2
emake failed
 * ERROR: sys-block/open-iscsi-2.0.871-r1 failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 3341:  Called die
 * The specific snippet of code:
 *       cd "${S}" && CFLAGS="" emake OPTFLAGS="${CFLAGS}" user || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =sys-block/open-iscsi-2.0.871-r1',
 * the complete build log and the output of 'emerge -pqv =sys-block/open-iscsi-2.0.871-r1'.
 * The complete build log is located at '/var/tmp/portage/sys-block/open-iscsi-2.0.871-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-block/open-iscsi-2.0.871-r1/temp/environment'.
 * S: '/var/tmp/portage/sys-block/open-iscsi-2.0.871-r1/work/open-iscsi-2.0-871'


Portage 2.1.9.42 (default/linux/amd64/10.0, gcc-4.4.5, libc-0-r0, 2.6.37-gentoo-r4 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.37-gentoo-r4-x86_64-Intel-R-_Xeon-R-_CPU_L3426_@_1.87GHz-with-gentoo-2.0.2
Timestamp of tree: Tue, 24 May 2011 05:15:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.12.2
virtual/os-headers:  0
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://gentoo.modulix.net/gentoo/ http://91.121.124.139/gentoo-distfiles/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ ftp://mirrors.linuxant.fr/distfiles.gentoo.org/"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en fr"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="acl amd64 bash-completion berkdb bzip2 cli cracklib crypt cscope cups curl cxx device-mapper dri fortran fr gcrypt gd gdbm geos gpm headless iconv imap iproute2 ipv6 iscsi jpeg libffi lvm mmx modules mudflap multilib ncurses nfs nls nptl nptlonly objc objc++ objc-gc openmp openvz pam parted pcre pg_legacytimestamp png postgres pppd proj python qemu qemu-ifup rdesktop-vrdp readline sasl server session silvercity simplexml smi sqlite sqlite3 sse sse2 ssl ssse3 status subversion sysfs tcpd threads truetype udev unicode urandom uuid vboxwebsrv vchroot vde virt-network xml xorg zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr" NGINX_MODULES_HTTP="limit_req access autoindex auth_basic browser charset gzip headers_more passenger proxy rewrite stub_status uwsgi" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Reproducible: Always

Steps to Reproduce:
1. emerge --oneshot sys-block/open-iscsi    
Actual Results:  
failed compilation

Expected Results:  
working compilation

It can be solved by applying the glibc212 patch

diff /usr/portage/sys-block/open-iscsi/open-iscsi-2.0.871-r1.ebuild  open-iscsi-2.0.871-r1.ebuild
45a46
>     epatch "${FILESDIR}"/${P}.3-glibc212.patch
Comment 1 Sergey Belyashov 2011-06-08 13:41:20 UTC
fully confirm problem.

$ emerge --info
Portage 2.1.9.42 (default/linux/amd64/10.0, gcc-4.4.5, libc-0-r0, 2.6.37-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.37-gentoo-r4-x86_64-Intel-R-_Core-TM-_i3-2120_CPU_@_3.30GHz-with-gentoo-2.0.2
Timestamp of tree: Tue, 07 Jun 2011 20:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r2, 2.7.1-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.9.6-r3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.82
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.12.2
virtual/os-headers:  0
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/pam.d /etc/revdep-rebuild /etc/sandbox.d /etc/ssh /etc/ssl /etc/terminfo /etc/udev"
CXXFLAGS="-O2 -march=core2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ru"
MAKEOPTS="-j3 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="aac acpi alsa amd64 apache2 async bash-completion berkdb bzip2 caps cli codeconv cracklib crypt cups cxx dbus diet dri expat fam foomaticdb fortran gdbm glibc-omitfp gnutls gpm iconv javascript kqemu kvm libclamav libssh2 logrotate matroska mbox mmx mmxext modules mp3 mpm-prefork mudflap multilib ncurses network-cron nls nptl nptlonly ogg openmp optimization pam pcre perl ppds pppd pulseaudio python qos quote readline rtc ru-dv ru-i samba session slang slp sse sse2 sse3 sse4 ssl ssse3 swat sysfs syslog tcpd threads udev unicode urandom usb userlocales utf8 vim-syntax winbind xinetd xml xorg zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" APACHE2_MPMS="worker" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="mdraid" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2011-06-08 13:58:39 UTC

*** This bug has been marked as a duplicate of bug 334077 ***