FS#58796 - [open-iscsi] Missing shared library libopeniscsiusr.so.0.1.0

Attached to Project: Community Packages
Opened by Ben Swartzlander (bswartz) - Wednesday, 30 May 2018, 14:56 GMT
Last edited by Christian Hesse (eworm) - Friday, 01 June 2018, 08:48 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Christian Hesse (eworm)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
The new version of open-iscsi (2.0.876-1) lacks a required shared library: libopeniscsiusr.so.0.1.0

Steps to reproduce:

$ sudo pacman -S --needed --noconfirm open-iscsi
$ sudo systemctl enable open-iscsi
$ sudo systemctl start open-iscsi

$ systemctl status open-iscsi.service
● open-iscsi.service - Open iSCSI Daemon
Loaded: loaded (/usr/lib/systemd/system/open-iscsi.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2018-05-30 10:42:48 EDT; 3min 53s ago
Process: 2096 ExecStart=/sbin/iscsid (code=exited, status=127)

May 30 10:42:48 dev1 systemd[1]: Starting Open iSCSI Daemon...
May 30 10:42:48 dev1 iscsid[2096]: /sbin/iscsid: error while loading shared libraries: libopeniscsiusr.so.0.1.0: cannot open shared object file: No such file or directory
May 30 10:42:48 dev1 systemd[1]: open-iscsi.service: Control process exited, code=exited status=127
May 30 10:42:48 dev1 systemd[1]: open-iscsi.service: Failed with result 'exit-code'.
May 30 10:42:48 dev1 systemd[1]: Failed to start Open iSCSI Daemon.
This task depends upon

Closed by  Christian Hesse (eworm)
Friday, 01 June 2018, 08:48 GMT
Reason for closing:  Fixed
Additional comments about closing:  open-iscsi 2.0.876-2
Comment by guggi (guggo) - Wednesday, 30 May 2018, 15:05 GMT
just hit the same bug: libopeniscsiusr.so.0.1.0 is missing.
Comment by loqs (loqs) - Wednesday, 30 May 2018, 16:22 GMT
libopeniscsiusr is not installed by the install_user target if you switch to the install target does that resolve the issue?
Comment by guggi (guggo) - Thursday, 31 May 2018, 07:50 GMT
.NOTPARALLEL: install_user install_programs install_initd \
install_initd_suse install_initd_redhat install_initd_debian \
install_etc install_iface install_doc install_iname

install: install_programs install_doc install_etc \
install_initd install_iname install_iface install_libopeniscsiusr

install_user: install_programs install_doc install_etc \
install_initd install_iname install_iface install_libopeniscsiusr

install_udev_rules:
$(INSTALL) -d $(DESTDIR)$(rulesdir)
$(INSTALL) -m 644 $(RULESFILES) $(DESTDIR)/$(rulesdir)

install_programs: $(PROGRAMS) $(SCRIPTS)
$(INSTALL) -d $(DESTDIR)$(sbindir)
$(INSTALL) -m 755 $^ $(DESTDIR)$(sbindir)



configure: WARNING: unrecognized options: --without-slp
make -C libopeniscsiusr
make[1]: Entering directory '/usr/src/open-iscsi/src/open-iscsi/libopeniscsiusr'
cc -O2 -g -Wall -Werror -Wextra -fvisibility=hidden -fPIC -c -o context.o context.c
cc -O2 -g -Wall -Werror -Wextra -fvisibility=hidden -fPIC -c -o misc.o misc.c
cc -O2 -g -Wall -Werror -Wextra -fvisibility=hidden -fPIC -c -o session.o session.c
cc -O2 -g -Wall -Werror -Wextra -fvisibility=hidden -fPIC -c -o sysfs.o sysfs.c
cc -O2 -g -Wall -Werror -Wextra -fvisibility=hidden -fPIC -c -o iface.o iface.c
iface.c: In function '_iscsi_iface_get_from_sysfs':
iface.c:496:47: error: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4073 [-Werror=format-truncation=]
snprintf(sysfs_iface_dir_path, PATH_MAX, "%s/%s",
^~
iface.c:496:2: note: 'snprintf' output between 24 and 4119 bytes into a destination of size 4096
snprintf(sysfs_iface_dir_path, PATH_MAX, "%s/%s",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_ISCSI_SYS_IFACE_DIR, iface_kern_id);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from iface.c:42:
misc.h:89:3: error: 'strncpy' specified bound 16 equals destination size [-Werror=stringop-truncation]
strncpy(dst, src, size); \
^~~~~~~~~~~~~~~~~~~~~~~
iface.c:144:3: note: in expansion of macro '_strncpy'
_strncpy((*iface)->transport_name, proc_name + strlen("iscsi_"),
^~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [<builtin>: iface.o] Error 1
make[1]: Leaving directory '/usr/src/open-iscsi/src/open-iscsi/libopeniscsiusr'
make: *** [Makefile:49: user] Error 2
Comment by guggi (guggo) - Thursday, 31 May 2018, 08:21 GMT
build() {
cd "${srcdir}/open-iscsi/"

# include iscsistart in the package
sed -i -e '/^PROGRAMS = /s/$/ usr\/iscsistart/' Makefile

# build breaks if the openslp package is installed
sed -i -e 's/\(\.\/configure\)/ \1 --without-slp/g' Makefile

make install
}





makepkg -si
==> Making package: open-iscsi-git 2.0.876.r30.g49e4af6-1 (Thu May 31 10:20:48 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning open-iscsi git repo...
Cloning into bare repository '/usr/src/open-iscsi/open-iscsi'...
remote: Counting objects: 10674, done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 10674 (delta 7), reused 11 (delta 4), pack-reused 10649
Receiving objects: 100% (10674/10674), 8.21 MiB | 2.81 MiB/s, done.
Resolving deltas: 100% (6421/6421), done.
==> Validating source files with sha256sums...
open-iscsi ... Skipped
==> Extracting sources...
-> Creating working copy of open-iscsi git repo...
Cloning into 'open-iscsi'...
done.
==> Starting pkgver()...
==> Starting build()...
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro usr/iscsid.c -o usr/iscsid
In file included from usr/iscsid.c:39:
usr/mgmt_ipc.h:23:10: fatal error: iscsi_if.h: No such file or directory
#include "iscsi_if.h"
^~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: usr/iscsid] Error 1
==> ERROR: A failure occurred in build().
Aborting...
Comment by loqs (loqs) - Thursday, 31 May 2018, 16:41 GMT
LIB_DIR=/usr/lib is used to prevent the files being installed in /usr/lib64
@guggo please try in a clean chroot eg install devtools then use extra-x86_64-build instead of makepkg -si
Comment by guggi (guggo) - Friday, 01 June 2018, 08:27 GMT
Success, thx.

Loading...