Opened 7 months ago

Closed 7 months ago

Last modified 7 months ago

#69690 closed defect (worksforme)

M4 fails on Ventura due to depending on /usr/lib/libiconv.2.dylib instead of /opt/local version

Reported by: asvitkine Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: m4

Description (last modified by asvitkine)

/opt/local/bin/gm4 --version
dyld[95941]: Symbol not found: _libiconv
  Referenced from: <7341635B-6C89-384C-9308-A9DA7C3756D9> /opt/local/bin/gm4
  Expected in:     <757EA503-9506-39CF-8357-A2F99AB99DC7> /usr/lib/libiconv.2.dylib
Abort trap: 6

Change History (7)

comment:1 Changed 7 months ago by asvitkine

Description: modified (diff)

comment:2 Changed 7 months ago by asvitkine

Description: modified (diff)

comment:3 Changed 7 months ago by kencu (Ken)

mine is fine on Mojave:

$ /opt/local/bin/gm4 --version
m4 (GNU M4) 1.4.19
Packaged by MacPorts (revision 1)
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by René Seindal.

Let me see if I have a Ventura setup.

Last edited 7 months ago by kencu (Ken) (previous) (diff)

comment:4 Changed 7 months ago by asvitkine

I'm confused by the dyld error since running otool on the binary doesn't show a dependency to the /usr/lib file:

` $ otool -L /opt/local/bin/gm4 /opt/local/bin/gm4:

/opt/local/lib/libiconv.2.dylib (compatibility version 9.0.0, current version 9.1.0) /opt/local/lib/libintl.8.dylib (compatibility version 11.0.0, current version 11.0.0) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1953.1.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0)

`

Version 0, edited 7 months ago by asvitkine (next)

comment:5 Changed 7 months ago by asvitkine

Hmm, I uninstalled all my ports and reinstalled using https://stackoverflow.com/a/27784713/14596701 and I am not seeing this anymore.

comment:6 Changed 7 months ago by kencu (Ken)

Resolution: worksforme
Status: newclosed

I think we'll close this ticket then as we'll never sort anything out with this now.

Pls reopen if you get a consistent failure again.

comment:7 Changed 7 months ago by jmroot (Joshua Root)

The original error looks like the kind of thing you get if you have DYLD_LIBRARY_PATH set (or possibly some other DYLD_* variables). Don't use /usr/bin/env to check for this BTW, as it is a SIP-protected binary and will not see any DYLD_* environment variables.

Note: See TracTickets for help on using tickets.