ricardbejarano / dnsmasq

🤿 Built-from-source container image of Dnsmasq
MIT License
17 stars 4 forks source link

dnssec #1

Closed ddumont closed 1 year ago

ddumont commented 2 years ago

I like your container... any chance you could update it to be a version with the dnssec option compiled?

ricardbejarano commented 2 years ago

Sure, can you please raise a PR with the changes?

ddumont commented 2 years ago

I'm getting failures... And I'm not terribly familiar with c and c builds...

/tmp/dnsmasq-2.86 # make LDFLAGS="-static --disable-shared" COPTS='-DHAVE_DNSSEC -DHAVE_DNSSEC_STATIC'
sort: unknown sort type
make[1]: Entering directory '/tmp/dnsmasq-2.86/src'
cc -static --disable-shared -o dnsmasq cache.o rfc1035.o util.o option.o forward.o network.o dnsmasq.o dhcp.o lease.o rfc2131.o netlink.o dbus.o bpf.o helper.o tftp.o log.o conntrack.o dhcp6.o rfc3315.o dhcp-common.o outpacket.o radv.o slaac.o auth.o ipset.o pattern.o domain.o dnssec.o blockdata.o tables.o loop.o inotify.o poll.o rrfilter.o edns0.o arp.o crypto.o dump.o ubus.o metrics.o hash-questions.o domain-match.o -Wl,-Bstatic -lnettle -lhogweed -lgmp -lnettle  -Wl,-Bdynamic -Wl,-Bstatic -lgmp -Wl,-Bdynamic
/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: attempted static link of dynamic object `/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../lib/libc.so'
collect2: error: ld returned 1 exit status
make[1]: *** [/tmp/dnsmasq-2.86/Makefile:168: dnsmasq] Error 1
make[1]: Leaving directory '/tmp/dnsmasq-2.86/src'
make: *** [Makefile:90: all] Error 2