Fix build on OpenBSD
We need to define "NPT_CONFIG_HAVE_GETADDRINFO" on OpenBSD. Otherwise we end up with the following issue:
[31/550] Linking CXX executable bin/filemediaserver_cli
FAILED: bin/filemediaserver_cli
: && /usr/bin/c++ -fno-operator-names -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 -Werror=init-self -Wvla -Wdate-time -fdiagnostics-color=always -Wno-inconsistent-missing-override -fexceptions -fexceptions -g -Wl,--enable-new-dtags core/tests/mediaserver/CMakeFiles/filemediaserver_cli.dir/filemediaserver_cli_autogen/mocs_compilation.cpp.o core/tests/mediaserver/CMakeFiles/filemediaserver_cli.dir/__/__/dplugins/generic/tools/mediaserver/upnpsdk/Platinum/Source/Tests/FileMediaServer/FileMediaServerTest.cpp.o -o bin/filemediaserver_cli -Wl,-z,origin,-rpath,/usr/local/lib/qt5/.:/usr/local/lib:/home/rsadowski/build/bin:/usr/X11R6/lib lib/libmediaserverbackend.a /usr/local/lib/qt5/./libQt5Test.so.3.1 /usr/local/lib/libjpeg.so.70.2 /usr/local/lib/liblcms2.so.1.5 /usr/lib/libexpat.so.14.0 -lpthread /usr/local/lib/libgphoto2.so.5.0 /usr/local/lib/libgphoto2_port.so.9.0 /usr/local/lib/libusb-1.0.so.2.0 /usr/local/lib/libMagick++-6.Q16.so.5.2 /usr/local/lib/libMagickCore-6.Q16.so.8.2 /usr/local/lib/libMagickWand-6.Q16.so.4.2 /usr/local/lib/liblensfun.so.2.1 /usr/local/lib/libjasper.so.6.1 /usr/local/lib/libjpeg.so.70.2 /usr/lib/libm.so.10.1 bin/libdigikamcore.so.8.3.0 /usr/local/lib/qt5/./libQt5Sql.so.3.0 /usr/local/lib/libKF5XmlGui.so.7.0 /usr/local/lib/libopencv_objdetect.so.13.0 /usr/local/lib/libopencv_calib3d.so.13.0 /usr/local/lib/libopencv_features2d.so.13.0 /usr/local/lib/libopencv_imgcodecs.so.13.0 /usr/local/lib/libopencv_dnn.so.13.0 /usr/local/lib/libopencv_imgproc.so.13.0 /usr/local/lib/libopencv_flann.so.13.0 /usr/local/lib/qt5/./libQt5WebEngineWidgets.so.2.0 /usr/local/lib/qt5/./libQt5WebEngineCore.so.2.0 /usr/local/lib/qt5/./libQt5WebChannel.so.2.1 /usr/local/lib/qt5/./libQt5Positioning.so.3.0 /usr/local/lib/qt5/./libQt5Quick.so.6.1 /usr/local/lib/qt5/./libQt5QmlModels.so.0.1 /usr/local/lib/qt5/./libQt5Qml.so.4.0 /usr/local/lib/libKF5Notifications.so.7.0 /usr/local/lib/qt5/./libQt5PrintSupport.so.3.0 /usr/local/lib/libopencv_core.so.13.0 /usr/local/lib/libKF5Solid.so.8.0 /usr/local/lib/libKF5ConfigWidgets.so.6.0 /usr/local/lib/libKF5Codecs.so.6.2 /usr/local/lib/libKF5Auth.so.6.0 /usr/local/lib/qt5/./libQt5Concurrent.so.4.1 /usr/local/lib/libKF5Service.so.8.0 /usr/local/lib/libKF5I18n.so.7.0 /usr/local/lib/qt5/./libQt5Network.so.4.0 /usr/local/lib/libKF5AuthCore.so.3.0 /usr/local/lib/libKF5CoreAddons.so.9.1 /usr/local/lib/libKF5WidgetsAddons.so.7.0 /usr/local/lib/libKF5ConfigGui.so.8.0 /usr/local/lib/qt5/./libQt5Xml.so.3.0 /usr/local/lib/libKF5ConfigCore.so.8.0 /usr/local/lib/qt5/./libQt5DBus.so.3.0 /usr/local/lib/qt5/./libQt5Widgets.so.4.1 /usr/local/lib/qt5/./libQt5Gui.so.4.1 /usr/local/lib/qt5/./libQt5Core.so.5.0 /usr/local/lib/liblcms2.so.1.5 /usr/lib/libexpat.so.14.0 /usr/local/lib/libgphoto2.so.5.0 /usr/local/lib/libgphoto2_port.so.9.0 /usr/local/lib/libusb-1.0.so.2.0 /usr/local/lib/libMagick++-6.Q16.so.5.2 /usr/local/lib/libMagickCore-6.Q16.so.8.2 /usr/local/lib/libMagickWand-6.Q16.so.4.2 /usr/local/lib/liblensfun.so.2.1 /usr/local/lib/libjasper.so.6.1 -lpthread /usr/lib/libm.so.10.1 -Wl,-rpath-link,/usr/local/lib/qt5/.:/usr/local/lib:/usr/X11R6/lib && :
NptPosixSystem.cpp:200 (/home/rsadowski/src/invent.kde.org/digikam/core/dplugins/generic/tools/mediaserver/upnpsdk/Neptune/Source/System/Posix/NptPosixSystem.cpp:200)(NptPosixSystem.cpp.o:(NPT_System::GetRandomInteger()) in archive lib/libmediaserverbackend.a): warning: rand() may return deterministic values, is that what you want?
ld: error: undefined symbol: NPT_NetworkNameResolver::Resolve(char const*, NPT_List<NPT_IpAddress>&, int)
>>> referenced by NptBsdSockets.cpp:679 (/home/rsadowski/src/invent.kde.org/digikam/core/dplugins/generic/tools/mediaserver/upnpsdk/Neptune/Source/System/Bsd/NptBsdSockets.cpp:679)
>>> NptBsdSockets.cpp.o:(NPT_IpAddress::ResolveName(char const*, int)) in archive lib/libmediaserverbackend.a
c++: error: linker command failed with exit code 1 (use -v to see invocation)
[34/550] Linking CXX executable bin/dmediaserver_cli
FAILED: bin/dmediaserver_cli
: && /usr/bin/c++ -fno-operator-names -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 -Werror=init-self -Wvla -Wdate-time -fdiagnostics-color=always -Wno-inconsistent-missing-override -fexceptions -fexceptions -g -Wl,--enable-new-dtags core/tests/mediaserver/CMakeFiles/dmediaserver_cli.dir/dmediaserver_cli_autogen/mocs_compilation.cpp.o core/tests/mediaserver/CMakeFiles/dmediaserver_cli.dir/dmediaserver_cli.cpp.o -o bin/dmediaserver_cli -Wl,-z,origin,-rpath,/home/rsadowski/build/bin:/usr/local/lib/qt5/.:/usr/local/lib:/usr/X11R6/lib lib/libmediaserverbackend.a bin/libdigikamcore.so.8.3.0 /usr/local/lib/qt5/./libQt5Test.so.3.1 /usr/local/lib/qt5/./libQt5Sql.so.3.0 /usr/local/lib/libKF5XmlGui.so.7.0 /usr/local/lib/libjpeg.so.70.2 /usr/local/lib/liblcms2.so.1.5 /usr/lib/libexpat.so.14.0 -lpthread /usr/local/lib/libopencv_objdetect.so.13.0 /usr/local/lib/libopencv_imgcodecs.so.13.0 /usr/local/lib/libopencv_dnn.so.13.0 /usr/local/lib/qt5/./libQt5WebEngineWidgets.so.2.0 /usr/local/lib/libKF5Notifications.so.7.0 /usr/local/lib/libgphoto2.so.5.0 /usr/local/lib/libgphoto2_port.so.9.0 /usr/local/lib/libusb-1.0.so.2.0 /usr/local/lib/libMagick++-6.Q16.so.5.2 /usr/local/lib/libMagickCore-6.Q16.so.8.2 /usr/local/lib/libMagickWand-6.Q16.so.4.2 /usr/local/lib/liblensfun.so.2.1 /usr/local/lib/libjasper.so.6.1 /usr/local/lib/libjpeg.so.70.2 /usr/lib/libm.so.10.1 /usr/local/lib/libopencv_calib3d.so.13.0 /usr/local/lib/libopencv_features2d.so.13.0 /usr/local/lib/libopencv_imgproc.so.13.0 /usr/local/lib/libopencv_flann.so.13.0 /usr/local/lib/qt5/./libQt5WebEngineCore.so.2.0 /usr/local/lib/qt5/./libQt5WebChannel.so.2.1 /usr/local/lib/qt5/./libQt5Positioning.so.3.0 /usr/local/lib/qt5/./libQt5Quick.so.6.1 /usr/local/lib/qt5/./libQt5QmlModels.so.0.1 /usr/local/lib/qt5/./libQt5Qml.so.4.0 /usr/local/lib/qt5/./libQt5PrintSupport.so.3.0 /usr/local/lib/libopencv_core.so.13.0 /usr/local/lib/libKF5Solid.so.8.0 /usr/local/lib/libKF5ConfigWidgets.so.6.0 /usr/local/lib/libKF5Codecs.so.6.2 /usr/local/lib/libKF5Auth.so.6.0 /usr/local/lib/qt5/./libQt5Concurrent.so.4.1 /usr/local/lib/libKF5Service.so.8.0 /usr/local/lib/libKF5I18n.so.7.0 /usr/local/lib/qt5/./libQt5Network.so.4.0 /usr/local/lib/libKF5AuthCore.so.3.0 /usr/local/lib/libKF5CoreAddons.so.9.1 /usr/local/lib/libKF5WidgetsAddons.so.7.0 /usr/local/lib/libKF5ConfigGui.so.8.0 /usr/local/lib/qt5/./libQt5Xml.so.3.0 /usr/local/lib/libKF5ConfigCore.so.8.0 /usr/local/lib/qt5/./libQt5DBus.so.3.0 /usr/local/lib/qt5/./libQt5Widgets.so.4.1 /usr/local/lib/qt5/./libQt5Gui.so.4.1 /usr/local/lib/qt5/./libQt5Core.so.5.0 /usr/local/lib/liblcms2.so.1.5 /usr/lib/libexpat.so.14.0 /usr/local/lib/libgphoto2.so.5.0 /usr/local/lib/libgphoto2_port.so.9.0 /usr/local/lib/libusb-1.0.so.2.0 /usr/local/lib/libMagick++-6.Q16.so.5.2 /usr/local/lib/libMagickCore-6.Q16.so.8.2 /usr/local/lib/libMagickWand-6.Q16.so.4.2 /usr/local/lib/liblensfun.so.2.1 /usr/local/lib/libjasper.so.6.1 -lpthread /usr/lib/libm.so.10.1 -Wl,-rpath-link,/usr/local/lib/qt5/.:/usr/local/lib:/usr/X11R6/lib && :
NptPosixSystem.cpp:200 (/home/rsadowski/src/invent.kde.org/digikam/core/dplugins/generic/tools/mediaserver/upnpsdk/Neptune/Source/System/Posix/NptPosixSystem.cpp:200)(NptPosixSystem.cpp.o:(NPT_System::GetRandomInteger()) in archive lib/libmediaserverbackend.a): warning: rand() may return deterministic values, is that what you want?
ld: error: undefined symbol: NPT_NetworkNameResolver::Resolve(char const*, NPT_List<NPT_IpAddress>&, int)
>>> referenced by NptBsdSockets.cpp:679 (/home/rsadowski/src/invent.kde.org/digikam/core/dplugins/generic/tools/mediaserver/upnpsdk/Neptune/Source/System/Bsd/NptBsdSockets.cpp:679)
>>> NptBsdSockets.cpp.o:(NPT_IpAddress::ResolveName(char const*, int)) in archive lib/libmediaserverbackend.a
c++: error: linker command failed with exit code 1 (use -v to see invocation)
[44/550] Building CXX object core/tests/iojobs/CMakeFiles/IOJobsTest.dir/iojobs_utest.cpp.o
ninja: build stopped: subcommand failed.