[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-inetutils] Configure script incorrect for 'sa_len'.
From: |
Mats Erik Andersson |
Subject: |
[bug-inetutils] Configure script incorrect for 'sa_len'. |
Date: |
Thu, 7 Apr 2011 10:51:57 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Dear all,
the top level file 'configure.ac' correctly contains a test
for the presence of 'sa_len' in 'struct sockaddr' using the
header files '<sys/types.h>' and '<sys/socket.h>'.
However, after bootstrapping, the new 'configure' impements
two test versions, one of them has eliminated <sys/types.h>.
Reading 'config.log' the wrong instance of these tests is
executed for GNU/Linux, as well as for OpenBSD. Hence the
test fails of the wrong reason for all BSD systems.
Could someone find the flaw? Is there a GNU macro making
a wrong turn?
On a BSD system
#include <sys/types.h>
#include <sys/socket.h>
int main(void) {
static struct sockaddr sa;
sa.sa_len = 0;
return 0;
}
is a minaimal, correct and functional program, but our configuration
is unable to detect this, instead claiming the opposite to be true.
Best regards,
Mats
- [bug-inetutils] Configure script incorrect for 'sa_len'.,
Mats Erik Andersson <=