bundy-dns / bundy

an authoritative DNS server
http://bundy-dns.de/
Other
136 stars 38 forks source link

configure could not find botan on Fedora 20 #95

Closed cstrotm closed 9 years ago

cstrotm commented 9 years ago

On Fedora 20 (am64), the configure script cannot find Botan includes

checking for _Bool... no
checking for size_t... yes
checking OS family... Linux
checking for sa_len in struct sockaddr... no
checking usability of botan-config-1.10 ... ok
checking Botan version... conftest.cpp:1:27: fatal error: botan/version.h: No such file or directory
 #include <botan/version.h>
                           ^
compilation terminated.
unknown
checking botan/botan.h usability... no
checking botan/botan.h presence... no
checking for botan/botan.h... no
configure: error: Missing required header files.

Botan + headers is installed

# find /usr -wholename "*botan/version.h"                                 
/usr/include/botan-1.10/botan/version.h

from config.log

configure:17038: result: no
configure:17262: checking usability of botan-config-1.10 
configure:17289: g++ -o conftest -g -O2 -I/usr/include/botan-1.10  -DOS_LINUX  conftest.cpp -ldl  -lbotan-1.10 -lbz2 -lcrypto -ldl -lgmp -lpthread -lrt -lz >&5
configure:17289: $? = 0
configure:17290: result: ok
configure:17467: checking Botan version
configure:17479: result: unknown
configure:17527: checking botan/botan.h usability
configure:17527: g++ -c -g -O2 -I//include/botan-1.10  -DOS_LINUX conftest.cpp >&5
conftest.cpp:59:25: fatal error: botan/botan.h: No such file or directory
 #include <botan/botan.h>
                         ^
compilation terminated.
configure:17527: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "bundy"
| #define PACKAGE_TARNAME "bundy"
| #define PACKAGE_VERSION "1.2.0"
| #define PACKAGE_STRING "bundy 1.2.0"
| #define PACKAGE_BUGREPORT "bundy-dev@bundy.org"
| #define PACKAGE_URL ""
| #define PACKAGE "bundy"
| #define VERSION "1.2.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_PYTHON_H 1
| #define HAVE_STDBOOL_H 1
| #define OS_LINUX 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <botan/botan.h>
configure:17527: result: no
configure:17527: checking botan/botan.h presence
configure:17527: g++ -E -I//include/botan-1.10  -DOS_LINUX conftest.cpp
conftest.cpp:26:25: fatal error: botan/botan.h: No such file or directory
 #include <botan/botan.h>
                         ^
compilation terminated.
configure:17527: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "bundy"
| #define PACKAGE_TARNAME "bundy"
| #define PACKAGE_VERSION "1.2.0"
| #define PACKAGE_STRING "bundy 1.2.0"
| #define PACKAGE_BUGREPORT "bundy-dev@bundy.org"
| #define PACKAGE_URL ""
| #define PACKAGE "bundy"
| #define VERSION "1.2.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_PYTHON_H 1
| #define HAVE_STDBOOL_H 1
| #define OS_LINUX 1
| /* end confdefs.h.  */
| #include <botan/botan.h>
configure:17527: result: no
configure:17527: checking for botan/botan.h
configure:17527: result: no
configure:17543: error: Missing required header files.
cstrotm commented 9 years ago

botan-config seems to be the culprit:

 botan-config-1.10 --cflags
-I//include/botan-1.10
cstrotm commented 9 years ago

Issue is know upstream https://bugzilla.redhat.com/show_bug.cgi?id=1149208

quick workaround until fixed upstream: in botan-config-1.10

[...]
# For normal builds:
#guess_prefix=`dirname \`dirname $0\``
guess_prefix=/usr
[....]