Bug 251206 - astro/siril : Undefined symbol "cblas_dcopy" at runtime
Summary: astro/siril : Undefined symbol "cblas_dcopy" at runtime
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL: https://gitlab.com/free-astro/siril/-...
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-17 05:58 UTC by Ned Leitch
Modified: 2020-11-19 07:40 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments
Amend Meson linker arguments to include missing symbols (343 bytes, patch)
2020-11-17 05:58 UTC, Ned Leitch
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ned Leitch 2020-11-17 05:58:34 UTC
Created attachment 219765 [details]
Amend Meson linker arguments to include missing symbols

The port compiles cleanly but fails at runtime on the Findstar step:

```
...
log: Reference Image:
log: Findstar: processing...
ld-elf.so.1: /usr/local/lib/libgsl.so.25: Undefined symbol "cblas_dcopy"
```

Despite being linked against `-lgslblas` no `blas` symbols appear in the compiled binary as returned by `ldd`. I can't quite tell how closely this may be related to bug #250205.

I am running 12.1-RELEASE, ports tree fetched via `svn`:

```
svn info | head
Path: .
Working Copy Root Path: /usr/ports
URL: https://svn.freebsd.org/ports/branches/2020Q4
Relative URL: ^/branches/2020Q4
Repository Root: https://svn.freebsd.org/ports
Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Revision: 555538
Node Kind: directory
Schedule: normal
Last Changed Author: swills
```

```
# egrep -v '^#' /etc/make.conf
DEFAULT_VERSIONS+=ssl=openssl
WITHOUT_MODULES = radeonkms
```

The attached patch rectifies the problem on my installation.
Comment 1 Yuri Victorovich freebsd_committer 2020-11-17 08:36:36 UTC
Committed.

Thank you for the patch!
Comment 2 commit-hook freebsd_committer 2020-11-17 08:37:15 UTC
A commit references this bug:

Author: yuri
Date: Tue Nov 17 08:36:26 UTC 2020
New revision: 555541
URL: https://svnweb.freebsd.org/changeset/ports/555541

Log:
  astro/siril: Fix run-time error: Undefined symbol "cblas_dcopy"

  This was because math/gsl installs 2 libraries, libgsl.so and
  libgslcblas.so, the former of which should depend on the latter one.
  Instead, the gsl package through its pkg-config script asks users to
  link to both libraries. This fails when the link line also has
  -Wl,--as-needed which causes the linker to drop the second library.
  In such case the above error is triggered at runtime.

  Also update WWW.

  PR:		251206
  Submitted by:	Ned Leitch <ned.leitch+freebsd@gmail.com>
  MFH:		2020Q4

Changes:
  head/astro/siril/Makefile
  head/astro/siril/files/patch-Makefile.am
  head/astro/siril/files/patch-meson.build
  head/astro/siril/pkg-descr
Comment 3 commit-hook freebsd_committer 2020-11-19 07:40:29 UTC
A commit references this bug:

Author: yuri
Date: Thu Nov 19 07:39:42 UTC 2020
New revision: 555693
URL: https://svnweb.freebsd.org/changeset/ports/555693

Log:
  MFH: r555541

  astro/siril: Fix run-time error: Undefined symbol "cblas_dcopy"

  This was because math/gsl installs 2 libraries, libgsl.so and
  libgslcblas.so, the former of which should depend on the latter one.
  Instead, the gsl package through its pkg-config script asks users to
  link to both libraries. This fails when the link line also has
  -Wl,--as-needed which causes the linker to drop the second library.
  In such case the above error is triggered at runtime.

  Also update WWW.

  PR:		251206
  Submitted by:	Ned Leitch <ned.leitch+freebsd@gmail.com>

  Approved by:	ports-secteam (fluffy)

Changes:
_U  branches/2020Q4/
  branches/2020Q4/astro/siril/Makefile
  branches/2020Q4/astro/siril/files/patch-Makefile.am
  branches/2020Q4/astro/siril/files/patch-meson.build
  branches/2020Q4/astro/siril/pkg-descr