Bug 6104 - error: DNS service discovery support not available
Summary: error: DNS service discovery support not available
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.3
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.3.0
Hardware: Other Linux
: P3 normal
Target Milestone: ---
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-12 06:54 UTC by pva
Modified: 2009-02-12 08:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pva 2009-02-12 06:54:14 UTC
I have net-misc/mDNSResponder installed but during configure phase I still have the following error:

checking for dns_sd.h... yes
checking for DNSServiceRegister... no
checking for DNSServiceRegister in -ldns_sd... yes
configure: error: DNS service discovery support not available

If you check ./configure script you'll find that there is no ac_cv_lib_ext_DNSServiceRegister variable anywhere there. This sed script fixes the issue for me:

sed -e 's|ac_cv_lib_ext_DNSServiceRegister|ac_cv_lib_ext_dns_sd_DNSServiceRegister|' \
 -i source/configure

Thank you for your work on samba!
Comment 1 pva 2009-02-12 08:07:22 UTC
This sed script is not enough. Later I see the following error:

Linking bin/vfstest
smbd/dnsregister.o: In function `dns_register_smbd_reply':
dnsregister.c:(.text+0xd4): undefined reference to `DNSServiceRefSockFD'
dnsregister.c:(.text+0xfd): undefined reference to `DNSServiceProcessResult'
smbd/dnsregister.o: In function `dns_register_smbd':
dnsregister.c:(.text+0x1e3): undefined reference to `DNSServiceRefSockFD'
dnsregister.c:(.text+0x2c3): undefined reference to `DNSServiceRegister'
dnsregister.c:(.text+0x332): undefined reference to `DNSServiceRefSockFD'
smbd/dnsregister.o: In function `dns_register_close':
dnsregister.c:(.text+0x3b4): undefined reference to `DNSServiceRefDeallocate'
collect2: ld returned 1 exit status
make: *** [bin/vfstest] Error 1

The following patch fixes that:

--- source/Makefile.in  2009-02-12 13:14:35 +0000
+++ source/Makefile.in  2009-02-12 14:03:46 +0000
@@ -1513,7 +1513,7 @@
                $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
                $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
                @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
-               $(WINBIND_LIBS)
+               $(DNSSD_LIBS) $(WINBIND_LIBS)

 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
        @echo Linking $@
Comment 2 Karolin Seeger 2009-02-12 08:32:07 UTC
This one has already been fixed meanwhile with commit 16f072809 from Björn Jacke in the master branch. It will be included in 3.3.1.

Thank you very much for reporting and providing the patch!