Article 56E3J [SOLVED] Building sendmail 8.16.1 returns an undefined reference error

[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:
/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
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?latest?d=yIl2AUoC8zA latest?i=nSoQ0Q34BGM:TdvO3COR4W4:F7zBnMy latest?i=nSoQ0Q34BGM:TdvO3COR4W4:V_sGLiP latest?d=qj6IDK7rITs latest?i=nSoQ0Q34BGM:TdvO3COR4W4:gIN9vFwnSoQ0Q34BGM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments