Bug 265220 - math/PDL: needs PIC
Summary: math/PDL: needs PIC
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-perl (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-14 20:22 UTC by Robert Clausecker
Modified: 2022-07-14 20:22 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Clausecker freebsd_committer freebsd_triage 2022-07-14 20:22:46 UTC
The port fails on armv7 with a similar reason as the BROKEN reason for i386:

ld: error: can't create dynamic relocation R_ARM_MOVT_ABS against symbol: .LC1 in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in slatec/chfdv.o
>>> referenced by chfdv.f
>>>               slatec/chfdv.o:(chfdv_)


The reason for this failure is that the code is not compiled with -fpic (or -fPIC) and is hence not suitable for use in a shared library.  To fix this, patch the makefile to add -fpic to the compiler options.  The port can then be unbroken on i386, too.

I can try writing a patch, but I'm pretty busy right now.  Maybe someone else can pick this up.