These files do not belong under /usr/include: /usr/include/libmapi++/examples/foldertree /usr/include/libmapi++/examples/foldertree.cpp /usr/include/libmapi++/examples/messages /usr/include/libmapi++/examples/messages.cpp The *.cpp files probably belong into /usr/share/doc/openchange. If foldertree and messages (the program binaries) are kept, they need to be build with the standard Fedora linker flags from redhat-rpm-config. See https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/buildflags.md for information on RPM macros and environment variables provided by the build environment.
Thanks for a bug report. It looks like some leftover from the very early times of openchange, forgotten to be removed once the issue got fixed upstream. This is included in the next release in rawhide and Fedora 28.
openchange-2.3-21.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-e323d9d08f
openchange-2.3-21.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-e323d9d08f
openchange-2.3-21.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.