Bug 206354 - print/qt5-printsupport: Fails to configure with clang (Could not find qmake configuration file freebsd-clang)
Summary: print/qt5-printsupport: Fails to configure with clang (Could not find qmake c...
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2016-01-18 01:07 UTC by Mark Millard
Modified: 2016-01-20 09:17 UTC (History)
1 user (show)

See Also:
rakuco: maintainer-feedback+
rakuco: merge-quarterly-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Millard 2016-01-18 01:07:11 UTC
(5.4.1 was from pkg install; 5.4.1_1 was being attempted via portmaster -DK)

# portmaster -DK print/qt5-printsupport 

===>>> Currently installed version: qt5-printsupport-5.4.1
===>>> Port directory: /usr/ports/print/qt5-printsupport
. . .
===>  Cleaning for qt5-printsupport-5.4.1_1
. . .
Running configuration tests...
Cups support cannot be enabled due to functionality tests!
Turn on verbose messaging (-v) to ./configure to see the final report.
If you believe this message is in error you may use the continue
switch (-continue) to ./configure to continue.
===>  Script "configure" failed unexpectedly.
Please report the problem to kde@FreeBSD.org [maintainer] and attach the
"/usr/obj/portswork/usr/ports/print/qt5-printsupport/work/qtbase-opensource-src-5.4.1/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/print/qt5-printsupport
*** Error code 1


Unfortunately no such config.log is left behind.

So trying as specified, after answering the questions that were implicit under portmaster -DK print/qt5-printsupport :

. . .
Could not find qmake configuration file freebsd-clang.
Error processing project file: /usr/obj/portswork/usr/ports/print/qt5-printsupport/work/qtbase-opensource-src-5.4.1/qtbase.pro
# find . -name 'freebsd*' -print | more
./src/3rdparty/freebsd
./mkspecs/freebsd-icc
./mkspecs/unsupported/freebsd-clang
./mkspecs/freebsd-g++46
./mkspecs/freebsd-g++

Apparently “unsupported” is ignored.

# svnlite info /usr/ports/print/qt5-printsupport
Path: print/qt5-printsupport
Working Copy Root Path: /usr/ports
URL: svn://svn.freebsd.org/ports/head/print/qt5-printsupport
Relative URL: ^/head/print/qt5-printsupport
Repository Root: svn://svn.freebsd.org/ports
Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Revision: 406513
Node Kind: directory
Schedule: normal
Last Changed Author: rakuco
Last Changed Rev: 406271
Last Changed Date: 2016-01-16 12:13:10 -0800 (Sat, 16 Jan 2016)


# more /etc/make.conf 
DEFAULT_VERSIONS+=perl5=5.22
WRKDIRPREFIX=/usr/obj/portswork
WITH_DEBUG=
WITH_DEBUG_FILES=
MALLOC_PRODUCTION=
Comment 1 Mark Millard 2016-01-18 01:13:45 UTC
I should have mentioned: I've been experimenting with base/projects/clang380-import (although the specific clang vintage does not seem to matter). In essence: 11.0-CURRENT as the context.

# cc --version
FreeBSD clang version 3.8.0 (branches/release_38 257836) (based on LLVM 3.8.0)
Target: armv6--freebsd11.0-gnueabi
Thread model: posix
InstalledDir: /usr/bin

# c++ --version
FreeBSD clang version 3.8.0 (branches/release_38 257836) (based on LLVM 3.8.0)
Target: armv6--freebsd11.0-gnueabi
Thread model: posix
InstalledDir: /usr/bin
Comment 2 Raphael Kubo da Costa freebsd_committer freebsd_triage 2016-01-19 16:55:36 UTC
I think the freebsd-clang mkspec problem is a red herring: upstream has it in mkspecs/unsupported/freebsd-clang, we do some patching and black magic in devel/qmake5 to move it to mkspecs/freebsd-clang.

This looks more suspicious to me:
> Cups support cannot be enabled due to functionality tests!
> Turn on verbose messaging (-v) to ./configure to see the final report.

Can you try building again with WANT_QT_VERBOSE_CONFIGURE=1?
Comment 3 Mark Millard 2016-01-20 07:33:48 UTC
(In reply to Raphael Kubo da Costa from comment #2)

Ahh. It is another example of libcrypto.so.7 issues. . .

clang++ -c -pipe -g -fstack-protector -fno-strict-aliasing -O2 -Wall -W -fPIE  -I. -I/usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o cups.o cups.cpp
clang++  -o cups cups.o   -L/usr/local/lib -lcups
/usr/bin/ld: warning: libcrypto.so.7, needed by //usr/local/lib/libtspi.so.1, not found (try using -rpath or -rpath-link)
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_DecryptFinal'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_DigestInit'
//usr/local/lib/libtspi.so.1: undefined reference to `ASN1_item_i2d'
//usr/local/lib/libtspi.so.1: undefined reference to `RSA_padding_add_PKCS1_OAEP'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_CIPHER_CTX_block_size'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_CIPHER_iv_length'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_aes_192_cbc'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_CIPHER_CTX_init'
//usr/local/lib/libtspi.so.1: undefined reference to `RSA_verify'
//usr/local/lib/libtspi.so.1: undefined reference to `ASN1_item_new'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_EncryptFinal'
//usr/local/lib/libtspi.so.1: undefined reference to `RSA_size'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_aes_128_ofb'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_DecryptInit'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_aes_256_ecb'
//usr/local/lib/libtspi.so.1: undefined reference to `RSA_public_encrypt'
//usr/local/lib/libtspi.so.1: undefined reference to `ASN1_INTEGER_it'
//usr/local/lib/libtspi.so.1: undefined reference to `ASN1_OCTET_STRING_it'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_EncryptInit'
//usr/local/lib/libtspi.so.1: undefined reference to `ASN1_item_d2i'
//usr/local/lib/libtspi.so.1: undefined reference to `RAND_bytes'
//usr/local/lib/libtspi.so.1: undefined reference to `BN_bin2bn'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_MD_CTX_md'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_CIPHER_CTX_cleanup'
//usr/local/lib/libtspi.so.1: undefined reference to `RSA_new'
//usr/local/lib/libtspi.so.1: undefined reference to `ASN1_item_free'
//usr/local/lib/libtspi.so.1: undefined reference to `RSA_free'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_aes_256_cbc'
//usr/local/lib/libtspi.so.1: undefined reference to `ASN1_INTEGER_get'
//usr/local/lib/libtspi.so.1: undefined reference to `PKCS1_MGF1'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_aes_192_ofb'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_aes_256_ofb'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_DigestFinal'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_des_cbc'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_DecryptUpdate'
//usr/local/lib/libtspi.so.1: undefined reference to `HMAC'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_EncryptUpdate'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_aes_128_cbc'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_des_ede3_ofb'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_des_ede3_cbc'
//usr/local/lib/libtspi.so.1: undefined reference to `RSA_public_decrypt'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_des_ofb'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_sha1'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_MD_size'
//usr/local/lib/libtspi.so.1: undefined reference to `EVP_DigestUpdate'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make[2]: stopped in /usr/obj/portswork/usr/ports/print/qt5-printsupport/work/qtbase-opensource-src-5.4.1/config.tests/unix/cups
Cups disabled.
Cups support cannot be enabled due to functionality tests!
 Turn on verbose messaging (-v) to ./configure to see the final report.
 If you believe this message is in error you may use the continue
 switch (-continue) to ./configure to continue.
===>  Script "configure" failed unexpectedly.
Please report the problem to kde@FreeBSD.org [maintainer] and attach the
"/usr/obj/portswork/usr/ports/print/qt5-printsupport/work/qtbase-opensource-src-5.4.1/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/print/qt5-printsupport
*** Error code 1

Stop.
make: stopped in /usr/ports/print/qt5-printsupport

===>>> make build failed for print/qt5-printsupport
===>>> Aborting update
Comment 4 Mark Millard 2016-01-20 08:21:41 UTC
(In reply to Mark Millard from comment #3)

I can confirm that on both an amd64 context and a rpi2 (arm) one building the port that had installed /usr/local/lib/libtspi.so.1 first allowed "portmaster -DK print/qt5-printsupport" to then work.
Comment 5 Raphael Kubo da Costa freebsd_committer freebsd_triage 2016-01-20 09:17:23 UTC
I'm glad it worked in the end. Closing the issue now.