[MacPorts] #59529: p5.28-xml-parser fails to build
MacPorts
noreply at macports.org
Wed Nov 18 03:06:52 UTC 2020
#59529: p5.28-xml-parser fails to build
----------------------------+--------------------
Reporter: vallon | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Resolution: | Keywords:
Port: p5-xml-parser |
----------------------------+--------------------
Comment (by tenomoto):
I encountered the problem to build xorg-server on Big Sur.
`Devel::CheckLib` is used to find requirements. It tries to link the
specified libraries to a simple C program. If it fails the result is false
(0).
First, we need to add build dependency to `port:p${perl5.major}-devel-
checklib`.
I turned debug on (`debug => 1`) and got the following.
The path to MacOSX11.0.sdk is wrong.
I'm not still sure where it gets sdk version.
Setting configure.sdkroot didn't affect the one used in checklib.
A quick and dirty workaround is to make a symlink of MacOSX11.0.sdk in
/Library/Developer/CommandLineTools/SDKs.
At install, it tries to install files in /Network although destroot seems
to be fine.
{{{
# /usr/bin/clang -fno-common -DPERL_DARWIN -mmacosx-version-min=10.16
-pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
-fno-strict-aliasing -fstack-protector-strong -I/opt/local/include
-DPERL_USE_SAFE_PUTENV -mmacosx-version-min=10.16 -L/opt/local/lib
-Wl,-headerpad_max_install_names
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
-fstack-protector-strong assertlibhogq3W2m.c -o assertlibl2tqe2lx
-I/opt/local/include -L/opt/local/lib -lexpat
clang: warning: no such sysroot directory:
'/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk' [-Wmissing-
sysroot]
In file included from assertlibhogq3W2m.c:1:
/opt/local/include/expat.h:36:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
^~~~~~~~~~
1 error generated.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/59529#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list