From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jun 10 06:34:55 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D13BE8DC for ; Tue, 10 Jun 2014 06:34:55 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B29822F3F for ; Tue, 10 Jun 2014 06:34:55 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.8/8.14.8) with ESMTP id s5A6YtFj090469 for ; Tue, 10 Jun 2014 07:34:55 +0100 (BST) (envelope-from bz-noreply@freebsd.org) From: bz-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 190865] New: [patch] print/cups-base build fails if both AVAHI AND MDNSRESPONDER options are disabled Date: Tue, 10 Jun 2014 06:34:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: truckman@FreeBSD.org X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2014 06:34:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190865 Bug ID: 190865 Summary: [patch] print/cups-base build fails if both AVAHI AND MDNSRESPONDER options are disabled Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: truckman@FreeBSD.org Created attachment 143603 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=143603&action=edit print/cups-base/Makefile patch FreeBSD scratch.catspoiler.org 8.4-STABLE FreeBSD 8.4-STABLE #80 r266818M: Thu May 29 02:41:55 PDT 2014 dl@scratch.catspoiler.org:/usr/obj/usr/src/sys/GENERICDDB i386 cups-base-1.7.2_1 cups-base/Makefile r356868 If "make config" is run and both the AVAHI and MDNSRESPONDER options are disabled, the build notices that it should not try to link against -lavahi*. Unfortunately the source code attempts to call avahi routines, which causes the build to fail with linker errors. Linking ippserver... cc -L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -L/usr/local/lib -Wl,-rpath,/usr/lib:/usr/local/lib -L/usr/lib -Wl,-R/usr/local/lib -fPIE -pie -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -o ippserver ippserver.o ../cups/libcups.a \ -lssl -lcrypto -pthread -lm -lcrypt -lssp_nonshared -liconv -lz -lz ../cups/libcups.a(http-support.o)(.text+0x6a9): In function `http_client_cb': /usr/ports/print/cups-client/work/cups-1.7.2/cups/http-support.c:1871: undefined reference to `avahi_simple_poll_quit' ../cups/libcups.a(http-support.o)(.text+0x12b7): In function `http_resolve_cb': /usr/ports/print/cups-client/work/cups-1.7.2/cups/http-support.c:2266: undefined reference to `avahi_service_resolver_free' ../cups/libcups.a(http-support.o)(.text+0x12c7):/usr/ports/print/cups-client/work/cups-1.7.2/cups/http-support.c:2267: undefined reference to `avahi_simple_poll_quit' ../cups/libcups.a(http-support.o)(.text+0x1337):/usr/ports/print/cups-client/work/cups-1.7.2/cups/http-support.c:2288: undefined reference to `avahi_string_list_find' ../cups/libcups.a(http-support.o)(.text+0x1365):/usr/ports/print/cups-client/work/cups-1.7.2/cups/http-support.c:2290: undefined reference to `avahi_string_list_get_pair' ../cups/libcups.a(http-support.o)(.text+0x1422):/usr/ports/print/cups-client/work/cups-1.7.2/cups/http-support.c:2379: undefined reference to `avahi_simple_poll_quit' ../cups/libcups.a(http-support.o)(.text+0x1659):/usr/ports/print/cups-client/work/cups-1.7.2/cups/http-support.c:2275: undefined reference to `avahi_string_list_find' ../cups/libcups.a(http-support.o)(.text+0x2225): In function `_httpResolveURI': /usr/ports/print/cups-client/work/cups-1.7.2/cups/http-support.c:1739: undefined reference to `avahi_simple_poll_new' ../cups/libcups.a(http-support.o)(.text+0x2259):/usr/ports/print/cups-client/work/cups-1.7.2/cups/http-support.c:1741: undefined reference to `avahi_simple_poll_set_func' ../cups/libcups.a(http-support.o)(.text+0x2267):/usr/ports/print/cups-client/work/cups-1.7.2/cups/http-support.c:1743: undefined reference to `avahi_simple_poll_get' ../cups/libcups.a(http-support.o)(.text+0x229b):/usr/ports/print/cups-client/work/cups-1.7.2/cups/http-support.c:1743: undefined reference to `avahi_client_new' ../cups/libcups.a(http-support.o)(.text+0x230f):/usr/ports/print/cups-client/work/cups-1.7.2/cups/http-support.c:1747: undefined reference to `avahi_service_resolver_new' ../cups/libcups.a(http-support.o)(.text+0x2348):/usr/ports/print/cups-client/work/cups-1.7.2/cups/http-support.c:1758: undefined reference to `avahi_simple_poll_iterate' ../cups/libcups.a(http-support.o)(.text+0x23db):/usr/ports/print/cups-client/work/cups-1.7.2/cups/http-support.c:1768: undefined reference to `avahi_service_resolver_new' ../cups/libcups.a(http-support.o)(.text+0x2427):/usr/ports/print/cups-client/work/cups-1.7.2/cups/http-support.c:1776: undefined reference to `avahi_simple_poll_iterate' ../cups/libcups.a(http-support.o)(.text+0x24fb):/usr/ports/print/cups-client/work/cups-1.7.2/cups/http-support.c:1800: undefined reference to `avahi_client_free' ../cups/libcups.a(http-support.o)(.text+0x2509):/usr/ports/print/cups-client/work/cups-1.7.2/cups/http-support.c:1803: undefined reference to `avahi_simple_poll_free' gmake[1]: *** [ippserver] Error 1 gmake[1]: *** Waiting for unfinished jobs.... gmake[1]: Leaving directory `/usr/ports/print/cups-base/work/cups-1.7.2/test' gmake: *** [all] Error 1 ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop in /usr/ports/print/cups-base. *** Error code 1 Stop in /usr/ports/print/cups-base. The attached patch attempts to avoid this user error by grouping the AVAHI and MDNSRESPONDER options in an OPTIONS_SINGLE group to enforce the selection of exactly one of these options. -- You are receiving this mail because: You are the assignee for the bug.