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

ldns headers not found #66

Closed
zpravaiz opened this issue Dec 27, 2015 · 24 comments

Comments

Projects
None yet
3 participants
@zpravaiz
Copy link

commented Dec 27, 2015

Hi,
I am trying to update my existing passivedns. While recompiling i get following error.
checking for ldns/ldns.h... no
-e
ERROR! ldns headers not found

Al thought i have all dependencies installed

bash-3.2$ brew install autoconf ldns jansson
Warning: autoconf-2.69 already installed
Warning: ldns-1.6.17_1 already installed
Warning: jansson-2.7 already installed

I pulled latest update already but still it cause error.

I am using OSX 10.11.2 EI Captain.

Thanks

@thus

This comment has been minimized.

Copy link
Collaborator

commented Dec 27, 2015

The only thing autoconf is looking for is the presence of the ldns header (ldns/ldns.h). Could you try to find out where it is installed and specify it manually using "--with-ldns-includes=" (e.g /usr/include) when running configure?

@zpravaiz

This comment has been minimized.

Copy link
Author

commented Dec 27, 2015

I tried with these options but still no luck.

@richardkennedy

This comment has been minimized.

Copy link

commented Dec 29, 2015

Same problem here with CentOS 6.7 (Final), the file is located at /usr/include/ldns/ldns.h.
Using --with-ldns-includes= results in the same issue:

checking for ldns/ldns.h... no
ERROR! ldns headers not found

@thus

This comment has been minimized.

Copy link
Collaborator

commented Jan 2, 2016

@richardkennedy: I managed to reproduce your issue using the same CentOS version. It looks like newer versions of ldns require openssl to function correctly, but it seems like it's not installed when installing ldns using yum. I managed to get configure to complete after installing the openssl-devel package. Could you try if this works for you too?

@zpravaiz: Could you check config.log if this applies to your problem as well? Try installing openssl and see if that solves your problem.

@zpravaiz

This comment has been minimized.

Copy link
Author

commented Jan 3, 2016

Hi,

I have openssl install via brew. I have passivedns 1.1.3 running successfully. I am trying to upgrade 1.2.

Here is my config.log

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define EXTENSIONS... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking for pcap_loop in -lpcap... yes
checking ldns/ldns.h usability... no
checking ldns/ldns.h presence... no
checking for ldns/ldns.h... no
-e
ERROR! ldns headers not found

[Sun Jan 3 19:48:31 2016] pzafar@Zafars-MacBook-Pro /Users/pzafar/passivedns (1)

cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by passivedns configure 1.2.0, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure

---------

Platform.

---------

hostname = Zafars-MacBook-Pro.local
uname -m = x86_64
uname -r = 15.2.0
uname -s = Darwin
uname -v = Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64

/usr/bin/uname -p = i386
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 16.00 gigabytes
Default processor set: 304 tasks, 1544 threads, 8 processors
Load average: 1.21, Mach factor: 6.78
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /opt/X11/bin
PATH: /usr/local/MacGPG2/bin

-----------

Core tests.

-----------

configure:2329: checking for a BSD-compatible install
configure:2397: result: /usr/bin/install -c
configure:2408: checking whether build environment is sane
configure:2463: result: yes
configure:2614: checking for a thread-safe mkdir -p
configure:2653: result: ./install-sh -c -d
configure:2660: checking for gawk
configure:2690: result: no
configure:2660: checking for mawk
configure:2690: result: no
configure:2660: checking for nawk
configure:2690: result: no
configure:2660: checking for awk
configure:2676: found /usr/bin/awk
configure:2687: result: awk
configure:2698: checking whether make sets $(MAKE)
configure:2720: result: yes
configure:2749: checking whether make supports nested variables
configure:2766: result: yes
configure:2904: checking for style of include used by make
configure:2932: result: GNU
configure:3003: checking for gcc
configure:3019: found /usr/bin/gcc
configure:3030: result: gcc
configure:3259: checking for C compiler version
configure:3268: gcc --version >&5
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
configure:3279: $? = 0
configure:3268: gcc -v >&5
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
configure:3279: $? = 0
configure:3268: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3279: $? = 1
configure:3268: gcc -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:3279: $? = 1
configure:3299: checking whether the C compiler works
configure:3321: gcc conftest.c >&5
configure:3325: $? = 0
configure:3373: result: yes
configure:3376: checking for C compiler default output file name
configure:3378: result: a.out
configure:3384: checking for suffix of executables
configure:3391: gcc -o conftest conftest.c >&5
configure:3395: $? = 0
configure:3417: result:
configure:3439: checking whether we are cross compiling
configure:3447: gcc -o conftest conftest.c >&5
configure:3451: $? = 0
configure:3458: ./conftest
configure:3462: $? = 0
configure:3477: result: no
configure:3482: checking for suffix of object files
configure:3504: gcc -c conftest.c >&5
configure:3508: $? = 0
configure:3529: result: o
configure:3533: checking whether we are using the GNU C compiler
configure:3552: gcc -c conftest.c >&5
configure:3552: $? = 0
configure:3561: result: yes
configure:3570: checking whether gcc accepts -g
configure:3590: gcc -c -g conftest.c >&5
configure:3590: $? = 0
configure:3631: result: yes
configure:3648: checking for gcc option to accept ISO C89
configure:3711: gcc -c -g -O2 conftest.c >&5
configure:3711: $? = 0
configure:3724: result: none needed
configure:3749: checking whether gcc understands -c and -o together
configure:3771: gcc -c conftest.c -o conftest2.o
configure:3774: $? = 0
configure:3771: gcc -c conftest.c -o conftest2.o
configure:3774: $? = 0
configure:3786: result: yes
configure:3805: checking dependency style of gcc
configure:3916: result: gcc3
configure:3937: checking how to run the C preprocessor
configure:3968: gcc -E conftest.c
configure:3968: $? = 0
configure:3982: gcc -E conftest.c
conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^
1 error generated.
configure:3982: $? = 1
configure: failed program was:
| /* confdefs.h /
| #define PACKAGE_NAME "passivedns"
| #define PACKAGE_TARNAME "passivedns"
| #define PACKAGE_VERSION "1.2.0"
| #define PACKAGE_STRING "passivedns 1.2.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "passivedns"
| #define VERSION "1.2.0"
| /
end confdefs.h. /
| #include <ac_nonexistent.h>
configure:4007: result: gcc -E
configure:4027: gcc -E conftest.c
configure:4027: $? = 0
configure:4041: gcc -E conftest.c
conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^
1 error generated.
configure:4041: $? = 1
configure: failed program was:
| /
confdefs.h /
| #define PACKAGE_NAME "passivedns"
| #define PACKAGE_TARNAME "passivedns"
| #define PACKAGE_VERSION "1.2.0"
| #define PACKAGE_STRING "passivedns 1.2.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "passivedns"
| #define VERSION "1.2.0"
| /
end confdefs.h. /
| #include <ac_nonexistent.h>
configure:4070: checking for grep that handles long lines and -e
configure:4128: result: /usr/bin/grep
configure:4133: checking for egrep
configure:4195: result: /usr/bin/grep -E
configure:4200: checking for ANSI C header files
configure:4220: gcc -c -g -O2 conftest.c >&5
configure:4220: $? = 0
configure:4293: gcc -o conftest -g -O2 conftest.c >&5
configure:4293: $? = 0
configure:4293: ./conftest
configure:4293: $? = 0
configure:4304: result: yes
configure:4317: checking for sys/types.h
configure:4317: gcc -c -g -O2 conftest.c >&5
configure:4317: $? = 0
configure:4317: result: yes
configure:4317: checking for sys/stat.h
configure:4317: gcc -c -g -O2 conftest.c >&5
configure:4317: $? = 0
configure:4317: result: yes
configure:4317: checking for stdlib.h
configure:4317: gcc -c -g -O2 conftest.c >&5
configure:4317: $? = 0
configure:4317: result: yes
configure:4317: checking for string.h
configure:4317: gcc -c -g -O2 conftest.c >&5
configure:4317: $? = 0
configure:4317: result: yes
configure:4317: checking for memory.h
configure:4317: gcc -c -g -O2 conftest.c >&5
configure:4317: $? = 0
configure:4317: result: yes
configure:4317: checking for strings.h
configure:4317: gcc -c -g -O2 conftest.c >&5
configure:4317: $? = 0
configure:4317: result: yes
configure:4317: checking for inttypes.h
configure:4317: gcc -c -g -O2 conftest.c >&5
configure:4317: $? = 0
configure:4317: result: yes
configure:4317: checking for stdint.h
configure:4317: gcc -c -g -O2 conftest.c >&5
configure:4317: $? = 0
configure:4317: result: yes
configure:4317: checking for unistd.h
configure:4317: gcc -c -g -O2 conftest.c >&5
configure:4317: $? = 0
configure:4317: result: yes
configure:4330: checking minix/config.h usability
configure:4330: gcc -c -g -O2 conftest.c >&5
conftest.c:54:10: fatal error: 'minix/config.h' file not found
#include <minix/config.h>
^
1 error generated.
configure:4330: $? = 1
configure: failed program was:
| /
confdefs.h /
| #define PACKAGE_NAME "passivedns"
| #define PACKAGE_TARNAME "passivedns"
| #define PACKAGE_VERSION "1.2.0"
| #define PACKAGE_STRING "passivedns 1.2.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "passivedns"
| #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
| /
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 <minix/config.h>
configure:4330: result: no
configure:4330: checking minix/config.h presence
configure:4330: gcc -E conftest.c
conftest.c:21:10: fatal error: 'minix/config.h' file not found
#include <minix/config.h>
^
1 error generated.
configure:4330: $? = 1
configure: failed program was:
| /
confdefs.h /
| #define PACKAGE_NAME "passivedns"
| #define PACKAGE_TARNAME "passivedns"
| #define PACKAGE_VERSION "1.2.0"
| #define PACKAGE_STRING "passivedns 1.2.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "passivedns"
| #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
| /
end confdefs.h. /
| #include <minix/config.h>
configure:4330: result: no
configure:4330: checking for minix/config.h
configure:4330: result: no
configure:4351: checking whether it is safe to define EXTENSIONS
configure:4369: gcc -c -g -O2 conftest.c >&5
configure:4369: $? = 0
configure:4376: result: yes
configure:4443: checking for gcc
configure:4470: result: gcc
configure:4699: checking for C compiler version
configure:4708: gcc --version >&5
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
configure:4719: $? = 0
configure:4708: gcc -v >&5
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
configure:4719: $? = 0
configure:4708: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:4719: $? = 1
configure:4708: gcc -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:4719: $? = 1
configure:4723: checking whether we are using the GNU C compiler
configure:4751: result: yes
configure:4760: checking whether gcc accepts -g
configure:4821: result: yes
configure:4838: checking for gcc option to accept ISO C89
configure:4914: result: none needed
configure:4939: checking whether gcc understands -c and -o together
configure:4976: result: yes
configure:4995: checking dependency style of gcc
configure:5106: result: gcc3
configure:5178: checking pcap.h usability
configure:5178: gcc -c -g -O2 conftest.c >&5
configure:5178: $? = 0
configure:5178: result: yes
configure:5178: checking pcap.h presence
configure:5178: gcc -E conftest.c
configure:5178: $? = 0
configure:5178: result: yes
configure:5178: checking for pcap.h
configure:5178: result: yes
configure:5193: checking for pcap_loop in -lpcap
configure:5218: gcc -o conftest -g -O2 -lpcap conftest.c -lpcap >&5
configure:5218: $? = 0
configure:5227: result: yes
configure:5276: checking ldns/ldns.h usability
configure:5276: gcc -c -g -O2 conftest.c >&5
conftest.c:60:10: fatal error: 'ldns/ldns.h' file not found
#include <ldns/ldns.h>
^
1 error generated.
configure:5276: $? = 1
configure: failed program was:
| /
confdefs.h _/
| #define PACKAGE_NAME "passivedns"
| #define PACKAGE_TARNAME "passivedns"
| #define PACKAGE_VERSION "1.2.0"
| #define PACKAGE_STRING "passivedns 1.2.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "passivedns"
| #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 EXTENSIONS 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define TANDEM_SOURCE 1
| #define HAVE_LIBPCAP 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 <ldns/ldns.h>
configure:5276: result: no
configure:5276: checking ldns/ldns.h presence
configure:5276: gcc -E conftest.c
conftest.c:27:10: fatal error: 'ldns/ldns.h' file not found
#include <ldns/ldns.h>
^
1 error generated.
configure:5276: $? = 1
configure: failed program was:
| /
confdefs.h _/
| #define PACKAGE_NAME "passivedns"
| #define PACKAGE_TARNAME "passivedns"
| #define PACKAGE_VERSION "1.2.0"
| #define PACKAGE_STRING "passivedns 1.2.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "passivedns"
| #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 EXTENSIONS 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define TANDEM_SOURCE 1
| #define HAVE_LIBPCAP 1
| /
end confdefs.h. */
| #include <ldns/ldns.h>
configure:5276: result: no
configure:5276: checking for ldns/ldns.h
configure:5276: result: no

----------------

Cache variables.

----------------

ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_header_inttypes_h=yes
ac_cv_header_ldns_ldns_h=no
ac_cv_header_memory_h=yes
ac_cv_header_minix_config_h=no
ac_cv_header_pcap_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_lib_pcap_pcap_loop=yes
ac_cv_objext=o
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_make_make_set=yes
ac_cv_safe_to_define___extensions__=yes
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_make_support_nested_variables=yes
am_cv_prog_cc_c_o=yes

-----------------

Output variables.

-----------------

ACLOCAL='${SHELL} /Users/pzafar/passivedns/missing aclocal-1.15'
AMDEPBACKSLASH=''
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH=''
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AUTOCONF='${SHELL} /Users/pzafar/passivedns/missing autoconf'
AUTOHEADER='${SHELL} /Users/pzafar/passivedns/missing autoheader'
AUTOMAKE='${SHELL} /Users/pzafar/passivedns/missing automake-1.15'
AWK='awk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP='/usr/bin/grep -E'
EXEEXT=''
GREP='/usr/bin/grep'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=' -lpcap -lldns'
LIBOBJS=''
LIBS='-lpcap '
LTLIBOBJS=''
MAKEINFO='${SHELL} /Users/pzafar/passivedns/missing makeinfo'
MKDIR_P='./install-sh -c -d'
OBJEXT='o'
PACKAGE='passivedns'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='passivedns'
PACKAGE_STRING='passivedns 1.2.0'
PACKAGE_TARNAME='passivedns'
PACKAGE_URL=''
PACKAGE_VERSION='1.2.0'
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.2.0'
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /Users/pzafar/passivedns/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

-----------

confdefs.h.

-----------

/* confdefs.h */
#define PACKAGE_NAME "passivedns"
#define PACKAGE_TARNAME "passivedns"
#define PACKAGE_VERSION "1.2.0"
#define PACKAGE_STRING "passivedns 1.2.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "passivedns"
#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 EXTENSIONS 1
#define _ALL_SOURCE 1
#define _GNU_SOURCE 1
#define _POSIX_PTHREAD_SEMANTICS 1
#define _TANDEM_SOURCE 1
#define HAVE_LIBPCAP 1

@thus

This comment has been minimized.

Copy link
Collaborator

commented Jan 3, 2016

Version 1.1.3 was before autoconf was implemented. Does 1.1.3 compile as it should if you try to recompile it?

Looking at config.log, it seems that configure can't find ldns.h. Could you paste the path to it along with the configure parameter you tried (--with-ldns-includes)?

@zpravaiz

This comment has been minimized.

Copy link
Author

commented Jan 3, 2016

I tried with
./configure --with-ldns-includes=/usr/local/include
and
./configure --with-ldns-includes=/usr/local/Cellar/ldns/1.6.17_1/include/

both same result.

./configure --with-ldns-includes=/usr/local/Cellar/ldns/1.6.17_1/include/ldns/
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define EXTENSIONS... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking for pcap_loop in -lpcap... yes
checking ldns/ldns.h usability... no
checking ldns/ldns.h presence... no
checking for ldns/ldns.h... no
-e
ERROR! ldns headers not found

cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by passivedns configure 1.2.0, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure --with-ldns-includes=/usr/local/Cellar/ldns/1.6.17_1/include/ldns/

---------

Platform.

---------

hostname = Zafars-MacBook-Pro.local
uname -m = x86_64
uname -r = 15.2.0
uname -s = Darwin
uname -v = Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64

/usr/bin/uname -p = i386
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 16.00 gigabytes
Default processor set: 306 tasks, 1527 threads, 8 processors
Load average: 0.86, Mach factor: 7.13
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /opt/X11/bin
PATH: /usr/local/MacGPG2/bin

-----------

Core tests.

-----------

configure:2329: checking for a BSD-compatible install
configure:2397: result: /usr/bin/install -c
configure:2408: checking whether build environment is sane
configure:2463: result: yes
configure:2614: checking for a thread-safe mkdir -p
configure:2653: result: ./install-sh -c -d
configure:2660: checking for gawk
configure:2690: result: no
configure:2660: checking for mawk
configure:2690: result: no
configure:2660: checking for nawk
configure:2690: result: no
configure:2660: checking for awk
configure:2676: found /usr/bin/awk
configure:2687: result: awk
configure:2698: checking whether make sets $(MAKE)
configure:2720: result: yes
configure:2749: checking whether make supports nested variables
configure:2766: result: yes
configure:2904: checking for style of include used by make
configure:2932: result: GNU
configure:3003: checking for gcc
configure:3019: found /usr/bin/gcc
configure:3030: result: gcc
configure:3259: checking for C compiler version
configure:3268: gcc --version >&5
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
configure:3279: $? = 0
configure:3268: gcc -v >&5
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
configure:3279: $? = 0
configure:3268: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3279: $? = 1
configure:3268: gcc -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:3279: $? = 1
configure:3299: checking whether the C compiler works
configure:3321: gcc conftest.c >&5
configure:3325: $? = 0
configure:3373: result: yes
configure:3376: checking for C compiler default output file name
configure:3378: result: a.out
configure:3384: checking for suffix of executables
configure:3391: gcc -o conftest conftest.c >&5
configure:3395: $? = 0
configure:3417: result:
configure:3439: checking whether we are cross compiling
configure:3447: gcc -o conftest conftest.c >&5
configure:3451: $? = 0
configure:3458: ./conftest
configure:3462: $? = 0
configure:3477: result: no
configure:3482: checking for suffix of object files
configure:3504: gcc -c conftest.c >&5
configure:3508: $? = 0
configure:3529: result: o
configure:3533: checking whether we are using the GNU C compiler
configure:3552: gcc -c conftest.c >&5
configure:3552: $? = 0
configure:3561: result: yes
configure:3570: checking whether gcc accepts -g
configure:3590: gcc -c -g conftest.c >&5
configure:3590: $? = 0
configure:3631: result: yes
configure:3648: checking for gcc option to accept ISO C89
configure:3711: gcc -c -g -O2 conftest.c >&5
configure:3711: $? = 0
configure:3724: result: none needed
configure:3749: checking whether gcc understands -c and -o together
configure:3771: gcc -c conftest.c -o conftest2.o
configure:3774: $? = 0
configure:3771: gcc -c conftest.c -o conftest2.o
configure:3774: $? = 0
configure:3786: result: yes
configure:3805: checking dependency style of gcc
configure:3916: result: gcc3
configure:3937: checking how to run the C preprocessor
configure:3968: gcc -E conftest.c
configure:3968: $? = 0
configure:3982: gcc -E conftest.c
conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^
1 error generated.
configure:3982: $? = 1
configure: failed program was:
| /* confdefs.h /
| #define PACKAGE_NAME "passivedns"
| #define PACKAGE_TARNAME "passivedns"
| #define PACKAGE_VERSION "1.2.0"
| #define PACKAGE_STRING "passivedns 1.2.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "passivedns"
| #define VERSION "1.2.0"
| /
end confdefs.h. /
| #include <ac_nonexistent.h>
configure:4007: result: gcc -E
configure:4027: gcc -E conftest.c
configure:4027: $? = 0
configure:4041: gcc -E conftest.c
conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^
1 error generated.
configure:4041: $? = 1
configure: failed program was:
| /
confdefs.h /
| #define PACKAGE_NAME "passivedns"
| #define PACKAGE_TARNAME "passivedns"
| #define PACKAGE_VERSION "1.2.0"
| #define PACKAGE_STRING "passivedns 1.2.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "passivedns"
| #define VERSION "1.2.0"
| /
end confdefs.h. /
| #include <ac_nonexistent.h>
configure:4070: checking for grep that handles long lines and -e
configure:4128: result: /usr/bin/grep
configure:4133: checking for egrep
configure:4195: result: /usr/bin/grep -E
configure:4200: checking for ANSI C header files
configure:4220: gcc -c -g -O2 conftest.c >&5
configure:4220: $? = 0
configure:4293: gcc -o conftest -g -O2 conftest.c >&5
configure:4293: $? = 0
configure:4293: ./conftest
configure:4293: $? = 0
configure:4304: result: yes
configure:4317: checking for sys/types.h
configure:4317: gcc -c -g -O2 conftest.c >&5
configure:4317: $? = 0
configure:4317: result: yes
configure:4317: checking for sys/stat.h
configure:4317: gcc -c -g -O2 conftest.c >&5
configure:4317: $? = 0
configure:4317: result: yes
configure:4317: checking for stdlib.h
configure:4317: gcc -c -g -O2 conftest.c >&5
configure:4317: $? = 0
configure:4317: result: yes
configure:4317: checking for string.h
configure:4317: gcc -c -g -O2 conftest.c >&5
configure:4317: $? = 0
configure:4317: result: yes
configure:4317: checking for memory.h
configure:4317: gcc -c -g -O2 conftest.c >&5
configure:4317: $? = 0
configure:4317: result: yes
configure:4317: checking for strings.h
configure:4317: gcc -c -g -O2 conftest.c >&5
configure:4317: $? = 0
configure:4317: result: yes
configure:4317: checking for inttypes.h
configure:4317: gcc -c -g -O2 conftest.c >&5
configure:4317: $? = 0
configure:4317: result: yes
configure:4317: checking for stdint.h
configure:4317: gcc -c -g -O2 conftest.c >&5
configure:4317: $? = 0
configure:4317: result: yes
configure:4317: checking for unistd.h
configure:4317: gcc -c -g -O2 conftest.c >&5
configure:4317: $? = 0
configure:4317: result: yes
configure:4330: checking minix/config.h usability
configure:4330: gcc -c -g -O2 conftest.c >&5
conftest.c:54:10: fatal error: 'minix/config.h' file not found
#include <minix/config.h>
^
1 error generated.
configure:4330: $? = 1
configure: failed program was:
| /
confdefs.h /
| #define PACKAGE_NAME "passivedns"
| #define PACKAGE_TARNAME "passivedns"
| #define PACKAGE_VERSION "1.2.0"
| #define PACKAGE_STRING "passivedns 1.2.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "passivedns"
| #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
| /
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 <minix/config.h>
configure:4330: result: no
configure:4330: checking minix/config.h presence
configure:4330: gcc -E conftest.c
conftest.c:21:10: fatal error: 'minix/config.h' file not found
#include <minix/config.h>
^
1 error generated.
configure:4330: $? = 1
configure: failed program was:
| /
confdefs.h /
| #define PACKAGE_NAME "passivedns"
| #define PACKAGE_TARNAME "passivedns"
| #define PACKAGE_VERSION "1.2.0"
| #define PACKAGE_STRING "passivedns 1.2.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "passivedns"
| #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
| /
end confdefs.h. /
| #include <minix/config.h>
configure:4330: result: no
configure:4330: checking for minix/config.h
configure:4330: result: no
configure:4351: checking whether it is safe to define EXTENSIONS
configure:4369: gcc -c -g -O2 conftest.c >&5
configure:4369: $? = 0
configure:4376: result: yes
configure:4443: checking for gcc
configure:4470: result: gcc
configure:4699: checking for C compiler version
configure:4708: gcc --version >&5
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
configure:4719: $? = 0
configure:4708: gcc -v >&5
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
configure:4719: $? = 0
configure:4708: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:4719: $? = 1
configure:4708: gcc -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:4719: $? = 1
configure:4723: checking whether we are using the GNU C compiler
configure:4751: result: yes
configure:4760: checking whether gcc accepts -g
configure:4821: result: yes
configure:4838: checking for gcc option to accept ISO C89
configure:4914: result: none needed
configure:4939: checking whether gcc understands -c and -o together
configure:4976: result: yes
configure:4995: checking dependency style of gcc
configure:5106: result: gcc3
configure:5178: checking pcap.h usability
configure:5178: gcc -c -g -O2 conftest.c >&5
configure:5178: $? = 0
configure:5178: result: yes
configure:5178: checking pcap.h presence
configure:5178: gcc -E conftest.c
configure:5178: $? = 0
configure:5178: result: yes
configure:5178: checking for pcap.h
configure:5178: result: yes
configure:5193: checking for pcap_loop in -lpcap
configure:5218: gcc -o conftest -g -O2 -lpcap conftest.c -lpcap >&5
configure:5218: $? = 0
configure:5227: result: yes
configure:5276: checking ldns/ldns.h usability
configure:5276: gcc -c -g -O2 -I/usr/local/Cellar/ldns/1.6.17_1/include/ldns/ conftest.c >&5
conftest.c:60:10: fatal error: 'ldns/ldns.h' file not found
#include <ldns/ldns.h>
^
1 error generated.
configure:5276: $? = 1
configure: failed program was:
| /
confdefs.h _/
| #define PACKAGE_NAME "passivedns"
| #define PACKAGE_TARNAME "passivedns"
| #define PACKAGE_VERSION "1.2.0"
| #define PACKAGE_STRING "passivedns 1.2.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "passivedns"
| #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 EXTENSIONS 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define TANDEM_SOURCE 1
| #define HAVE_LIBPCAP 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 <ldns/ldns.h>
configure:5276: result: no
configure:5276: checking ldns/ldns.h presence
configure:5276: gcc -E -I/usr/local/Cellar/ldns/1.6.17_1/include/ldns/ conftest.c
conftest.c:27:10: fatal error: 'ldns/ldns.h' file not found
#include <ldns/ldns.h>
^
1 error generated.
configure:5276: $? = 1
configure: failed program was:
| /
confdefs.h _/
| #define PACKAGE_NAME "passivedns"
| #define PACKAGE_TARNAME "passivedns"
| #define PACKAGE_VERSION "1.2.0"
| #define PACKAGE_STRING "passivedns 1.2.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "passivedns"
| #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 EXTENSIONS 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define TANDEM_SOURCE 1
| #define HAVE_LIBPCAP 1
| /
end confdefs.h. */
| #include <ldns/ldns.h>
configure:5276: result: no
configure:5276: checking for ldns/ldns.h
configure:5276: result: no

----------------

Cache variables.

----------------

ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_header_inttypes_h=yes
ac_cv_header_ldns_ldns_h=no
ac_cv_header_memory_h=yes
ac_cv_header_minix_config_h=no
ac_cv_header_pcap_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_lib_pcap_pcap_loop=yes
ac_cv_objext=o
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_make_make_set=yes
ac_cv_safe_to_define___extensions__=yes
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_make_support_nested_variables=yes
am_cv_prog_cc_c_o=yes

-----------------

Output variables.

-----------------

ACLOCAL='${SHELL} /Users/pzafar/passivedns/missing aclocal-1.15'
AMDEPBACKSLASH=''
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH=''
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AUTOCONF='${SHELL} /Users/pzafar/passivedns/missing autoconf'
AUTOHEADER='${SHELL} /Users/pzafar/passivedns/missing autoheader'
AUTOMAKE='${SHELL} /Users/pzafar/passivedns/missing automake-1.15'
AWK='awk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=' -I/usr/local/Cellar/ldns/1.6.17_1/include/ldns/'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP='/usr/bin/grep -E'
EXEEXT=''
GREP='/usr/bin/grep'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=' -lpcap -lldns'
LIBOBJS=''
LIBS='-lpcap '
LTLIBOBJS=''
MAKEINFO='${SHELL} /Users/pzafar/passivedns/missing makeinfo'
MKDIR_P='./install-sh -c -d'
OBJEXT='o'
PACKAGE='passivedns'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='passivedns'
PACKAGE_STRING='passivedns 1.2.0'
PACKAGE_TARNAME='passivedns'
PACKAGE_URL=''
PACKAGE_VERSION='1.2.0'
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.2.0'
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /Users/pzafar/passivedns/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

-----------

confdefs.h.

-----------

/* confdefs.h */
#define PACKAGE_NAME "passivedns"
#define PACKAGE_TARNAME "passivedns"
#define PACKAGE_VERSION "1.2.0"
#define PACKAGE_STRING "passivedns 1.2.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "passivedns"
#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 EXTENSIONS 1
#define _ALL_SOURCE 1
#define _GNU_SOURCE 1
#define _POSIX_PTHREAD_SEMANTICS 1
#define _TANDEM_SOURCE 1
#define HAVE_LIBPCAP 1

configure: exit 1

@thus

This comment has been minimized.

Copy link
Collaborator

commented Jan 3, 2016

What is the location of the ldns.h header file?

@zpravaiz

This comment has been minimized.

Copy link
Author

commented Jan 3, 2016

file /usr/local/include/ldns/ldns.h
/usr/local/include/ldns/ldns.h: LaTeX document text

file /usr/local/Cellar/ldns/1.6.17_1/include/ldns/ldns.h
/usr/local/Cellar/ldns/1.6.17_1/include/ldns/ldns.h: LaTeX document text

@thus

This comment has been minimized.

Copy link
Collaborator

commented Jan 3, 2016

According to the output above, it looks like you used configure like this:

$ ./configure --with-ldns-includes=/usr/local/Cellar/ldns/1.6.17_1/include/ldns/

Could you try dropping the last "ldns/", if you haven't done this already? Configure is looking for "ldns/ldns.h".

It's annoying that I have no way of testing this myself, since I don't have any computers running OSX.

@zpravaiz

This comment has been minimized.

Copy link
Author

commented Jan 3, 2016

I tried all combination
./configure --with-ldns-includes=/usr/local/Cellar/ldns/1.6.17_1/include/
./configure --with-ldns-includes=/usr/local/Cellar/ldns/1.6.17_1/include
etc

but produce same result. looks like --with-ldns-includes does not effect ./configure

Thanks

@thus

This comment has been minimized.

Copy link
Collaborator

commented Jan 3, 2016

It sets the CPPFLAGS environment variable, so it does what it is supposed to do:

CPPFLAGS=' -I/usr/local/Cellar/ldns/1.6.17_1/include/ldns/'

(example from config.log above, it's set wrong, but that is not the point)

This is also passed on to gcc:

configure:5276: gcc -E -I/usr/local/Cellar/ldns/1.6.17_1/include/ldns/ conftest.c
conftest.c:27:10: fatal error: 'ldns/ldns.h' file not found

This is really strange. Right now I have no idea why it is not working as it should.

@thus

This comment has been minimized.

Copy link
Collaborator

commented Jan 3, 2016

Did you try to recompile version 1.1.3 to see if that version still compiles? That would help tracking down the issue, or at least narrow it down a little.

@zpravaiz

This comment has been minimized.

Copy link
Author

commented Jan 3, 2016

Sorry I am not very good with code and errors. I don't have code for 1.1.3 now. How can i get if i want to try.

I really appreciate your help

Thanks

@zpravaiz

This comment has been minimized.

Copy link
Author

commented Jan 3, 2016

Looks like you were correct.

Its not able to locate ssl.h

grep ssl.h config.log
/usr/local/include/ldns/dane.h:31:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
/usr/local/include/ldns/dane.h:31:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>

How can i supply openssl include path?

Thanks

@thus

This comment has been minimized.

Copy link
Collaborator

commented Jan 3, 2016

Nice, then you are one step closer :)

I'm planning to patch configure to also look for openssl. In the mean time, you could try something like:

./configure CPPFLAGS=-I/ADD/INCLUDE/PATH/HERE

@zpravaiz

This comment has been minimized.

Copy link
Author

commented Jan 3, 2016

Now i get different error while compiling with following

/configure CPPFLAGS=-I/usr/local/opt/openssl/include --with-ldns includes=/usr/local/Cellar/ldns/1.6.17_1/include

checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking for pcap_loop in -lpcap... yes
checking ldns/ldns.h usability... yes
checking ldns/ldns.h presence... yes
checking for ldns/ldns.h... yes
checking for ldns_pkt_get_rcode in -lldns... no
-e
ERROR! ldns library not found

@thus

This comment has been minimized.

Copy link
Collaborator

commented Jan 3, 2016

Could you try the newest git version (c7fdf72)? I added checks for OpenSSL and options to specify header and library paths.

@zpravaiz

This comment has been minimized.

Copy link
Author

commented Jan 3, 2016

with new git update i get error

./configure CPPFLAGS=-I/usr/local/opt/openssl/include --with-ldns-includes=/usr/local/Cellar/ldns/1.6.17_1/include

checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking for pcap_loop in -lpcap... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking ldns/ldns.h usability... yes
checking ldns/ldns.h presence... yes
checking for ldns/ldns.h... yes
checking for ldns_pkt_get_rcode in -lldns... no
-e
ERROR! ldns library not found

@thus

This comment has been minimized.

Copy link
Collaborator

commented Jan 3, 2016

Could you try it without CPPFLAGS and with --with-openssl-includes=/usr/local/opt/openssl/include instead?

@zpravaiz

This comment has been minimized.

Copy link
Author

commented Jan 3, 2016

Same result.

I will be away for now. So my response would be late.

Thanks for you kind support.

@thus

This comment has been minimized.

Copy link
Collaborator

commented Jan 3, 2016

No problem :)

The next thing you should check, when you are back, is for ldns releated errors in config.log. Hopefully, the log file says something more about why it is not working.

@zpravaiz

This comment has been minimized.

Copy link
Author

commented Jan 3, 2016

This works fine for me now

./configure --with-openssl-includes=/usr/local/opt/openssl/include --with-ldns-includes=/usr/local/include --with-libpcap-libraries=/usr/local/Cellar/ldns/1.6.17_1/lib

I really appreciate your support.

Thanks

@thus

This comment has been minimized.

Copy link
Collaborator

commented Jan 3, 2016

I'm glad to hear it works now :)

You are very welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.