error when rebuilding bind binaries ( undefined reference to `dbus_connection_close' )

Adam Tkac atkac at redhat.com
Thu Nov 8 10:13:50 UTC 2007


On Thu, Nov 08, 2007 at 01:26:30PM +0530, Agnello George wrote:
> Dear sir / madam
> i am tryin to intergrate bind ( bind-9.4.2-0.4.rc1.fc7.src.rpm )  with mysql
> ( bind-dlz ) by rebuilding the biniries ( rpmbuild -ba bind.spec )
>  i edited the bind.spec file to intergrate bind-dlz ( this is what i did )
> cd /usr/src/redhat/SPEC
> vi bind.spec
> #########################################################
> .
> .
> .
> %if %{IDN}
> pushd contrib/idn/idnkit-1.0-src
> libtoolize --copy --force; aclocal; automake -a; autoconf
> %configure
> make %{?_smp_mflags}
> popd
> %endif
> 
> libtoolize --copy --force; aclocal; autoconf
> cp -f /usr/share/libtool/config.{guess,sub} .
> %if %{WITH_DBUS}
> %ifarch s390x x86_64 ppc64
> # every 64-bit arch EXCEPT ia64 has dbus architecture dependant
> # includes in  /usr/lib64/dbus-1.0/include
> export DBUS_ARCHDEP_LIBDIR=lib64
> %endif
> %endif
> if pkg-config openssl ; then
>         export CFLAGS="$CFLAGS `pkg-config --cflags openssl`"
>         export CPPFLAGS="$CPPFLAGS `pkg-config --cflags-only-I openssl`"
>         export LDFLAGS="$LDFLAGS `pkg-config --libs-only-L openssl`"
> fi
> %if %{efence}
> export LDFLAGS=-lefence
> %endif
> %configure \
>         --with-libtool \
>         --localstatedir=/var \
>         --enable-threads \
>         --enable-ipv6 \
>         --with-pic \
>         --with-openssl=/usr \
>         --with-dlz-mysql=yes \   ( added by me )
>         --with-dlz-sdb=yes \       ( added by me )
> %if %{LIBBIND}
>         --enable-libbind \
> .
> .
> .
> #######################################################################################
>  then i rebuild the spec file
> rpmbuild -ba bind.spec  ( the following is the error  i got )
> 
> ########################################################################################
> .
> .
> .
> 
> 
> nt -lz -lcrypt -lm -lnsl -lpthread -ldbus-1
> dbus_service.o(.text+0x13dc): In function `dbus_svc_shutdown':
> ./dbus_service.c:1154: undefined reference to `dbus_connection_close'
> dbus_service.o(.text+0x198d): In function `dbus_svc_init':
> ./dbus_service.c:1027: undefined reference to `dbus_connection_close'
> dbus_service.o(.text+0x19fc):./dbus_service.c:1051: undefined reference to
> `dbus_connection_close'
> dbus_service.o(.text+0x1b95):./dbus_service.c:1111: undefined reference to
> `dbus_connection_close'
> collect2: ld returned 1 exit status
> make[2]: *** [named] Error 1
> make[2]: Leaving directory `/usr/src/redhat/BUILD/bind-9.4.2rc1/bin/named'
> make[1]: *** [subdirs] Error 1
> make[1]: Leaving directory `/usr/src/redhat/BUILD/bind-9.4.2rc1/bin'
> make: *** [subdirs] Error 1
> error: Bad exit status from /var/tmp/rpm-tmp.32862 (%build)
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.32862 (%build)
> [root at bind SPECS]#
> 
> .
> 
> ###########################################################################################
> 
> Can some one tell me how to solve this issue . Thank you very much :-)
> 
> 
> Agnello . G .Dsouza
> 
> 
> 

Look into specfile, line 11 and change "%define WITH_DBUS   1" to
"%define WITH_DBUS   0"

Adam

-- 
Adam Tkac, Red Hat, Inc.



More information about the bind-users mailing list