bugzilla-daemon at bugzilla.mindrot.org
2016-Aug-03 12:30 UTC
[Bug 2603] New: Build with ldns and without kerberos support fails if ldns compiled with kerberos support
https://bugzilla.mindrot.org/show_bug.cgi?id=2603 Bug ID: 2603 Summary: Build with ldns and without kerberos support fails if ldns compiled with kerberos support Product: Portable OpenSSH Version: 7.3p1 Hardware: amd64 OS: Linux Status: NEW Severity: normal Priority: P5 Component: Kerberos support Assignee: unassigned-bugs at mindrot.org Reporter: ondrej at caletka.cz I'm trying to build openssh-7.3 like this: $ ./configure --with-ldns $ make (cd openbsd-compat && make) make[1]: Entering directory '/hdhome/oskar/Downloads/openssh-7.3p1/openbsd-compat' gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -ftrapv -fno-builtin-memset -fstack-protector-strong -fPIE -I. -I.. -I. -I./.. -DHAVE_CONFIG_H -c getrrsetbyname-ldns.c In file included from ../openbsd-compat/openbsd-compat.h:173:0, from ../includes.h:171, from getrrsetbyname-ldns.c:46: ../openbsd-compat/bsd-misc.h:139:39: error: expected identifier or '(' before 'do' # define krb5_free_error_message(a,b) do { } while(0) ^ ../openbsd-compat/bsd-misc.h:139:46: error: expected identifier or '(' before 'while' # define krb5_free_error_message(a,b) do { } while(0) ^ Makefile:26: recipe for target 'getrrsetbyname-ldns.o' failed The reason seem to be that ldns itself is compiled with kerberos support and when including the <ldns/ldns.h>, the prototype of real function krb5_free_error_message() is broken by the previous macro definition in openbsd-compat/bsd-misc.h. I've found out that this can be worked around by reordering the includes in openbsd-compat/getrrsetbyname-ldns.c so the <ldns/ldns.h> is included before the "includes.h". Other workaround is to compile openssh with kerberos support or without ldns support, obviously. -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2017-Feb-03 04:04 UTC
[Bug 2603] Build with ldns and without kerberos support fails if ldns compiled with kerberos support
https://bugzilla.mindrot.org/show_bug.cgi?id=2603 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |djm at mindrot.org, | |dtucker at zip.com.au Assignee|unassigned-bugs at mindrot.org |djm at mindrot.org Status|NEW |ASSIGNED Attachment #2937| |ok?(dtucker at zip.com.au) Flags| | --- Comment #1 from Damien Miller <djm at mindrot.org> --- Created attachment 2937 --> https://bugzilla.mindrot.org/attachment.cgi?id=2937&action=edit use ldns-config if possible We could probably fix this using ldns-config if it is installed. That *should* suggest the correct libraries to link against. -- You are receiving this mail because: You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2017-Feb-03 04:05 UTC
[Bug 2603] Build with ldns and without kerberos support fails if ldns compiled with kerberos support
https://bugzilla.mindrot.org/show_bug.cgi?id=2603 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |2647 Referenced Bugs: https://bugzilla.mindrot.org/show_bug.cgi?id=2647 [Bug 2647] Tracking bug for OpenSSH 7.5 release -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2017-Feb-03 04:12 UTC
[Bug 2603] Build with ldns and without kerberos support fails if ldns compiled with kerberos support
https://bugzilla.mindrot.org/show_bug.cgi?id=2603 Darren Tucker <dtucker at zip.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #2937|ok?(dtucker at zip.com.au) |ok+ Flags| | -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2017-Feb-03 05:04 UTC
[Bug 2603] Build with ldns and without kerberos support fails if ldns compiled with kerberos support
https://bugzilla.mindrot.org/show_bug.cgi?id=2603 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #2 from Damien Miller <djm at mindrot.org> --- Fixed in: commit 523db8540b720c4d21ab0ff6f928476c70c38aab Author: Damien Miller <djm at mindrot.org> Date: Fri Feb 3 16:01:22 2017 +1100 prefer to use ldns-config to find libldns Should fix bz#2603 - "Build with ldns and without kerberos support fails if ldns compiled with kerberos support" by including correct cflags/libs ok dtucker@ -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2018-Apr-06 02:26 UTC
[Bug 2603] Build with ldns and without kerberos support fails if ldns compiled with kerberos support
https://bugzilla.mindrot.org/show_bug.cgi?id=2603 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #3 from Damien Miller <djm at mindrot.org> --- Close all resolved bugs after release of OpenSSH 7.7. -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug.
Apparently Analagous Threads
- [PATCH] Add support for ldns
- [Bug 2022] New: ssh segfaults when using ldns, SSHFP, a DNSSEC-enabled resolver and a CNAME
- [Bug 2702] New: ssh compiled with --with-ldns segfaults during known_hosts parsing
- [Bug 1320] New: Add support for ldns
- [Bug 2119] New: SSHFP with DNSSEC – no trust anchors given, validation always fails