[MacPorts] #71267: zvbi @0.2.35_5: undefined X11 symbols due to ignoring file '/opt/X11/lib/libX11.6.dylib': fat file missing arch 'arm64', file has 'i386, x86_64'
MacPorts
noreply at macports.org
Sat Nov 9 17:25:17 UTC 2024
#71267: zvbi @0.2.35_5: undefined X11 symbols due to ignoring file
'/opt/X11/lib/libX11.6.dylib': fat file missing arch 'arm64', file has
'i386,x86_64'
----------------------+---------------------
Reporter: bhatiaa | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: sequoia
Port: zvbi |
----------------------+---------------------
Comment (by kencu):
This software searches widely for the x headers in this list:
{{{
# Standard set of common directories for X headers.
# Check X11 before X11Rn because it is often a symlink to the current
release.
ac_x_header_dirs='
/usr/X11/include
/usr/X11R7/include
/usr/X11R6/include
/usr/X11R5/include
/usr/X11R4/include
/usr/include/X11
/usr/include/X11R7
/usr/include/X11R6
/usr/include/X11R5
/usr/include/X11R4
/usr/local/X11/include
/usr/local/X11R7/include
/usr/local/X11R6/include
/usr/local/X11R5/include
/usr/local/X11R4/include
/usr/local/include/X11
/usr/local/include/X11R7
/usr/local/include/X11R6
/usr/local/include/X11R5
/usr/local/include/X11R4
/opt/X11/include
/usr/X386/include
/usr/x386/include
/usr/XFree86/include/X11
/usr/include
/usr/local/include
/usr/unsupported/include
/usr/athena/include
/usr/local/x11r5/include
/usr/lpp/Xamples/include
/usr/openwin/include
/usr/openwin/share/include'
}}}
and if it finds them, it will use those over the ones in MacPorts it
appears. It also adds the library link path, which then finds the (wrong)
one for us.
It looks like there is a configure option to override this search:
{{{
X features:
--x-includes=DIR X include files are in DIR
--x-libraries=DIR X library files are in DIR
}}}
most likely we should set those x directories to the ones in MacPorts
prefix, so the XQuartz (and other?) files are never found, to avoid this.
--
Ticket URL: <https://trac.macports.org/ticket/71267#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list