Re: [squid-users] ld: Undefined symbols: _res_9_init compiling squid 3.2.0.15 with --disable-internal-dns option on Mac OS X 10.4.11

From: <gewehre_at_gmx.net>
Date: Mon, 20 Feb 2012 19:06:20 +0100

> > I had never attempted building with the --disable-internal-dns option
> before. Today, in the hope of enabling cache_dns_program, I tried it with
> squid-3.2.0.15-20120218-r11508. It barfed building
> /usr/local/squid/libexec/dnsserver:
> <snip>
> > After searching online, this appears to be an issue peculiar to Mac OS X
> 10.3 or 10.4. I'm on 10.4.11. I tried a variety of workarounds:
> >
> > 1. Changing Makefile's "LIBS = " to "LIBS = -lkvm -lm -lresolv -lz"
> > 2. Changing Makefile's "LDFLAGS=" to "LDFLAGS=-lresolv"
> > 3. "export LIBS=-lresolv"
> > 4. "export LDFLAGS=-lresolv"
> >
> > The only option that worked gets squid compiling with
> --disable-internal-dns is #4. I'm curious why the other three weren't effective.
>
> The dnsserver make rules are a little broken. It gets passed the default
> *FLAGS lists but not LIBS. Thank you for finding this.
>
> Was it Makefile or src/Makefile you changed for (1) and (2)? dsserver is
> built in src/Makefile.
>
> Amos
>

Thanks for the hint. I only modified ./Makefile. I wasn't aware of the other Makefile(s) :P

Updating src/Makefile apparently does the trick too.

On a related note, does dnsserver not support IPv6 name servers? I keep seeing "IPv6 nameservers not supported on this resolver" during squid startup in cache.log.

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
Received on Mon Feb 20 2012 - 18:06:30 MST

This archive was generated by hypermail 2.2.0 : Tue Feb 21 2012 - 12:00:05 MST