Opened 4 years ago

Closed 4 years ago

#61335 closed defect (invalid)

qt5-kde build fails on Catalina

Reported by: 21stcaveman (Hamid Maadani) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: Cc: 21stcaveman (Hamid Maadani)
Port: qt5-kde

Description

"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?

Attachments (1)

main.log (3.2 MB) - added by 21stcaveman (Hamid Maadani) 4 years ago.

Change History (6)

comment:1 Changed 4 years ago by 21stcaveman (Hamid Maadani)

Cc: 21stcaveman added

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Please attach the main.log file so that we can see what went wrong.

comment:3 Changed 4 years ago by mf2k (Frank Schima)

Keywords: qt5 qt5-kde removed

Changed 4 years ago by 21stcaveman (Hamid Maadani)

Attachment: main.log added

comment:4 in reply to:  2 Changed 4 years ago by 21stcaveman (Hamid Maadani)

Thanks for the prompt response, log is attached now.

Replying to ryandesign:

Please attach the main.log file so that we can see what went wrong.

comment:5 Changed 4 years ago by jmroot (Joshua Root)

Resolution: invalid
Status: newclosed

You appear to be using a custom ports tree in /Users/hmaadani/macstrop. There is no qt5-kde port in the official ports tree, so please report this issue to whoever maintains that port.

Note: See TracTickets for help on using tickets.