[MacPorts] #60959: openssh-8.1p1_9+gsskex+kerberos5+xauth: compiler cannot create working executables (was: openssh-8.1p1_9+gsskex+kerberos5+xauth config failure)
MacPorts
noreply at macports.org
Wed Aug 5 01:46:34 UTC 2020
#60959: openssh-8.1p1_9+gsskex+kerberos5+xauth: compiler cannot create working
executables
----------------------+--------------------
Reporter: murrayE | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.3
Resolution: | Keywords:
Port: openssh |
----------------------+--------------------
Comment (by ryandesign):
Replying to [ticket:60959 murrayE]:
> Command "openssh-8.1p1_9+gsskex+kerberos5+xauth" gives configure error
(from config.log):
>
> {{{
> configure:2791: /usr/bin/clang -V >&5
> clang: error: argument to '-V' is missing (expected 1 value)
> ...
> conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
> #include <ac_nonexistent.h>
> ^~~~~~~~~~~~~~~~~~
> }}}
These errors are not problems; they are a consequence of how configure
scripts work. They try all sorts of things, many of which will generate
errors, in order to determine what works on your system.
> main.log reports:
>
> {{{
> :info:configure configure: error: *** compiler cannot create working
executables, check config.log ***
> }}}
This is the problem, and the config.log says it happened because:
{{{
configure:9029: checking compiler and flags for sanity
configure:9047: /usr/bin/clang -o conftest -pipe -Os -fPIE
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch
x86_64 -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-
arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-
memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing
-mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-
protector-strong -I/opt/local/include -DBROKEN_STRNVIS=1
-D__APPLE_SANDBOX_NAMED_EXTERNAL__ -D__APPLE_API_STRICT_CONFORMANCE
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-search_paths_first
-Wl,-pie
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
-arch x86_64 -fstack-protector-strong conftest.c -framework Security
-framework Security >&5
conftest.c:88:2: error: implicitly declaring library function 'exit' with
type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-
declaration]
exit(0);
^
conftest.c:88:2: note: include the header <stdlib.h> or explicitly provide
a declaration for 'exit'
1 error generated.
configure:9047: $? = 1
configure: program exited with status 1
}}}
So this configure script test is faulty because it has neglected to
include a required header. These kinds of problems used to generate
warnings, but recent Xcode seems to have turned them into errors that must
now be fixed.
Probably if someone wanted to try to fix this they should first update the
port to the latest version, in case the developers have already fixed it
there.
--
Ticket URL: <https://trac.macports.org/ticket/60959#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list