[MacPorts] #61335: qt5-kde build fails on Catalina
MacPorts
noreply at macports.org
Fri Oct 16 21:22:55 UTC 2020
#61335: qt5-kde build fails on Catalina
-------------------------+---------------------
Reporter: 21stcaveman | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.3
Keywords: qt5 qt5-kde | Port: qt5-kde
-------------------------+---------------------
"sudo port install qt5-kde" always fails with (paths are shortened, parts
replaced with ...):
{{{
Error: Failed to build qt5-kde: command execution failed
Error: See /.../qt5-kde/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port qt5-kde failed
}}}
Looking in main.log :
{{{
:info:build mv -f QtGui ../../lib/QtGui.framework/Versions/5/QtGui
:info:build ln -s Versions/Current/QtGui ../../lib/QtGui.framework/QtGui
:info:build gmake[3]: Leaving directory
'/opt/local/var/macports/build/.../build/qtbase/src/gui'
:info:build gmake[2]: Leaving directory
'/opt/local/var/macports/build/.../build/qtbase/src'
:info:build gmake[1]: *** [Makefile:53: sub-src-make_first] Error 2
:info:build gmake[1]: Leaving directory
'/opt/local/var/macports/build/.../build/qtbase'
:info:build gmake: *** [Makefile:83: module-qtbase-make_first] Error 2
:info:build gmake: Leaving directory
'/opt/local/var/macports/build/.../build'
:info:build Command failed: cd "/opt/local/var/macports/build/.../build"
&& gmake -j12 -w
:info:build Exit code: 2
:error:build Failed to build qt5-kde: command execution failed
:debug:build Error code: CHILDSTATUS 17766 2
:debug:build Backtrace: command execution failed
:debug:build while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build invoked from within
:debug:build "command_exec build"
:debug:build (procedure "portbuild::build_main" line 8)
:debug:build invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/.../qt5-kde/main.log for
details.
}}}
So, I try to run the failed command myself :
{{{
cd "/opt/local/var/macports/build/.../build"
gmake -w
}}}
and it gives me the error :
{{{
c/network/access/qhttpnetworkconnection.cpp
In file included from /opt/local/var/macports/build/.../qt-everywhere-
opensource-
src-5.9.3/qtbase/src/network/access/qhttpnetworkconnection.cpp:59:
In file included from /opt/local/var/macports/build/.../work/qt-
everywhere-opensource-
src-5.9.3/qtbase/include/QtNetwork/5.9.3/QtNetwork/private/qsslsocket_p.h:1:
In file included from /opt/local/var/macports/build/.../qt-everywhere-
opensource-
src-5.9.3/qtbase/include/QtNetwork/5.9.3/QtNetwork/private/../../../../../src/network/ssl/qsslsocket_p.h:62:
In file included from /opt/local/var/macports/build/.../qt-everywhere-
opensource-
src-5.9.3/qtbase/include/QtNetwork/5.9.3/QtNetwork/private/qsslcontext_openssl_p.h:1:
/opt/local/var/macports/build/.../qt-everywhere-opensource-
src-5.9.3/qtbase/include/QtNetwork/5.9.3/QtNetwork/private/../../../../../src/network/ssl/qsslcontext_openssl_p.h:60:10:
fatal error:
'openssl/ssl.h' file not found
#include <openssl/ssl.h>
}}}
Looking back at main.log, it seems like configure can find openssl :
{{{
:info:configure OpenSSL ................................ yes
:info:configure Qt directly linked to OpenSSL ........ no
}}}
I can also locate ssl.h in the default location :
{{{
ls -l /opt/local/include/openssl/ssl.h
-rw-r--r-- 1 root wheel 111252 Sep 27 05:02
/opt/local/include/openssl/ssl.h
}}}
As well as :
{{{
ls -l /usr/local/include/openssl/ssl.h
-rw-r--r-- 1 root wheel 111252 Sep 22 05:55
/usr/local/include/openssl/ssl.h
}}}
Why can gmake not see ssl.h? Any ideas?
--
Ticket URL: <https://trac.macports.org/ticket/61335>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list