Opened 10 years ago

Closed 10 years ago

#4944 closed defect (fixed)

cups 1.7.2: build error on system without dnssd/avahi

Reported by: Pierre Labastie Owned by: Pierre Labastie
Priority: normal Milestone: 7.6
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

The error is:

Linking cupsfilter...
Linking cupsd...
Linking cups-lpd...
dirsvc.o: In function `cupsdStartBrowsing':
/sources/cups/cups-1.7.2/scheduler/dirsvc.c:244: undefined reference to `dnssdRegisterAllPrinters'
dirsvc.o: In function `cupsdStopBrowsing':
/sources/cups/cups-1.7.2/scheduler/dirsvc.c:262: undefined reference to `dnssdDeregisterAllPrinters'
collect2: error: ld returned 1 exit status
Makefile:380: recipe for target 'cupsd' failed

This has been reported upstream (not by me) https://www.cups.org/str.php?L4402+P-1+S-2+C0+I0+E0+Q

I have not found a fix on internet.

Attachments (1)

cups-1.7.2-fix-build-without-dnnsd.patch (720 bytes ) - added by Miklos Karacsony 10 years ago.
use --disable-avahi and --disable-dnssd switches with this patch and it will build without avahi.

Download all attachments as: .zip

Change History (4)

comment:1 by Fernando de Oliveira, 10 years ago

I can confirm problem if there is no avahi. With avahi, it just builds fine. had to remove, to confirm.

Why don't you move avahi to required, at least until this problem is solved somewhere?

comment:2 by Pierre Labastie, 10 years ago

Owner: changed from blfs-book@… to Pierre Labastie
Status: newassigned

Seems that distros all have avahi as a dependency. So the fix may not be available until upstream takes care of it. Let's do what Fernando suggests.

comment:3 by Pierre Labastie, 10 years ago

Resolution: fixed
Status: assignedclosed

Fixed at r12950

by Miklos Karacsony, 10 years ago

use --disable-avahi and --disable-dnssd switches with this patch and it will build without avahi.

Note: See TracTickets for help on using tickets.