During installing krb5 via brew install krb5
, got this error:
gcc-14 -L../../lib -Wl,--enable-new-dtags -Wl,-rpath -Wl,~/opt/brew/Cellar/krb5/1.21.3/lib -g -O2 -DHAVE_CONFIG_H -I../../include -I../../include -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -g -O2 -Wall -Wcast-align -Wshadow -Wmissing-prototypes -Wno-format-zero-length -Woverflow -Wstrict-overflow
-Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Werror=uninitialized -Wno-maybe-uninitialized -Werror=pointer-arith -Werror=int-conversion -Werror=incompatible-poin
ter-types -Werror=discarded-qualifiers -Werror=implicit-int -Werror=declaration-after-statement -Werror-implicit-function-declaration -pthread -o test_getpw test_getpw.o -lkrb5support
~/opt/brew/opt/binutils/bin/ld: /lib/x86_64-linux-gnu/libresolv.so.2: undefined reference to `__res_maybe_init@GLIBC_PRIVATE'
when I check the /lib/x86_64-linux-gnu/libresolv.so.2
, there is indeed such a symbol __res_maybe_init@GLIBC_PRIVATE
:
nm -D --with-symbol-versions /lib/x86_64-linux-gnu/libresolv.so.2 | grep __res_maybe_init
U __res_maybe_init@GLIBC_PRIVATE
Any ideas else i can try?