[SOLVED] Building sendmail 8.16.1 returns an undefined reference error
by RandomTroll from LinuxQuestions.org on (#56E3J)
When I build sendmail 8.16.1 I get:
Quote:
I think this means that the source for domain.c doesn't find a reference to __res_search in any of the libraries to which it links. I can still build the previous version, 8.15.2 with no problem. Does this mean that sendmail doesn't link to libresolv correctly?


Quote:
/usr/bin/ld: domain.o: in function `getmxrr': domain.c: (.text+0x156): undefined reference to `__res_search' /usr/bin/ld: domain.c: (.text+0x228): undefined reference to `__dn_skipname' /usr/bin/ld: domain.c: (.text+0x368): undefined reference to `__res_query' /usr/bin/ld: domain.c: (.text+0x526): undefined reference to `__dn_expand' /usr/bin/ld: domain.o: in function `dns_getcanonname': domain.c: (.text+0x112e): undefined reference to `__res_querydomain' /usr/bin/ld: domain.c: (.text+0x1317): undefined reference to `__dn_skipname' /usr/bin/ld: domain.c: (.text+0x1427): undefined reference to `__dn_expand' /usr/bin/ld: sm_resolve.o: in function `dns_lookup_int': sm_resolve.c: (.text+0x246): undefined reference to `__res_search' /usr/bin/ld: sm_resolve.c: (.text+0x433): undefined reference to `__res_search' /usr/bin/ld: sm_resolve.c: (.text+0x54a): undefined reference to `__dn_expand' collect2: error: ld returned 1 exit status make: *** [Makefile:445: sendmail] Error 1 |