Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 561722 - net-libs/libiscsi: fails with gcc-5: lib/.libs/libiscsi.so: undefined reference to 'scsi_set_uint16' (and more)
Summary: net-libs/libiscsi: fails with gcc-5: lib/.libs/libiscsi.so: undefined referen...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Richard Yao (RETIRED)
URL: https://github.com/gentoo/gentoo/pull...
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-5
  Show dependency tree
 
Reported: 2015-09-28 11:01 UTC by Manfred Knick
Modified: 2016-12-13 19:08 UTC (History)
2 users (show)

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


Attachments
/var/tmp/portage/net-libs/libiscsi-1.9.0-r1/temp/build.log (build.log,379.14 KB, text/x-log)
2015-09-28 11:02 UTC, Manfred Knick
Details
emerge --info '=net-libs/libiscsi-1.9.0-r1::gentoo' (ei0,5.68 KB, text/plain)
2015-09-28 11:03 UTC, Manfred Knick
Details
another emerge --info (file_561722.txt,5.48 KB, text/plain)
2015-10-11 12:36 UTC, Guillaume Ceccarelli
Details
libiscsi-1.15.0.ebuild (file_561722.txt,867 bytes, text/plain)
2015-10-11 13:26 UTC, Guillaume Ceccarelli
Details
files/libiscsi-1.15.0-0001-disable-build-of-tests-and-examples.patch (file_561722.txt,298 bytes, patch)
2015-10-11 13:26 UTC, Guillaume Ceccarelli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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