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.
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?
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
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
Expired port removed.