From owner-freebsd-ports@FreeBSD.ORG Sun Jun 1 00:19:52 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4E0127B8 for ; Sun, 1 Jun 2014 00:19:52 +0000 (UTC) Received: from mail-ob0-x230.google.com (mail-ob0-x230.google.com [IPv6:2607:f8b0:4003:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 149A72AC1 for ; Sun, 1 Jun 2014 00:19:52 +0000 (UTC) Received: by mail-ob0-f176.google.com with SMTP id wo20so3220573obc.21 for ; Sat, 31 May 2014 17:19:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=ImULtf1rVUH4pOjcu0sZcgaIiU/igLJwxVVKyvG0i7M=; b=LZmFjl1kakPYOeTdUuDbdUWuLTYhoMddNiPsLk7FBiAXscqoxrNa54dQ3CEpyEXV2l ojtdGvYztqI8i46YTfJqejd8GZknYSeKHdg6YT30N1mQoh3JPdP1KvRk/GNpqyfyhur5 BXHlUqBVLiLIhqeD8Aksi7gJDOO/WnYcIYoCGu1lRze9qE4pPdBbuilT6fF+Zykc1CZz GsB5bWKp1oT/hZS2BAz7SbqvMxOIh8Bc87gz1nuOfiwNyP4X/UOI+ufm5R1P4umLxREY RAu8h6gFGGreBJsNdyZJUag2YqiBiVEILXNfNKBsC7rplTSoilVGWYblPM9U47/Eyah/ ue9Q== MIME-Version: 1.0 X-Received: by 10.182.199.5 with SMTP id jg5mr25100182obc.75.1401581991400; Sat, 31 May 2014 17:19:51 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.76.21.139 with HTTP; Sat, 31 May 2014 17:19:51 -0700 (PDT) In-Reply-To: <998322.7188.bm@smtp119.sbc.mail.ne1.yahoo.com> References: <998322.7188.bm@smtp119.sbc.mail.ne1.yahoo.com> Date: Sat, 31 May 2014 17:19:51 -0700 X-Google-Sender-Auth: 5hDIxmICHMb6BGjVHg_nXs456yE Message-ID: Subject: Re: print/cups-base won't build due to dwarf error in /usr/bin/ld From: Kevin Oberman To: Thomas Mueller Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: FreeBSD Ports ML X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jun 2014 00:19:52 -0000 On Sat, May 31, 2014 at 2:25 PM, Thomas Mueller wrote: > I am trying to build cups-related ports needed for print/hplip, but the > latest error is > > /usr/bin/ld: Dwarf Error: found dwarf version '4', this reader only > handles vers > > ion 2 information. > > uname -a shows > > > FreeBSD amelia4 11.0-CURRENT FreeBSD 11.0-CURRENT #5 r265264: Sat May 3 > 16:20:39 UTC 2014 root@amelia4:/usr/obj/usr/src/sys/SANDY11NC amd64 > > This is followed by undefined references avahi-related: > > ../cups/libcups.a(http-support.o): In function `_httpResolveURI': > > http-support.c:(.text+0x1e80): undefined reference to > `avahi_simple_poll_new' > > http-support.c:(.text+0x1eaa): undefined reference to > `avahi_simple_poll_set_fun > > c' > > http-support.c:(.text+0x1eb2): undefined reference to > `avahi_simple_poll_get' > > http-support.c:(.text+0x1ed4): undefined reference to `avahi_client_new' > > http-support.c:(.text+0x1f23): undefined reference to > `avahi_service_resolver_ne > > w' > > http-support.c:(.text+0x1f4a): undefined reference to > `avahi_simple_poll_iterate > > ' > > http-support.c:(.text+0x1fbb): undefined reference to > `avahi_service_resolver_ne > > w' > > http-support.c:(.text+0x2023): undefined reference to > `avahi_simple_poll_iterate > > ' > > http-support.c:(.text+0x2054): undefined reference to `avahi_client_free' > > http-support.c:(.text+0x2060): undefined reference to > `avahi_simple_poll_free' > > ../cups/libcups.a(http-support.o): In function `http_client_cb': > > http-support.c:(.text+0x214e): undefined reference to > `avahi_simple_poll_quit' > > ../cups/libcups.a(http-support.o): In function `http_resolve_cb': > > http-support.c:(.text+0x228f): undefined reference to > `avahi_service_resolver_fr > > ee' > http-support.c:(.text+0x2313): undefined reference to > `avahi_string_list_find' > > http-support.c:(.text+0x2332): undefined reference to > `avahi_string_list_find' > > http-support.c:(.text+0x234f): undefined reference to > `avahi_string_list_get_pai > > r' > > http-support.c:(.text+0x2505): undefined reference to > `avahi_simple_poll_quit' > > cc: error: linker command failed with exit code 1 (use -v to see > invocation) > > gmake[3]: *** [ippserver] Error 1 > > gmake[3]: Leaving directory > `/usr/ports/print/cups-base/work11/cups-1.7.2/test' > > gmake[2]: *** [all] Error 1 > > gmake[2]: Leaving directory `/usr/ports/print/cups-base/work11/cups-1.7.2' > > *** Error code 1 > > > > Stop. > > I type this in a text-mode newcons, sorry for inelegant formatting, it > seems there is a lot of unwanted double-spacing such as I never get in > xterm or syscons. > > But what is this dwarf error. Do I need to source-update FreeBSD-current > installation, would that give me a more workable /usr/bin/ld? > > Tom > Seems like this version of cups absolutely requires zeroconf. You can configure with either avahi or mdnsresponder, but the build fails if neither is specified. I have not looked into it to tell if this is an error in the port or that cups now will only run when a zeroconf resolver is available. Not sure about the dwarf error. I have only seen that when building with debug, so I am surprised to see it during the build. It may not be a real issue. -- R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.com