[Bugs] [Bug 1508947] New: glusterfs: Include path in pkgconfig file is wrong
bugzilla at redhat.com
bugzilla at redhat.com
Thu Nov 2 14:40:42 UTC 2017
https://bugzilla.redhat.com/show_bug.cgi?id=1508947
Bug ID: 1508947
Summary: glusterfs: Include path in pkgconfig file is wrong
Product: GlusterFS
Version: mainline
Component: libgfapi
Severity: low
Assignee: bugs at gluster.org
Reporter: abologna at redhat.com
QA Contact: bugs at gluster.org
CC: bugs at gluster.org
Description of problem:
The include path in glusterfs-api.pc looks like
-I${includedir}/glusterfs
However, client code will include the glusterfs headers using
#include <glusterfs/api/glfs.h>
rather than
#include <api/glfs.h>
which makes the "/glusterfs" part entirely unnecessary.
More importantly, on some platforms such as FreeBSD, the header
files for glusterfs will be installed in /usr/local/include,
which is *not* part of the compiler's default include path, so
compilation will fail with something like
fatal error: 'glusterfs/api/glfs.h' file not found
#include <glusterfs/api/glfs.h>
^~~~~~~~~~~~~~~~~~~~~~
This prevents libvirt (and undoubtedly other software) to enable
glusterfs support on FreeBSD.
Version-Release number of selected component (if applicable):
glusterfs.git master
How reproducible:
Always.
Steps to Reproduce:
1. Build and install glusterfs
2. Build libvirt with glusterfs support enabled
Actual results:
libvirt can't be built.
Expected results:
libvirt can be built :)
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list