Bug#1065980: gfarm: FTBFS on arm{el,hf}:
tags 1065980 +patch thanks This build failure was caused by missing "feature test macros" meaning that the relevant functions were not enabled in the system headers. A debdiff adding them is attached.diff -Nru gfarm-2.7.20+dfsg/debian/changelog gfarm-2.7.20+dfsg/debian/changelog --- gfarm-2.7.20+dfsg/debian/changelog 2024-02-28 17:35:22.0 + +++ gfarm-2.7.20+dfsg/debian/changelog 2024-04-04 04:41:24.0 + @@ -1,3 +1,11 @@ +gfarm (2.7.20+dfsg-1.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Add include of unistd.h to lib/libgfarm/gfarm/gfp_xdr.c to fix +implicit declaration error. + + -- Peter Michael Green Thu, 04 Apr 2024 04:41:24 + + gfarm (2.7.20+dfsg-1.1) unstable; urgency=medium * Non-maintainer upload. diff -Nru gfarm-2.7.20+dfsg/debian/patches/missing-feature-test-macros.patch gfarm-2.7.20+dfsg/debian/patches/missing-feature-test-macros.patch --- gfarm-2.7.20+dfsg/debian/patches/missing-feature-test-macros.patch 1970-01-01 00:00:00.0 + +++ gfarm-2.7.20+dfsg/debian/patches/missing-feature-test-macros.patch 2024-04-04 04:41:24.0 + @@ -0,0 +1,173 @@ +Index: gfarm-2.7.20+dfsg/lib/libgfarm/gfarm/gfp_xdr.c +=== +--- gfarm-2.7.20+dfsg.orig/lib/libgfarm/gfarm/gfp_xdr.c gfarm-2.7.20+dfsg/lib/libgfarm/gfarm/gfp_xdr.c +@@ -1,3 +1,4 @@ ++#define _XOPEN_SOURCE 500 + #include + #include + #include +Index: gfarm-2.7.20+dfsg/bench/gfperf/gfperf-autoreplica/gfperf-autoreplica-main.c +=== +--- gfarm-2.7.20+dfsg.orig/bench/gfperf/gfperf-autoreplica/gfperf-autoreplica-main.c gfarm-2.7.20+dfsg/bench/gfperf/gfperf-autoreplica/gfperf-autoreplica-main.c +@@ -2,6 +2,7 @@ + * $Id$ + */ + ++#define _GNU_SOURCE + #include "gfperf-lib.h" + #include + #include +Index: gfarm-2.7.20+dfsg/bench/gfperf/gfperf-copy/gfperf-copy-gfarm2fs.c +=== +--- gfarm-2.7.20+dfsg.orig/bench/gfperf/gfperf-copy/gfperf-copy-gfarm2fs.c gfarm-2.7.20+dfsg/bench/gfperf/gfperf-copy/gfperf-copy-gfarm2fs.c +@@ -2,7 +2,7 @@ + * $Id$ + */ + +- ++#define _GNU_SOURCE + #include + #include + #include +Index: gfarm-2.7.20+dfsg/bench/gfperf/gfperf-copy/gfperf-copy-main.c +=== +--- gfarm-2.7.20+dfsg.orig/bench/gfperf/gfperf-copy/gfperf-copy-main.c gfarm-2.7.20+dfsg/bench/gfperf/gfperf-copy/gfperf-copy-main.c +@@ -2,7 +2,7 @@ + * $Id$ + */ + +- ++#define _GNU_SOURCE + #include "gfperf-lib.h" + #include + #include +Index: gfarm-2.7.20+dfsg/bench/gfperf/gfperf-lib/gfperf-util.c +=== +--- gfarm-2.7.20+dfsg.orig/bench/gfperf/gfperf-lib/gfperf-util.c gfarm-2.7.20+dfsg/bench/gfperf/gfperf-lib/gfperf-util.c +@@ -2,7 +2,8 @@ + * $Id$ + */ + +- ++#define _DEFAULT_SOURCE ++#define _XOPEN_SOURCE 500 + #include + #include + #include +Index: gfarm-2.7.20+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-main.c +=== +--- gfarm-2.7.20+dfsg.orig/bench/gfperf/gfperf-metadata/gfperf-metadata-main.c gfarm-2.7.20+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-main.c +@@ -2,7 +2,7 @@ + * $Id$ + */ + +- ++#define _GNU_SOURCE + #include "gfperf-lib.h" + #include + #include +Index: gfarm-2.7.20+dfsg/bench/gfperf/gfperf-parallel-read/gfperf-parallel-read-main.c +=== +--- gfarm-2.7.20+dfsg.orig/bench/gfperf/gfperf-parallel-read/gfperf-parallel-read-main.c gfarm-2.7.20+dfsg/bench/gfperf/gfperf-parallel-read/gfperf-parallel-read-main.c +@@ -3,6 +3,7 @@ + */ + + ++#define _GNU_SOURCE + #include "gfperf-lib.h" + #include + #include +Index: gfarm-2.7.20+dfsg/bench/gfperf/gfperf-parallel-write/gfperf-parallel-write-main.c +=== +--- gfarm-2.7.20+dfsg.orig/bench/gfperf/gfperf-parallel-write/gfperf-parallel-write-main.c gfarm-2.7.20+dfsg/bench/gfperf/gfperf-parallel-write/gfperf-parallel-write-main.c +@@ -3,6 +3,7 @@ + */ + + ++#define _GNU_SOURCE + #include "gfperf-lib.h" + #include + #include +Index: gfarm-2.7.20+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c +=== +--- gfarm-2.7.20+dfsg.orig/bench/gfperf/gfperf-read/gfperf-read-main.c gfarm-2.7.20+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c +@@ -2,7 +2,7 @@ + * $Id$ + */ + +- ++#define _GNU_SOURCE + #include "gfperf-lib.h" + #include + #include +Index: gfarm-2.7.20+dfsg/bench/gfperf/gfperf-replica/gfperf-replica-main.c +=== +--- gfarm-2.7.20+dfsg.orig/bench/gfperf/gfperf-replica/gfperf-replica-main.c gfarm-2.7.20+dfsg/bench
Bug#1065980: gfarm: FTBFS on arm{el,hf}:
Source: gfarm Version: 2.7.20+dfsg-1.1 Severity: serious Tags: ftbfs Justification: fails to build from source (but built successfully in the past) X-Debbugs-Cc: sramac...@debian.org https://buildd.debian.org/status/fetch.php?pkg=gfarm&arch=armhf&ver=2.7.20%2Bdfsg-1.1&stamp=1709147793&raw=0 /bin/bash ../../../libtool --mode=compile cc -D_REENTRANT -pthread -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../../include -I../../../include -DCOMPAT_GFARM_2_3 -I../../../lib/libgfarm/gfutil -I../../../lib/libgfarm/gfarm -I. -I/usr/include/postgresql-DGFARM_CONFIG='"/etc/gfarm2.conf"' -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c ./gfp_xdr_server.c ./gfp_xdr.c: In function ‘gfp_xdr_vsend’: ./gfp_xdr.c:484:25: error: implicit declaration of function ‘swab’ [-Werror=implicit-function-declaration] 484 | swab(&d, &nd, sizeof(nd)); | ^~~~ libtool: compile: cc -D_REENTRANT -pthread -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../../include -I../../../include -DCOMPAT_GFARM_2_3 -I../../../lib/libgfarm/gfutil -I../../../lib/libgfarm/gfarm -I. -I/usr/include/postgresql -DGFARM_CONFIG=\"/etc/gfarm2.conf\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c ./gfp_xdr_server.c -fPIC -DPIC -o .libs/gfp_xdr_server.o /bin/bash ../../../libtool --mode=compile cc -D_REENTRANT -pthread -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../../include -I../../../include -DCOMPAT_GFARM_2_3 -I../../../lib/libgfarm/gfutil -I../../../lib/libgfarm/gfarm -I. -I/usr/include/postgresql-DGFARM_CONFIG='"/etc/gfarm2.conf"' -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c ./gfs_proto.c /bin/bash ../../../libtool --mode=compile cc -D_REENTRANT -pthread -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../../include -I../../../include -DCOMPAT_GFARM_2_3 -I../../../lib/libgfarm/gfutil -I../../../lib/libgfarm/gfarm -I. -I/usr/include/postgresql-DGFARM_CONFIG='"/etc/gfarm2.conf"' -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c ./io_fd.c libtool: compile: cc -D_REENTRANT -pthread -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../../include -I../../../include -DCOMPAT_GFARM_2_3 -I../../../lib/libgfarm/gfutil -I../../../lib/libgfarm/gfarm -I. -I/usr/include/postgresql -DGFARM_CONFIG=\"/etc/gfarm2.conf\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c ./gfs_proto.c -fPIC -DPIC -o .libs/gfs_proto.o libtool: compile: cc -D_REENTRANT -pthread -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../../include -I../../../include -DCOMPAT_GFARM_2_3 -I../../../lib/libgfarm/gfutil -I../../../lib/libgfarm/gfarm -I. -I/usr/include/postgresql -DGFARM_CONFIG=\"/etc/gfarm2.conf\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c ./io_fd.c -fPIC -DPIC -o .libs/io_fd.o /bin/bash ../../../libtool --mode=compile cc -D_REENTRANT -pthread -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../../include -I../../../include -DCOMPAT_GFARM_2_3 -I../../../lib/libgfarm/gfutil -I../../../lib/libgfarm/gfarm -I. -I/usr/include/postgresql-DGFARM_CONFIG='"/etc/gfarm2.conf"' -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c ./metadb_common.c /bin/bash ../../../libtool --mode=compile cc -D_REENTRANT -pthread -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../../include -I../../../include -DCOMPAT_GFARM_2_3 -I../../../lib/libgfarm/gfutil -I../../../lib/libgfarm/gfarm -I. -I/usr/include/postgresql