Opened 13 years ago

Closed 13 years ago

#27388 closed defect (fixed)

rexx: regina executable fails to work (library install_name wrong)

Reported by: jking+macports@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: rexx

Description (last modified by mf2k (Frank Schima))

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 (1)

patch-configure.diff (2.9 KB) - added by jking+macports@… 13 years ago.
Replacement patch-configure.diff

Download all attachments as: .zip

Change History (10)

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: rexx regina dylib removed
Milestone: MacPorts 2.0.0

Please do not set the milestone field.

comment:2 Changed 13 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 13 years ago by jking+macports@…

Attachment: patch-configure.diff added

Replacement patch-configure.diff

comment:3 Changed 13 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 13 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 13 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned
Summary: regina executable fails to workrexx: regina executable fails to work (library install_name wrong)

comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

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.

comment:7 Changed 13 years ago by jking+macports@…

Hm. Not fixing those hasn't bitten me yet, but it may be worthwhile to make the change to them to before committing.

comment:8 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

I am looking into it.

comment:9 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Fixed in r73604.

Note: See TracTickets for help on using tickets.