Search squid archive

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 19/02/2012 4:08 p.m., gewehre@xxxxxxx wrote:
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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux