#176 Fails to build for bind 9.11.3
Closed: fixed 2 years ago by pemensik. Opened 6 years ago by pemensik.

We need detailed information about the problem you face and also some details about your environment. You can use the form outlined below. Feel free to amend it as needed.

Please refer to https://fedorahosted.org/bind-dyndb-ldap/wiki/BugReporting for further information (and examples).

Problem

What does not work as expected?

Plugin does not build against recent bind

Proposed fix is at branch bind-9.11.3

Is your problem related to a single DNS zone or a DNS record?

No

Steps to Reproduce

  • Install bind-9.11.3b1 or more recent
  • configure && build

Attach any error messages or other suspicious information you see in logs. E.g. in /var/named/data/named.run or /var/log/messages.

Environment

  • Plugin version:
    11.1

  • Version of BIND:
    9.11.3b1

  • Distribution and version (i.e. including updates):
    Fedora 27

  • Architecture:
    any

  • Do you use bind-dyndb-ldap as part of FreeIPA installation? If you answered no: Which LDAP server you use? Which version?

  • Include dyndb (dynamic-db) section from configuration file /etc/named.conf:

  • Do you have some other text based or DLZ zones configured?

  • Do you have some global forwarders configured in BIND configuration file? (Statements forward and forwarders.)

  • Do you have some settings in global configuration object in LDAP? Please export configuration object to LDIF and attach it to the bug report.


just fire up a quick fix for building against bind 9.12.1-r1:https://github.com/mingzym/bind-dyndb-ldap/commits/master

problems:
1, don't know how to fix the static assert on isc_refcount_t, which is causing gcc-7.3 reporting error syntax
2, need some testing to confirm that everything works.

anyway, update here Just incase.

@zym,

I am also trying to build this component.

I have included isc/util.h here, instead of in multiple source files:

diff --git a/src/util.h b/src/util.h
index ab49ba9..98526cc 100644
--- a/src/util.h
+++ b/src/util.h
@@ -10,6 +10,7 @@
#include <isc/boolean.h>
#include <isc/mem.h>
#include <isc/buffer.h>
+#include <isc/util.h>
#include <isc/result.h>
#include <dns/types.h>
#include <dns/name.h>

But my build is also failing with:

In file included from fwd_register.h:11,
from ldap_entry.h:12,
from mldap.c:26:
/usr/include/bind9/isc/refcount.h:113:18: error: braced-group within expression allowed only inside a function
((unsigned int)(atomic_load_explicit(&(rp)->refs, \
^~
util.h:146:64: note: in definition of macro ‘STATIC_ASSERT’
;enum { ASSERT_CONCAT(static_assert_, COUNTER) = 1/(!!(e)) }
^
mldap.c:122:11: note: in expansion of macro ‘isc_refcount_current’
(typeof(isc_refcount_current((isc_refcount_t )0)))
^~
/usr/include/bind9/isc/refcount.h:113:18: error: braced-group within expression allowed only inside a function
((unsigned int)(atomic_load_explicit(&(rp)->refs, \
^
~
util.h:146:64: note: in definition of macro ‘STATIC_ASSERT’
;enum { ASSERT_CONCAT(static_assert_, COUNTER) = 1/(!!(e)) }
^
mldap.c:128:11: note: in expansion of macro ‘isc_refcount_current’
(typeof(isc_refcount_current((isc_refcount_t
)0)))
^
~

have you managed to go further these errors ?

Thanks.

German

Also new issues with BIND 9.11.5, fixed on my master.

Also, rawhide introduced a new issue, fixed there as well. Is this issue tracker still used?

@pemensik yes, please submit pull request and I'll merge it.

I tried to create new Pull Request yesterday. It told me they are disabled for this project. Because I were unable to create pull request and I have commit rights, I pushed patched version to Rawhide today. Rebuilt it already.

Would be nice to have upstream ready to compile, even no new features are worked on.

I am still not able to create pull request, sorry.

I enabled pull requests.

Created pull request #177, includes all fixes.

Closing this issue, it is already solved.

Metadata Update from @pemensik:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata