[MacPorts] #63227: litmus @0.13_2: configure: error: could not find library containing socket
MacPorts
noreply at macports.org
Wed Jul 7 17:10:35 UTC 2021
#63227: litmus @0.13_2: configure: error: could not find library containing socket
-----------------------------+--------------------
Reporter: cooljeanius | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Keywords: bigsur catalina | Port: litmus
-----------------------------+--------------------
I'm on Big Sur (11.4) with Xcode 12.5.1:
{{{
checking whether stpcpy is declared... yes
checking for library containing socket... not found
configure: error: could not find library containing socket
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_litmus/litmus/work/litmus-0.13"
&& ./configure --prefix=/opt/local --with-expat --with-ssl=openssl
Exit code: 1
Error: Failed to configure litmus: consult
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_litmus/litmus/work/litmus-0.13/config.log
Error: Failed to configure litmus: configure failure: command execution
failed
DEBUG: Error code: NONE
DEBUG: Backtrace: configure failure: command execution failed
while executing
"$procedure $targetname"
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_litmus/litmus/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there is a bug.
Error: Processing of port litmus failed
}}}
`config.log` says:
{{{
configure:7383: /usr/bin/clang -o conftest -pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch
x86_64 -I/opt/local/include
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -no-cpp-
precomp -L/opt/local/lib -Wl,-headerpad_max_install_names
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
-arch x86_64 -flat_namespace conftest.c >&5
conftest.c:100:1: error: implicit declaration of function 'socket' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
socket();
^
1 error generated.
}}}
...so IOW it looks like another victim of `-Werror=implicit-function-
declaration` being on by default now. Looking at the m4 macros in this
port's source, it looks like it uses macros from neon, and the neon port
had a similar bug (bug #61483), so the fix for that one could probably be
brought over to this one.
--
Ticket URL: <https://trac.macports.org/ticket/63227>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list