Hi, >>>>> On Thu, 28 Apr 2016 15:59:21 +0200 >>>>> "Leonardo Arena rnalrd@... [milter-greylist]" <milter-greylist@yahoogroups.com> said: milter-greylist> I'm porting milter-graylist to Alpine Linux (based on musl libc) and it milter-greylist> seems to me that sockaddr structure length is detected although isn't milter-greylist> present: milter-greylist> milter-greylist.c: In function 'real_connect': milter-greylist> milter-greylist.c:386:25: error: 'struct sockaddr_in' has no member milter-greylist> named 'sin_len' milter-greylist> SA4(&priv->priv_addr)->sin_len = priv->priv_addrlen; milter-greylist> config.h has HAVE_SA_LEN defined: milter-greylist> (edge-x86_64) ~/aports/testing/milter-greylist/src/milter-greylist-4.4.3 milter-greylist> $ grep HAVE_SA_LEN config.h milter-greylist> #define HAVE_SA_LEN /**/ It seems strange to me. Basically, having sa_len in struct sockaddr is BSD flavor, and Linux doesn't have it. I'm not sure why configure (AC_CHECK_MEMBER) detects sa_len in struct sockaddr on your box. Did you make sure to run configure? milter-greylist> If I comment it out, it compiles just fine. It seems to me that your struct sockaddr doesn't have sa_len. Sincerely, -- Hajimu UMEMOTO ume@... ume@... http://www.mahoroba.org/~ume/
Message
Re: [milter-greylist] Socket address structure length detection
2016-04-28 by Hajimu UMEMOTO
Attachments
- No local attachments were found for this message.