As can be seen here: http://pkgs.fedoraproject.org/cgit/rpms/libsrtp.git/tree/libsrtp.spec The libsrtp spec file uses its own hand-written copy of libsrtp.pc instead of the one shipped and built by upstream: https://github.com/cisco/libsrtp/blob/v1.5.4/libsrtp.pc.in This causes a number of issues: 1) The version is wrong (outdated) 2) The upstream project URL is wrong (outdated) 3) The "Cflags" value is wrong. Everyone includes srtp headers as <srtp/err.h> etc. (3) in particular is very bad because libsrtp ships srtp/config.h, and if /usr/include/srtp is in the include path, autotools projects can include that as config.h instead of the output of configure and fail to build. The fix is to use the pkg-config file shipped by upstream.
It's actually even worse. That directory has several other headers with common names that should never pollute the include namespace. Some choice examples: err.h rtp.h crypto.h aes.h auth.h cipher.h alloc.h datatypes.h stat.h (!) This is more severe than I thought...
You're absolutely right. The Fedora specific .pc file dates back from an era where there wasn't an upstream .pc file (and the source code was different then too). I'm fixing this in rawhide right now, and I'll review the stable branches to see if it needs fixing there too.
libsrtp-1.5.4-3.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-200692e169
libsrtp-1.5.4-3.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-ed8b2d49bd
(In reply to Tom "spot" Callaway from comment #2) > You're absolutely right. The Fedora specific .pc file dates back from an era > where there wasn't an upstream .pc file (and the source code was different > then too). I'm fixing this in rawhide right now, and I'll review the stable > branches to see if it needs fixing there too. Thanks so much for looking into and fixing this so quickly!
libsrtp-1.5.4-3.fc22 has been pushed to the Fedora 22 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-2016-200692e169
libsrtp-1.5.4-3.fc23 has been pushed to the Fedora 23 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-2016-ed8b2d49bd
libsrtp-1.5.4-3.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
libsrtp-1.5.4-3.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.