Bug#687349: openblas: program fails to load libopenblas.so.0 because ldconfig was not run on install

Mike Miller mtmiller at ieee.org
Wed Sep 12 01:55:57 UTC 2012


Source: openblas
Version: 0.1.1-6
Severity: normal

When installing both libopenblas-base and libopenblas-dev with the libblas
alternatives set to auto, I see the following:

$ gcc -o blastest blastest.c -lblas
$ ./blastest 1
0.00 1.00 2.00 3.00 4.00 5.00 6.00 7.00
$ sudo apt-get -yqq install libopenblas-dev
Selecting previously unselected package libopenblas-base.
(Reading database ... 297113 files and directories currently installed.)
Unpacking libopenblas-base (from .../libopenblas-base_0.1.1-6_amd64.deb) ...
Selecting previously unselected package libopenblas-dev.
Unpacking libopenblas-dev (from .../libopenblas-dev_0.1.1-6_amd64.deb) ...
Setting up libopenblas-base (0.1.1-6) ...
update-alternatives: using /usr/lib/openblas-base/libopenblas.so.0 to provide
/usr/lib/libblas.so.3 (libblas.so.3) in auto mode
Setting up libopenblas-dev (0.1.1-6) ...
update-alternatives: using /usr/lib/openblas-base/libopenblas.so to provide
/usr/lib/libblas.so (libblas.so) in auto mode
$ gcc -o blastest blastest.c -lblas
$ ./blastest 1
../blastest: error while loading shared libraries: libopenblas.so.0: cannot open
shared object file: No such file or directory

I think this is because ldconfig is not being run when the openblas packages
are installed, due to

DEB_DH_MAKESHLIBS_ARGS_libopenblas-base = -n

in debian/rules. If I run ldconfig the program runs fine.

I don't think this is too serious because no packages depend on libopenblas-
dev, and if I had not manually installed it there would have been no error.



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental'), (1, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.5-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blastest.c
Type: text/x-c
Size: 370 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20120911/6f92ffb7/attachment.bin>


More information about the debian-science-maintainers mailing list