Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 561722

Summary: net-libs/libiscsi: fails with gcc-5: lib/.libs/libiscsi.so: undefined reference to 'scsi_set_uint16' (and more)
Product: Gentoo Linux Reporter: Manfred Knick <Manfred.Knick>
Component: Current packagesAssignee: Richard Yao (RETIRED) <ryao>
Status: RESOLVED FIXED    
Severity: normal CC: bug, guillaume
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: https://github.com/gentoo/gentoo/pull/3026
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 536984    
Attachments: /var/tmp/portage/net-libs/libiscsi-1.9.0-r1/temp/build.log
emerge --info '=net-libs/libiscsi-1.9.0-r1::gentoo'
another emerge --info
libiscsi-1.15.0.ebuild
files/libiscsi-1.15.0-0001-disable-build-of-tests-and-examples.patch

Description Manfred Knick 2015-09-28 11:01:54 UTC
net-libs/libiscsi-1.9.0-r1
builds with sys-devel/gcc-4.9.3:4.9,
but fails with sys-devel/gcc-5.2.0.

Reproducible: Always
Comment 1 Manfred Knick 2015-09-28 11:02:32 UTC
Created attachment 413146 [details]
/var/tmp/portage/net-libs/libiscsi-1.9.0-r1/temp/build.log
Comment 2 Manfred Knick 2015-09-28 11:03:38 UTC
Created attachment 413148 [details]
emerge --info '=net-libs/libiscsi-1.9.0-r1::gentoo'
Comment 3 Manfred Knick 2015-09-28 11:04:05 UTC
emerge -pqv '=net-libs/libiscsi-1.9.0-r1::gentoo'

[ebuild   R   ] net-libs/libiscsi-1.9.0-r1
Comment 4 Guillaume Ceccarelli 2015-10-11 12:36:35 UTC
Created attachment 414340 [details]
another emerge --info

I'm hitting this one as well. Not attaching my build.log since it fails in the exact same way.
Comment 5 Guillaume Ceccarelli 2015-10-11 13:26:15 UTC
Created attachment 414342 [details]
libiscsi-1.15.0.ebuild

libiscsi 1.15.0 from upstream compiles correctly, provided one disables the building of tests which suffer from an -I include path problem (most likely unrelated to GCC5).
Comment 6 Guillaume Ceccarelli 2015-10-11 13:26:56 UTC
Created attachment 414344 [details, diff]
files/libiscsi-1.15.0-0001-disable-build-of-tests-and-examples.patch
Comment 7 SpanKY gentoo-dev 2015-12-05 21:32:03 UTC
disabling the tests/examples should be done, but doesn't fix the problem.
the source misuses the "inline" keyword which leads to a broken library.
Comment 8 Manfred Knick 2016-01-13 17:53:05 UTC
(In reply to Manfred Knick from comment #0)

> but fails with sys-devel/gcc-5.2.0.

Just for confirmation:
Still fails with 

. . . sys-devel/gcc-5.3.0:5

as expected - see Vapier's comment directly above.
Comment 9 Manfred Knick 2016-01-13 18:16:37 UTC
net-libs/libiscsi-9999:0/0  :  Further problems in "tests" :

make[2]: Entering directory
   '/var/tmp/portage/net-libs/libiscsi-9999/work/libiscsi-9999_build/tests'

.../tests/prog_noop_reply.c:36:19: fatal error:
.../tests/prog_reconnect_timeout.c:34:19: fatal error:
.../tests/prog_reconnect.c:34:19: fatal error:
.../tests/prog_timeout.c:37:19: fatal error:

All fail with
  "iscsi.h: No such file or directory"

although

libiscsi-9999 # find . -name iscsi.h
./include/iscsi.h
Comment 10 David Seifert gentoo-dev 2016-12-13 19:08:03 UTC
commit b9df0a2e012d1b9529c1229fd520fd459103cd7f
Author: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
Date:   Mon Dec 5 23:21:47 2016 +0100

    net-libs/libiscsi: 1.18.0 version bump
    
    Builds fine with GCC-5.4.0.
    
    Gentoo-bug: 561722