QT5-DECLARATIVE FreeBSD compile issues

Bengt Ahlgren bengt.ahlgren at ri.se
Tue Mar 2 08:23:39 GMT 2021


Jason Naughton <jnaughto at ryerson.ca> writes:

> Well I am using openssl in the ports tree and also do have the line in my
> make.conf:
>
> DEFAULT_VERSIONS+= ssl=openssl
>
> I doubt that the error is to do with openssl.   Bengt what are the
> following two compile options that you've identified?
>
> OPTIONS_UNSET+= GSSAPI_BASE
> OPTIONS_SET+= GSSAPI_NONE

I do not know the details, but GSSAPI in base is incompatible with
openssl from ports.

I agree that your error has nothing to do with openssl.  I just wanted
to say that it is possible to build QT5 etc on 11.4, provided that you
tweak some options.

Bengt

> Cheers
>
> Jason Naughton M.E.Sc, P.Eng,  Lead Engineer,
> Electrical, Computer, and BioMedical Engineering, Ryerson University
> 245 Church St., Toronto, Ontario, M5B 2K3
> Office:  (416)-979-5000 x557168   Fax:      (416)-979-5280
>
>
> On Mon, Mar 1, 2021 at 5:44 AM Bengt Ahlgren <bengt.ahlgren at ri.se> wrote:
>
>> Hi Tobias, All,
>>
>> I regularly build kf5 and virtualbox-ose on 11.4-REL without too much
>> hassle using:
>>
>> DEFAULT_VERSIONS+= ssl=openssl
>>
>> There are some other ports that need option tweaks in addition to this.
>> A common one is:
>>
>> OPTIONS_UNSET+= GSSAPI_BASE
>> OPTIONS_SET+= GSSAPI_NONE
>>
>> For git I recommend:
>>
>> OPTIONS_UNSET+= SEND_EMAIL
>>
>> But you do need to build a complete package set with poudriere so that
>> all of them use openssl from ports!
>>
>> Bengt
>>
>> Ps. Thanks Tobias and the rest of the KDE FreeBSD team for you great
>> work!
>>
>> "Tobias C. Berner" <tcberner at gmail.com> writes:
>>
>> > Moin moin
>> >
>> > Unfortunately we cannot really support FreeBSD 11.x anymore for Qt --
>> > with the switch to Qt5 5.15
>> > we had to drop support for it, due to its outdated OpenSSL version in
>> > base, which does not work with
>> > qt5-networks requirements.
>> > As qt5-declarative also depends on qt5-network, this is completely
>> > untested, and may likely also fail
>> > with the compiler version present in FreeBSD 11.x.
>> >
>> > My recommendation would be to update to a more current version
>> > FreeBSD, like for example 12.x or
>> > the soon to be released 13.x.
>> >
>> > mfg Tobias
>> >
>> > On Mon, 1 Mar 2021 at 09:47, Jason Naughton <jnaughto at ryerson.ca> wrote:
>> >>
>> >> Hi all,
>> >>
>> >> I'm attempting to compile virtualbox-ose on FreeBSD 11.4 but it fails
>> to compile due to a dependency on qt5-declarative.  I'm compiling 5.15.2
>> The compile stops at:
>> >>
>> >> c++ -c -O2 -pipe -fstack-protector-strong -fno-strict-aliasing
>> -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions
>> -Wall -Wextra -Wdate-time -Winconsistent-missing-override -pthread -fPIC
>> -DQT_NO_LINKED_LIST -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS
>> -DQT_ACCESSIBILITY -DQT_NO_URL_CAST_FROM_STRING
>> -DQT_NO_INTEGER_EVENT_COORDINATES -DQT_NO_FOREACH
>> -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_QUICK_LIB
>> -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS
>> -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS
>> -DQT_DISABLE_DEPRECATED_BEFORE=0x050000
>> -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_EXCEPTIONS
>> -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_QMLMODELS_LIB
>> -DQT_QML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NETWORK_LIB
>> -DQT_CORE_LIB -I. -I. -I../../include -I../../include/QtQuick
>> -I../../include/QtQuick/5.15.2 -I../../include/QtQuick/5.15.2/QtQuick
>> -I.tracegen -I../../include/QtQmlModels/5.15.2
>> -I../../include/QtQmlModels/5.15.2/QtQmlModels -I../../include/QtQml/5.15.2
>> -I../../include/QtQml/5.15.2/QtQml -I../../include/QtQmlModels
>> -I../../include/QtQml -I/usr/local/include/qt5/QtGui/5.14.2
>> -I/usr/local/include/qt5/QtGui/5.14.2/QtGui
>> -I/usr/local/include/qt5/QtCore/5.15.2
>> -I/usr/local/include/qt5/QtCore/5.15.2/QtCore -I/usr/local/include/qt5
>> -I/usr/local/include/qt5/QtGui -I/usr/local/include/qt5/QtNetwork
>> -I/usr/local/include/qt5/QtCore -I.moc -I/usr/local/include/libdrm
>> -I/usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o
>> .obj/qsgrenderer.o scenegraph/coreapi/qsgrenderer.cpp
>> >> --- .obj/qquickglobal.o ---
>> >> util/qquickglobal.cpp:816:17: error: no viable overloaded '='
>> >>             dst = *srcT;
>> >>             ~~~ ^ ~~~~~
>> >> util/qquickglobal.cpp:828:20: note: in instantiation of function
>> template specialization 'QQuickValueTypeProvider::typedWrite<QColorSpace>'
>> requested here
>> >>             return typedWrite<QColorSpace>(src, dst);
>> >>                    ^
>> >> /usr/local/include/qt5/QtCore/qvariant.h:275:15: note: candidate
>> function not viable: no known conversion from 'const QColorSpace' to 'const
>> QVariant' for 1st argument
>> >>     QVariant& operator=(const QVariant &other);
>> >>               ^
>> >> /usr/local/include/qt5/QtCore/qvariant.h:278:22: note: candidate
>> function not viable: no known conversion from 'const QColorSpace' to
>> 'QVariant' for 1st argument
>> >>     inline QVariant &operator=(QVariant &&other) noexcept
>> >>                      ^
>> >> 1 error generated.
>> >> *** [.obj/qquickglobal.o] Error code 1
>> >>
>> >> make[3]: stopped in
>> /usr/ports/x11-toolkits/qt5-declarative/work/qtdeclarative-everywhere-src-5.15.2/src/quick
>> >> 1 error
>> >>
>> >> make[3]: stopped in
>> /usr/ports/x11-toolkits/qt5-declarative/work/qtdeclarative-everywhere-src-5.15.2/src/quick
>> >> *** [sub-quick-all-ordered] Error code 2
>> >>
>> >> make[2]: stopped in
>> /usr/ports/x11-toolkits/qt5-declarative/work/qtdeclarative-everywhere-src-5.15.2/src
>> >> 1 error
>> >>
>> >> make[2]: stopped in
>> /usr/ports/x11-toolkits/qt5-declarative/work/qtdeclarative-everywhere-src-5.15.2/src
>> >> *** [sub-src-all] Error code 2
>> >>
>> >> make[1]: stopped in
>> /usr/ports/x11-toolkits/qt5-declarative/work/qtdeclarative-everywhere-src-5.15.2
>> >> 1 error
>> >>
>> >> make[1]: stopped in
>> /usr/ports/x11-toolkits/qt5-declarative/work/qtdeclarative-everywhere-src-5.15.2
>> >> ===> Compilation failed unexpectedly.
>> >> Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the
>> failure to
>> >> the maintainer.
>> >> *** Error code 1
>> >>
>> >>
>> >> Stop.
>> >> make: stopped in /usr/ports/x11-toolkits/qt5-declarative
>> >>
>> >> Any Idea how to resolve this?
>> >>
>> >> Cheers
>> >>
>> >> Jason Naughton M.E.Sc, P.Eng,  Lead Engineer,
>> >> Electrical, Computer, and BioMedical Engineering, Ryerson University
>> >> 245 Church St., Toronto, Ontario, M5B 2K3
>> >> Office:  (416)-979-5000 x557168   Fax:      (416)-979-5280


More information about the kde-freebsd mailing list