While trying to compile ...example-milter/sample.c from sendmail-8.11.3-1 package I got an error message: lee:~/milter/sample# make gcc -O2 -Wall -I. -o sample sample.c /usr/lib/libmilter/libmilter.a /usr/lib/libmilter/libsmutil.a -pthread /usr/lib/libmilter/libmilter.a(listener.o): In function `mi_milteropen': listener.o(.text+0x246): undefined reference to `__inet_addr' /usr/lib/libmilter/libmilter.a(engine.o): In function `st_connectinfo': engine.o(.text+0x714): undefined reference to `__inet_aton' collect2: ld returned 1 exit status make: *** [sample] Error 1
Before this I changed in Makefile `/usr/lib/libmilter/libmsmutil.a' to `/usr/lib/libmilter/libsmutil.a'. I believe it is a typo. In FAQ I read: Q3.9 -- How do I fix "undefined symbol inet_aton" and "undefined symbol _strerror" messages? This question is answered in detail within the Compiling Sendmail page. But I found nothing about this in Compiling Sendmail page. I use sid, kernel 2.4.2-2, libc6 2.2.2-1, sendmail, sendmail-doc, libmilter-dev 8.11.3-1. Can anybody, please, help me. Thank you, Mikhail.