Bug 208472 - math/openblas: bad shared library
Summary: math/openblas: bad shared library
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-02 20:29 UTC by Baptiste Daroussin
Modified: 2016-04-04 20:47 UTC (History)
1 user (show)

See Also:
phd_kimberlite: maintainer-feedback+


Attachments
patch for HEAD (2.20 KB, patch)
2016-04-03 05:23 UTC, Eijiro Shibusawa
phd_kimberlite: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Baptiste Daroussin freebsd_committer 2016-04-02 20:29:29 UTC
libopenblas provides a libopenblas.so, which is a badly formated one (aka no SONAME)

readelf -d /usr/local/lib/libopenblas.so.0

Dynamic section at offset 0x18b4690 contains 29 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libgfortran.so.3]
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.5]
 0x0000000000000001 (NEEDED)             Shared library: [libquadmath.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.7]
 0x000000000000001d (RUNPATH)            Library runpath: [/usr/local/lib/gcc48]
 0x000000000000000c (INIT)               0x104a38
 0x000000000000000d (FINI)               0x180b548
 0x0000000000000019 (INIT_ARRAY)         0x1ab01f8
 0x000000000000001b (INIT_ARRAYSZ)       8 (bytes)
 0x000000000000001a (FINI_ARRAY)         0x1ab0200
 0x000000000000001c (FINI_ARRAYSZ)       8 (bytes)
....

There should be a SONAME section which should be libopenblas.so.0 otherwise binaries linking to it sill endup being linked to libopenblas.so instead of libopenblas.so.0
Comment 1 Eijiro Shibusawa 2016-04-03 05:23:59 UTC
Created attachment 168915 [details]
patch for HEAD
Comment 2 Baptiste Daroussin freebsd_committer 2016-04-04 20:46:49 UTC
Thanks for the quick fix!
Comment 3 commit-hook freebsd_committer 2016-04-04 20:47:20 UTC
A commit references this bug:

Author: bapt
Date: Mon Apr  4 20:46:23 UTC 2016
New revision: 412529
URL: https://svnweb.freebsd.org/changeset/ports/412529

Log:
  Create a proper library with a SONAME

  PR:		208472
  Submitted by:	phd_kimberlite@yahoo.co.jp (maintainer)
  MFH:		2016Q2

Changes:
  head/math/openblas/Makefile
  head/math/openblas/files/patch-Makefile.system
  head/math/openblas/files/patch-exports+Makefile