Bug 199772 - math/abacus: linking against shared library fails with missing symbols
Summary: math/abacus: linking against shared library fails with missing symbols
Status: Closed Overcome By Events
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: needs-patch
Depends on:
Blocks:
 
Reported: 2015-04-29 03:56 UTC by Jan Beich
Modified: 2018-04-03 09:38 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2015-04-29 03:56:42 UTC
It seems unsatisfied references are treated differently between static and shared variants. Stripping all symbols from object files before linking the library *sometimes* helps.

$ echo 'int main() { }' | cc -xc -o /dev/null - -L/usr/local/lib -labacus-osi
/usr/local/lib/libabacus-osi.so: undefined reference to `ABA_SUB::generateLp()'
/usr/local/lib/libabacus-osi.so: undefined reference to `ABA_MASTER::_initializeLpParameters()'
/usr/local/lib/libabacus-osi.so: undefined reference to `ABA_MASTER::_printLpParameters()'
/usr/local/lib/libabacus-osi.so: undefined reference to `ABA_MASTER::_createLpMasters()'
/usr/local/lib/libabacus-osi.so: undefined reference to `ABA_MASTER::_deleteLpMasters()'
/usr/local/lib/libabacus-osi.so: undefined reference to `ABA_MASTER::_outputLpStatistics()'
/usr/local/lib/libabacus-osi.so: undefined reference to `ABA_MASTER::_setDefaultLpParameters()'

The issue existed before ports r384953 i.e., abacus-3.2.b1_4 is also affected.
Comment 1 John Marino freebsd_committer freebsd_triage 2016-08-18 14:30:36 UTC
Hi Jan,
Seeing how this PR is coming up on 2 years and nobody has stepped in to maintain this port after gahr@ released it, maybe we should think about deprecating the port?

Is it usable in other ways?
Or do we have to limit it to a static library only?

If nobody is going to spend time on this port, what should we do with it?
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-03-13 11:35:54 UTC
A commit references this bug:

Author: tobik
Date: Tue Mar 13 11:35:29 UTC 2018
New revision: 464364
URL: https://svnweb.freebsd.org/changeset/ports/464364

Log:
  math/abacus: Deprecate

  The shared library is broken and no one stepped up in ~3 years to fix
  it.

  PR:		199772

Changes:
  head/math/abacus/Makefile
Comment 3 commit-hook freebsd_committer freebsd_triage 2018-03-13 16:20:20 UTC
A commit references this bug:

Author: gahr
Date: Tue Mar 13 16:19:22 UTC 2018
New revision: 464388
URL: https://svnweb.freebsd.org/changeset/ports/464388

Log:
  math/abacus: unbreak, undeprecate, bump

  PR:		199772

Changes:
  head/math/abacus/Makefile
  head/math/abacus/files/patch-Makefile
Comment 4 Rene Ladan freebsd_committer freebsd_triage 2018-04-03 09:38:25 UTC
Expired port removed.