Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471914 - net-libs/gnutls-2.12* on HPPA - 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
Summary: net-libs/gnutls-2.12* on HPPA - test-fcntl-h.c: In function 'main': test-fcnt...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: HPPA Porters
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2013-05-31 16:11 UTC by Jeroen Roovers (RETIRED)
Modified: 2014-02-22 15:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
net-libs:gnutls-2.12.23-r1:20130617-001853.log.gz (20130617-001853.log.gz,55.32 KB, application/x-gzip)
2013-06-17 10:07 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2013-05-31 16:11:29 UTC
/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.
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2013-06-01 20:23:37 UTC
Please state what is the value of following macros at this platform:

O_SYNC
O_DSYNC
O_RSYNC

Thanks!
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-05 15:15:51 UTC
$ 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
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2013-06-15 22:37:34 UTC
OK, it should be fixed in gnutls-2.12.23-r1.
Thanks!
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-17 10:07:31 UTC
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
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-17 10:07:59 UTC
Created attachment 351192 [details]
net-libs:gnutls-2.12.23-r1:20130617-001853.log.gz
Comment 6 Alon Bar-Lev (RETIRED) gentoo-dev 2013-06-17 10:33:25 UTC
Oh!

there are two of this file!

I hope that it is fixed now... sorry about that... has no place to test.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-17 11:36:31 UTC
Fixed. Thanks.