Ticket #27388 (closed defect: fixed)
rexx: regina executable fails to work (library install_name wrong)
| Reported by: | jking+macports@… | Owned by: | ryandesign@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.9.2 |
| Keywords: | Cc: | ||
| Port: | rexx |
Description (last modified by macsforever2000@…) (diff)
After installing the Regina package (port:rexx), the "regina" executable fails with:
dyld: Library not loaded: libregina.dylib Referenced from: /opt/local/bin/regina Reason: image not found Trace/BPT trap
This can be mitigated by setting DYLD_LIBRARY_PATH to /opt/local/lib but this workaround is obviously suboptimal as it can break non-MacPorts programs.
Attachments
Change History
comment:1 Changed 3 years ago by macsforever2000@…
- Keywords rexx regina dylib removed
- Description modified (diff)
- Milestone MacPorts 2.0.0 deleted
comment:2 Changed 3 years ago by jking+macports@…
Sorry about the milestone field.
I've been able to patch the configure script to avoid the regina-not-starting issue. Replacing
SHL_LD="${CC} -dynamiclib ${LDFLAGS} -install_name ${SHLPRE}${SHLFILE}${SHLPST} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
with
SHL_LD="${CC} -dynamiclib ${LDFLAGS} -install_name /opt/local/lib/${SHLPRE}${SHLFILE}${SHLPST} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
Resolves the issue. I'm now trying to figure out how to do that "correctly" within MacPorts, in case the user specified a different root directory.
Changed 3 years ago by jking+macports@…
- Attachment patch-configure.diff added
Replacement patch-configure.diff
comment:3 Changed 3 years ago by jking+macports@…
I've attached a new patch-configure.diff file that fixes the regina-not-starting issue. This patch file subsumes the patch file for port:rexx that was added earlier today.
comment:4 Changed 3 years ago by jking+macports@…
This patch has been confirmed to work and fix the issue entirely. I don't have commit rights, though, so please commit this whenever you find the time. :)
comment:5 Changed 3 years ago by ryandesign@…
- Owner changed from macports-tickets@… to ryandesign@…
- Status changed from new to assigned
- Summary changed from regina executable fails to work to rexx: regina executable fails to work (library install_name wrong)
comment:6 Changed 3 years ago by ryandesign@…
I had noticed the problem but had not yet worked out how to fix it; thanks for figuring it out. Committed in r73603. Note this fixes the install_name of libregina.dylib but not of libregutil.dylib, librxtest1.dylib, or librxtest2.dylib.


Please do not set the milestone field.