cockroachdb / cockroachdb/cockroach
dev: building on Ubuntu 23.04 fails because of libresolv
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
`dev build short` with config `dev` (as opposed to `crosslinux`) on Ubuntu 23.04 says:
```
external/archived_cdep_libkrb5_linux/lib/libkrb5.a(dnsglue.o):dnsglue.c:function krb5int_dns_init: error: undefined reference to '__res_nsearch'
```
even though I have the `libresolv-wrapper` pkg installed, which I think provides the `livresolv` which is supposed to provide that function.
Before upgrading from 22.10 to 23.04, it used to build fine. I've tried on a fresh 23.04 machine, and got the same.
The build does work with config `crosslinux` (maybe because that links against a pinned libresolv?).
The build also works with `--force_build_cdeps`. Without knowing what I'm talking about, this leads me to guess that the version of libresolv that our pre-built cdeps are dynamically linked against a version of `libresolv` that's older/incompatible with the upgraded one in 23.04 (and indeed 23.04 does have a different version of the package than 22.10, fwiw).
cc @rickystewart
Jira issue: CRDB-27275
Contributor guide
Assessment
This issue has not been assessed yet.