Bug 1191098
Summary: | cannot build openldap package: Unknown Berkeley DB major version in db.h | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jan Synacek <jsynacek> |
Component: | openldap | Assignee: | Jan Synacek <jsynacek> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | jsynacek, jv+fedora, phracek, praiskup, rmeggins |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openldap-2.4.40-9.fc22 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-02-11 11:35:29 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1190645 |
Description
Jan Synacek
2015-02-10 12:54:05 UTC
Pavel, does this look familiar? Have there been any changes recently in the autotools chain? I'm not even sure how to debug this... Sorry for the delay, my IMAP reader was KO. Grepping says it is OL_BDB_HEADER_VERSION macro. Isn't this related to gcc update to 5.0.0? The check is done via 'cc -E conftest.c', conftest.c contains (something like): #include <db.h> #ifndef DB_VERSION_MAJOR # define DB_VERSION_MAJOR 1 #endif __db_version DB_VERSION_MAJOR Using cpp conftest.c with slightly modified lines: #include <db.h> __db_version (DB_VERSION_MAJOR) shows that new you can not simply grep for __db_version now, output: ) # 2 "conftest.c" __db_version ( # 2 "conftest.c" 3 4 5 # 2 "conftest.c" ) Pavel Hmm, I didn't find anything related to this among the GCC 5 changes. Running cpp with the -P option seems to fix things, thanks! Yep, and making it extra portable, probably checking for '-P' option presence should precede actual 'cc -E' call. |