Upstream Gluster project version of Bug #1016938 +++ This bug was initially created as a clone of Bug #1016938 +++ Description of problem: I installed glusterfs-api-devel, added a pkg-config line to my configure.ac, then tried to compile. Version-Release number of selected component (if applicable): glusterfs-api-devel-3.4.0-8.fc19.x86_64 How reproducible: 100% Steps to Reproduce: 1. yum install glusterfs-api-devel 2. echo 'int main(){}' > bar.c 3. $ gcc -o bar bar.c $(pkg-config --libs glusterfs-api) Actual results: 3. /usr/bin/ld: cannot find -lglusterfs /usr/bin/ld: cannot find -lgfrpc /usr/bin/ld: cannot find -lgfxdr collect2: error: ld returned 1 exit status Expected results: Pulling in the devel library should also drag in any other packages necessary so that the pkg-config setup works. Additional info: --- Additional comment from Eric Blake on 2013-10-09 05:26:36 CEST --- Looks like 'yum install glusterfs-devel' was enough to fix the link failures, meaning glusterfs-api-devel needs a Requires: glusterfs-devel in its spec file.
REVIEW: http://review.gluster.org/6056 (rpm: glusterfs-api-devel requires glusterfs-devel) posted (#1) for review on master by Niels de Vos (ndevos)
COMMIT: http://review.gluster.org/6056 committed in master by Anand Avati (avati) ------ commit c436b89a7111bbaaed9f034799986ea7c760ce55 Author: Niels de Vos <ndevos> Date: Wed Oct 9 11:13:11 2013 +0200 rpm: glusterfs-api-devel requires glusterfs-devel When installing the glusterfs-api-devel package in order to build software that uses libgfapi, there are unmet dependencies. Installing glusterfs-devel additionally solved these link errors: $ echo 'int main(){}' > bar.c $ gcc -o bar bar.c $(pkg-config --libs glusterfs-api) /usr/bin/ld: cannot find -lglusterfs /usr/bin/ld: cannot find -lgfrpc /usr/bin/ld: cannot find -lgfxdr collect2: error: ld returned 1 exit status Change-Id: I12e922aa6609809c03ec2c9a0d8a47c5df91d0a1 BUG: 1017094 Reported-by: Eric Blake <eblake> Signed-off-by: Niels de Vos <ndevos> Reviewed-on: http://review.gluster.org/6056 Reviewed-by: Bala FA <barumuga> Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Anand Avati <avati>
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.5.0, please reopen this bug report. glusterfs-3.5.0 has been announced on the Gluster Developers mailinglist [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/6137 [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user