/usr/include/bits/fcntl.h has: #define O_SYNC (__O_SYNC|__O_DSYNC) which trips up the gnutls test suite fairly early on because: gl/tests/test-fcntl-h.c:85: #if O_DSYNC case O_DSYNC: #endif gl/tests/test-fcntl-h.c:85: #if O_SYNC && O_SYNC != O_RSYNC case O_SYNC: #endif gnutls-3 does not exhibit this problem.
Please state what is the value of following macros at this platform: O_SYNC O_DSYNC O_RSYNC Thanks!
$ cat o_sync.c /* * https://bugs.gentoo.org/show_bug.cgi?id=471914 */ #include <stdio.h> #include <fcntl.h> int main( int argc, char *argv ) { printf("O_SYNC : %d\n", O_SYNC); printf("O_DSYNC: %d\n", O_DSYNC); printf("O_RSYNC: %d\n", O_RSYNC); return 0; } $ ./o_sync O_SYNC : 262144 O_DSYNC: 262144 O_RSYNC: 524288
OK, it should be fixed in gnutls-2.12.23-r1. Thanks!
libtool: link: hppa2.0-unknown-linux-gnu-gcc -mschedule=8000 -march=2.0 -ggdb -pipe -Wall -O2 -Wno-comment -I/usr/include/p11-kit-1 -Wl,-O1 -Wl,--hash-style=gnu -o test-errno test-errno.o -Wl,--as-needed libtests.a ../../gl/.libs/liblgnu.a libtests.a -lp11-kit hppa2.0-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -DIN_LIBGNUTLS_GNULIB_TESTS=1 -I. -I. -I../.. -I./../.. -I../../gl -I./../../gl -mschedule=8000 -march=2.0 -ggdb -pipe -Wall -O2 -Wno-comment -I/usr/include/p11-kit-1 -c test-fcntl-h.c distcc[5889] ERROR: compile test-fcntl-h.c on wim/2 failed distcc[5889] (dcc_build_somewhere) Warning: remote compilation of 'test-fcntl-h.c' failed, retrying locally distcc[5889] Warning: failed to distribute test-fcntl-h.c to wim/2, running locally instead test-fcntl-h.c: In function 'main': test-fcntl-h.c:115:5: error: duplicate case value test-fcntl-h.c:85:5: error: previously used here distcc[5889] ERROR: compile test-fcntl-h.c on localhost failed make[7]: *** [test-fcntl-h.o] Error 1
Created attachment 351192 [details] net-libs:gnutls-2.12.23-r1:20130617-001853.log.gz
Oh! there are two of this file! I hope that it is fixed now... sorry about that... has no place to test.
Fixed. Thanks.