maintainer-feedback requested: [Bug 228735] dns/kf5-kdnssd: Fix build error when compiled with MDNSRESPONDER option

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jun 4 05:20:57 UTC 2018


Bugzilla Automation <bugzilla at FreeBSD.org> has asked kde at FreeBSD.org for
maintainer-feedback:
Bug 228735: dns/kf5-kdnssd: Fix build error when compiled with MDNSRESPONDER
option
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228735



--- Description ---
Compiling on FreeBSD 11.1 (amd64), I get following error:

    FAILED: src/CMakeFiles/KF5DNSSD.dir/mdnsd-servicebrowser.cpp.o 
    /usr/bin/c++  -DKF5DNSSD_EXPORTS -DQT_CORE_LIB -DQT_DBUS_LIB
-DQT_NETWORK_LIB -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII
-DQT_NO_DEBUG -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING
-DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_QSTRINGBUILDER -D_LARGEFILE64_SOURCE -Isrc
-I/wrkdirs/usr/ports/dns/kf5-kdnssd/work/kdnssd-5.46.0/src
-Isrc/KF5DNSSD_autogen/include -I. -I/usr/local/include -isystem
/usr/local/include/qt5 -isystem /usr/local/include/qt5/QtNetwork -isystem
/usr/local/include/qt5/QtCore -isystem /usr/local/lib/qt5/mkspecs/freebsd-clang
-isystem /usr/local/include/qt5/QtDBus -O2 -pipe -fstack-protector
-fno-strict-aliasing -std=c++0x -fno-operator-names -fno-exceptions
-Wno-gnu-zero-variadic-macro-arguments -Wall -Wextra -Wcast-align
-Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef
-Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time
-fdiagnostics-color=always -pedantic -O2 -pipe -fstack-protector
-fno-strict-aliasing -fPIC -fvisibility=hidden -fvisibility-inlines-hidden  
-fPIC -std=gnu++11 -MD -MT
src/CMakeFiles/KF5DNSSD.dir/mdnsd-servicebrowser.cpp.o -MF
src/CMakeFiles/KF5DNSSD.dir/mdnsd-servicebrowser.cpp.o.d -o
src/CMakeFiles/KF5DNSSD.dir/mdnsd-servicebrowser.cpp.o -c
/wrkdirs/usr/ports/dns/kf5-kdnssd/work/kdnssd-5.46.0/src/mdnsd-servicebrowser.c
pp
   
/wrkdirs/usr/ports/dns/kf5-kdnssd/work/kdnssd-5.46.0/src/mdnsd-servicebrowser.c
pp:102:9:
error: no matching function for call to 'DNSServiceBrowse'
	if (DNSServiceBrowse(&ref, 0, 0, fullType.toLatin1().constData(),
	    ^~~~~~~~~~~~~~~~
    /usr/local/include/dns_sd.h:1488:31: note: candidate function not viable:
no known conversion from 'QByteArray' to 'const char *' for 5th argument
DNSServiceErrorType DNSSD_API DNSServiceBrowse
			      ^
   
/wrkdirs/usr/ports/dns/kf5-kdnssd/work/kdnssd-5.46.0/src/mdnsd-servicebrowser.c
pp:200:61:
warning: unused parameter 'hostname' [-Wunused-parameter]
    QHostAddress ServiceBrowser::resolveHostName(const QString &hostname)
							    ^
    1 warning and 1 error generated.


Complete build log at:

https://people.freebsd.org/~ashish/logs/kf5-kdnssd-5.46.0-11-amd64-default.log


More information about the kde-freebsd mailing list