Samba4 BIND DLZ DLOPEN compile errors

Aubrey Ekstrom aekstrom at proclivitysystems.com
Wed Dec 28 10:39:06 MST 2011


On Tue, Dec 13, 2011 at 4:59 PM, Andrew Bartlett <abartlet at samba.org> wrote:

>
> > > Any known issues, or advice about running DDNS on both DCs?
>
> > To do that, you need to use dlz_bind9, so that the data is stored in the
> > directory, rather than in flat files on just one DC.
>
> Andrew Bartlett
> --
> Andrew Bartlett                                http://samba.org/~abartlet/
> Authentication Developer, Samba Team           http://samba.org
>
> Hi Andrew and Everyone,

I am trying to compile Bind 9.8.1 P1 on CentOS 6 with the dlz_dlopen option
for
Samba4. After getting errors and searching I found & applied this patch:
http://permalink.gmane.org/gmane.network.dns.bind9.dlz/2227, but still get
the same Error(s):

-W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat
-Wpointer-arith -fno-strict-aliasing  -c driver.c
 gcc -I/home/aekstrom/bind-9.8.1-P1
-I/home/aekstrom/bind-9.8.1-P1/lib/dns/include -I../../../../lib/dns/include
-I/home/aekstrom/bind-9.8.1-P1/lib/isc/include -I../../../../lib/isc
-I../../../../lib/isc/include -I../../../../lib/isc/unix/include
-I../../../../lib/isc/pthreads/include -I../../../../lib/isc/x86_32/include
-D_REENTRANT -D_GNU_SOURCE -g -O2 -I/usr/include/libxml2 -fPIC -W -Wall
-Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith
-fno-strict-aliasing -c driver.c  -fPIC -DPIC -o .libs/driver.o
gcc -shared -o driver.so driver.o
gcc: driver.o: No such file or directory
gcc: no input files
make[4]: *** [driver.so] Error 1
make[4]: Leaving directory
`/home/aekstrom/bind-9.8.1-P1/bin/tests/system/dlzexternal'
make[3]: *** [subdirs] Error 1
make[3]: Leaving directory `/home/aekstrom/bind-9.8.1-P1/bin/tests/system'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/home/aekstrom/bind-9.8.1-P1/bin/tests'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/aekstrom/bind-9.8.1-P1/bin'
make: *** [subdirs] Error 1
______________________________________________________________

driver.o exists in the following directories:

/home/aekstrom/bind-9.8.1-P1/bin/tests/system/dlzexternal/.libs/driver.o
/home/aekstrom/bind-9.8.1-P1/bin/tests/net/.libs/driver.o

But driver.so is no where to be found.

 ls -l /home/aekstrom/bind-9.8.1-P1/bin/tests/system/dlzexternal/.libs/
total 44
-rw-r--r--. 1 root root  1928 Dec 28 06:56 dlopen.o
-rw-r--r--. 1 root root 38200 Dec 28 06:56 driver.o
[aekstrom at out1 bind-9.8.1-P1]$ ls -l
/home/aekstrom/bind-9.8.1-P1/bin/tests/system/dlzexternal/
total 80
-rw-r--r--. 1 10292 9901   132 Dec 17  2010 clean.sh
-rwxr-xr-x. 1 root  root  5772 Dec 28 06:56 dlopen
-rw-r--r--. 1 10292 9901   981 Mar  9  2011 dlopen.c
-rw-r--r--. 1 root  root   303 Dec 28 06:56 dlopen.lo
-rw-r--r--. 1 10292 9901 13209 Mar 20  2011 driver.c
-rw-r--r--. 1 10292 9901  1459 Mar 17  2011 driver.h
-rw-r--r--. 1 root  root   303 Dec 28 06:56 driver.lo
-rw-r--r--. 1 root  root 14269 Dec 28 06:51 Makefile
-rw-r--r--. 1 10292 9901  1525 Mar 11  2011 Makefile.in
drwxr-xr-x. 2 10292 9901  4096 Dec 28 06:51 ns1
-rw-r--r--. 1 10292 9901   997 Mar 20  2011 prereq.sh
-rw-r--r--. 1 10292 9901   983 Dec 20  2010 setup.sh
-rw-r--r--. 1 10292 9901  1252 Mar  9  2011 tests.sh

[aekstrom at out1 bind-9.8.1-P1]$ sudo find / -name driver.so
[aekstrom at out1 bind-9.8.1-P1]$

______________________________________________________

I configured the build with the following:

./configure --build=i386-redhat-linux-gnu --host=i386-redhat-linux-gnu
--target=i686-redhat-linux-gnu --prefix=/usr --exec-prefix=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc--datadir=/usr/share
--includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec
--sharedstatedir=/var/lib --with-libtool --localstatedir=/var
--enable-threads --disable-static --disable-openssl-version-check
--with-dlz-dlopen --with-gssapi=yes

After extensive searching I have been unable to find any more info. I also
posted this to the newsgroup where I found that patch, but have not heard
back. Any help or suggestions are greatly appreciated!

Cheers,

Aubrey


More information about the samba-technical mailing list