Hello, currently, nifticlib is only provided as a static library and not compiled with -fPIC on amd64. As a result it is not possible to link a shared library or a module against this lib. Please consider providing a shared library instead or adding the -fPIC compile flag. Many thanks, Gert
Try out the wip version at https://github.com/outpaddling/freebsd-ports-wip Cheers, JB
Essentially I did exactly this locally, but thanks for the fast response. Best, Gert
Created attachment 174159 [details] Unified diff Patch adds -fPIC, LICENSE, and removes MAKE_JOBS_UNSAFE. portlint: OK (no errors or warnings) testport: OK (poudriere {9.3,10.1}+{i386,amd64}
Can you also bump PORTREVISION, since the static library is being changed by the addition of -fPIC?
Created attachment 178348 [details] Unified diff Added PORTREVISION.
A commit references this bug: Author: rakuco Date: Wed Dec 28 14:54:37 UTC 2016 New revision: 429778 URL: https://svnweb.freebsd.org/changeset/ports/429778 Log: Pass -fPIC when building the port's static libraries. This makes it possible to use those libraries with shared libraries on at least amd64. While here, set LICENSE and drop MAKE_JOBS_UNSAFE. PR: 209982 Submitted by: Jason Bacon <bacon4000@gmail.com> (maintainer) MFH: 2016Q4 Changes: head/science/nifticlib/Makefile head/science/nifticlib/files/patch-Makefile head/science/nifticlib/files/patch-examples-Makefile head/science/nifticlib/files/patch-utils-Makefile
Committed, thanks!
A commit references this bug: Author: junovitch Date: Fri Jan 6 02:41:49 UTC 2017 New revision: 430678 URL: https://svnweb.freebsd.org/changeset/ports/430678 Log: MFH: r429778 Pass -fPIC when building the port's static libraries. This makes it possible to use those libraries with shared libraries on at least amd64. While here, set LICENSE and drop MAKE_JOBS_UNSAFE. PR: 209982 Submitted by: Jason Bacon <bacon4000@gmail.com> (maintainer) Approved by: ports-secteam (with hat) Changes: _U branches/2016Q4/ branches/2016Q4/science/nifticlib/Makefile branches/2016Q4/science/nifticlib/files/patch-Makefile branches/2016Q4/science/nifticlib/files/patch-examples-Makefile branches/2016Q4/science/nifticlib/files/patch-utils-Makefile