[cups.bugs] [MOD] STR #3047: Cannot compile cups 1.4b2 (not linked against libdns_sd)

Roman Cheplyaka roman.cheplyaka at gmail.com
Mon Dec 29 09:22:42 PST 2008


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

It seems that $(DNSSDLIBS) is not passed where it should be, which leads to
unresolved symbols:

Linking bannertops...
.../cups/libcups.so: undefined reference to `DNSServiceResolve'
.../cups/libcups.so: undefined reference to `TXTRecordGetValuePtr'
.../cups/libcups.so: undefined reference to `DNSServiceProcessResult'
.../cups/libcups.so: undefined reference to `DNSServiceRefDeallocate'
collect2: ld returned 1 exit status
make: *** [bannertops] Error 1

After I appended $(DNSSDLIBS) to LIBS, I still get an error, only later:

Linking test1284...
.../cups/libcups.a(http-support.o): In function `_httpResolveURI':
/home/feuerbach/source/cups/cups/http-support.c:1397: undefined reference
to `DNSServiceResolve'
/home/feuerbach/source/cups/cups/http-support.c:1401: undefined reference
to `DNSServiceProcessResult'
/home/feuerbach/source/cups/cups/http-support.c:1407: undefined reference
to `DNSServiceRefDeallocate'
.../cups/libcups.a(http-support.o): In function `resolve_callback':
/home/feuerbach/source/cups/cups/http-support.c:1598: undefined reference
to `TXTRecordGetValuePtr'
collect2: ld returned 1 exit status
make[1]: *** [test1284] Error 1
make: *** [all] Error 1

The same using svn trunk. Cups 1.3.8 and 1.3.9 are compiled well.

Link: http://www.cups.org/str.php?L3047
Version: 1.4b2
Attachment: http://www.cups.org/strfiles/3047/config.log





More information about the cups-devel mailing list