X-Scanned-BY: MIMEDefang 2.79 on 10.5.11.15 From pemensik@redhat.com Mon Apr 3 13:16:05 2017 MIME-Version: 1.0 Dkim-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 6BC8B2E6057 X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.0 Dmarc-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 6BC8B2E6057 content-type: text/plain; charset="utf-8" Message-ID: <292d7951-fa11-4cba-c0eb-3d8d7c1b7dda@redhat.com> Received: from mx.pao1.isc.org (mx.pao1.isc.org [149.20.64.53]) by bugs.isc.org (Postfix) with ESMTP id 4997A71B5A8 for ; Mon, 3 Apr 2017 13:16:05 +0000 (UTC) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.pao1.isc.org (Postfix) with ESMTPS id A86FB3493C9 for ; Mon, 3 Apr 2017 13:15:58 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6BC8B2E6057 for ; Mon, 3 Apr 2017 13:15:50 +0000 (UTC) Received: from menpad.brq.redhat.com (menpad.brq.redhat.com [10.34.4.127]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 138457EB72 for ; Mon, 3 Apr 2017 13:15:45 +0000 (UTC) Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=pemensik@redhat.com Delivered-To: dhcp-bugs@bugs.isc.org Subject: DHCP server with ldap support cannot link dynamically against bind User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Return-Path: X-Original-To: dhcp-bugs@bugs.isc.org Date: Mon, 3 Apr 2017 15:15:43 +0200 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 03 Apr 2017 13:15:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mx.pao1.isc.org To: dhcp-bugs@isc.org Content-Transfer-Encoding: 8bit From: "Petr Menšík" X-RT-Original-Encoding: iso-8859-2 X-RT-Interface: Email Content-Length: 951 Hi ISC, there is problem with conflicting symbols. If dhcp server is configured --with-ldap and --disable-static, it will use getaddrinfo from glibc library. However if bind library is linked dynamically using --with-libtool, it will provide getaddrinfo symbol from irs library. If such bind library is used in --with-libbind in dhcp, it breaks the server. It compiles fine. However when started, recent openldap library will try to use hint=AI_ADDRCONFIG in getaddrinfo. See [1] Because bind implementation of lib/irs/getaddrinfo.c does no support such flag, it will always return failure. Do I miss a way to link dhcp with ldap support, while using only dynamic linking? I have already reported it as suggestion #44024. Is there other workaround than mentioned? Best Regards, Petr Menšík [1] https://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=blob;f=libraries/libldap/os-ip.c;h=c7cee927ad42dfb4412b72754fe47ae4d6a71541;hb=HEAD#l599