print/cups-base won't build due to dwarf error in /usr/bin/ld
Thomas Mueller
mueller6724 at bellsouth.net
Sat May 31 21:25:31 UTC 2014
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 at 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
More information about the freebsd-ports
mailing list