Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find the jansson headers #114

Closed
alexzh16 opened this issue Dec 31, 2017 · 4 comments
Closed

Unable to find the jansson headers #114

alexzh16 opened this issue Dec 31, 2017 · 4 comments
Assignees

Comments

@alexzh16
Copy link

Hi,

Centos 7 64bit, fresh install os.
Package jansson-2.10-1.el7.x86_64 already installed and latest version
Package jansson-devel-2.10-1.el7.x86_64 already installed and latest version

bash configure
...
checking for library containing strerror... none required
checking for inline... inline
checking for "dovecot-config"... /usr/lib64/dovecot/dovecot-config
checking whether OS supports plugin dependencies... yes
checking for valgrind... no
checking jansson.h usability... no
checking jansson.h presence... yes
configure: WARNING: jansson.h: present but cannot be compiled
configure: WARNING: jansson.h: check for missing prerequisite headers?
configure: WARNING: jansson.h: see the Autoconf documentation
configure: WARNING: jansson.h: section "Present But Cannot Be Compiled"
configure: WARNING: jansson.h: proceeding with the compiler's result
configure: WARNING: ## ----------------------------------------------------------------------------- ##
configure: WARNING: ## Report this to https://github.com/ceph-dovecot/dovecot-ceph-plugin/issues/new ##
configure: WARNING: ## ----------------------------------------------------------------------------- ##
checking for jansson.h... no
configure: error: Unable to find the jansson headers

@alexzh16
Copy link
Author

UPD> autoconf (GNU Autoconf) 2.69

@alexzh16
Copy link
Author

Fix this error:
in os must be install packet:
yum install redhat-rpm-config
issue this. Please add to readme or check script.
thx

@peter-mauritius
Copy link
Collaborator

Hi,

I am currently on vacation but I will look at the spec file next week. Thanks for your issue.

Peter

@jrse jrse self-assigned this Jan 2, 2018
jrse added a commit that referenced this issue Jan 3, 2018
@peter-mauritius peter-mauritius assigned mschroth and unassigned jrse Jan 9, 2018
@jrse
Copy link
Contributor

jrse commented Feb 26, 2018

To build the plugin on centOS 7 minimal you need to have all recommend development tools installed.
the easiest way is to use
yum group installl "Development Tools" additionally to the jansson package.

However there is the other thing that centos 7 comes with librados-devel package version 0.94.5 which is pretty old and not supported by our plugin. So you need to find a librados-devel package in a newer version or build ceph by your own, which is straight forward but takes some time. Have a look at http://docs.ceph.com/docs/master/install/build-ceph/ for ceph build instructions. Keep in mind that centos 7 gcc version 4.8.5 is pretty old, so http://docs.ceph.com/docs/master/dev/cxx/ may be of interrest.

@jrse jrse closed this as completed Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants