https://bugs.gentoo.org/show_bug.cgi?id=186424 After applying the previously attatched wireshark-0.99.6-ldflag-lm.patch the linking works. "Forgetting" -lm is a common mistake since glibc works without it. Other libc's are not as forgiving. --- ./wiretap/Makefile.am.orig 2007-07-24 12:17:53.000000000 +0400 +++ ./wiretap/Makefile.am 2007-07-24 12:18:47.000000000 +0400 @@ -69,8 +69,8 @@ $(GENERATOR_SOURCES) \ $(GENERATED_FILES) -libwiretap_la_LIBADD = libwiretap_generated.la -libwiretap_la_DEPENDENCIES = libwiretap_generated.la +libwiretap_la_LIBADD = libwiretap_generated.la -lm +libwiretap_la_DEPENDENCIES = libwiretap_generated.la -lm ascend-grammar.c : ascend-grammar.y @if [ -z "$(YACC)" ]; then \