On Wed, 13 Mar 2024 13:03:36 +0100 Lucas Nussbaum <lu...@debian.org>
wrote:
> Source: librep
> Version: 0.92.5-3.1
> Severity: serious
> Justification: FTBFS
> Tags: trixie sid ftbfs
> User: lu...@debian.org
> Usertags: ftbfs-20240313 ftbfs-trixie
> 
> Hi,
> 
> During a rebuild of all packages in sid, your package failed to build
> on amd64.
> 
> 
> Relevant part (hopefully):
> > /usr/bin/ld: /tmp/ccO0t9oT.o: in function `main':
> > ././conftest.c:48:(.text.startup+0xb): undefined reference to
`mpz_init'
> > collect2: error: ld returned 1 exit status
> 
> 
> The full build log is available from:
> http://qa-logs.debian.net/2024/03/13/librep_0.92.5-3.1_unstable.log
> 
> All bugs filed during this archive rebuild are listed at:
>
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lu...@debian.org
> or:
>
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
> 
> A list of current common problems and possible solutions is available
at
> http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to
contribute!
> 
> If you reassign this bug to another package, please mark it as
'affects'-ing
> this package. See https://www.debian.org/Bugs/server-control#affects
> 
> If you fail to reproduce this, please provide a build log and diff it
with mine
> so that we can identify if something relevant changed in the meantime.

We applied the attached patch in Ubuntu to address this build failure.

-- 
Benjamin Drung
Debian & Ubuntu Developer
diff -Nru librep-0.92.5/debian/patches/build-fix-Wimplicit-int-Wimplicit-function-declaration.patch librep-0.92.5/debian/patches/build-fix-Wimplicit-int-Wimplicit-function-declaration.patch
--- librep-0.92.5/debian/patches/build-fix-Wimplicit-int-Wimplicit-function-declaration.patch	1970-01-01 01:00:00.000000000 +0100
+++ librep-0.92.5/debian/patches/build-fix-Wimplicit-int-Wimplicit-function-declaration.patch	2024-04-10 12:16:37.000000000 +0200
@@ -0,0 +1,62 @@
+From: Sam James <s...@gentoo.org>
+Date: Sat, 5 Nov 2022 06:04:27 +0000
+Subject: build: fix -Wimplicit-int, -Wimplicit-function-declaration
+
+Clang 16 will make -Wimplicit-int and -Wimplicit-function-declaration
+errors by default.
+
+In this case, it manifests as:
+```
+checking for data type to store Lisp values... configure: error: cannot find Lisp value type; set --with-value-type (see README)
+```
+
+For more information, see LWN.net [0] or LLVM's Discourse [1], or the
+(new) c-std-porting mailing list [2].
+
+[0] https://lwn.net/Articles/913505/
+[1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213
+[2] hosted at lists.linux.dev.
+
+Signed-off-by: Sam James <s...@gentoo.org>
+Bug-Ubuntu: https://launchpad.net/bugs/2060791
+Origin: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a935681a6fcabf47524c72420050b6a9030f555d
+---
+ configure.in | 12 ++++++++----
+ 1 file changed, 8 insertions(+), 4 deletions(-)
+
+diff --git a/configure.in b/configure.in
+index 1d959f4..4448c45 100644
+--- a/configure.in
++++ b/configure.in
+@@ -432,15 +432,18 @@ AC_ARG_WITH(value-type,
+ 			   as a pointer. [TYPE=<probed>] (see README)], [],
+  [with_value_type="undef"])
+ if test "${with_value_type}" = "undef"; then
+-  AC_TRY_RUN([main () { exit (!(sizeof (int) >= sizeof (void *)));}],
++  AC_TRY_RUN([#include <stdlib.h>
++             int main () { exit (!(sizeof (int) >= sizeof (void *)));}],
+ 	     [with_value_type=int])
+ fi
+ if test "${with_value_type}" = "undef"; then
+-  AC_TRY_RUN([main () { exit (!(sizeof (long int) >= sizeof (void *)));}],
++  AC_TRY_RUN([#include <stdlib.h>
++             int main () { exit (!(sizeof (long int) >= sizeof (void *)));}],
+ 	     [with_value_type="long int"])
+ fi
+ if test "${with_value_type}" = "undef"; then
+-  AC_TRY_RUN([main () { exit (!(sizeof (long long int) >= sizeof (void *)));}],
++  AC_TRY_RUN([#include <stdlib.h>
++             int main () { exit (!(sizeof (long long int) >= sizeof (void *)));}],
+ 	     [with_value_type="long long int"])
+ fi
+ if test "${with_value_type}" = "undef"; then
+@@ -457,7 +460,8 @@ AC_ARG_WITH(value-sizeof,
+ if test "${with_value_sizeof}" = "undef"; then
+   dnl the following fragment is inspired by AC_CHECK_SIZEOF
+   AC_TRY_RUN([#include <stdio.h>
+-	      main () {
++		#include <stdlib.h>
++		int main () {
+ 		FILE *f = fopen ("conftestval", "w");
+ 		if (!f) exit (1);
+ 		fprintf (f, "%d\n", sizeof (${with_value_type}));
diff -Nru librep-0.92.5/debian/patches/series librep-0.92.5/debian/patches/series
--- librep-0.92.5/debian/patches/series	2016-03-20 16:40:28.000000000 +0100
+++ librep-0.92.5/debian/patches/series	2024-04-10 12:16:37.000000000 +0200
@@ -1,3 +1,4 @@
 0001-Fix-inline_Fcons-for-compiling-with-gcc-5.0.patch
 0002-guess-stack-direction
 0003-hppa-metag-stack-direction
+build-fix-Wimplicit-int-Wimplicit-function-declaration.patch

Reply via email to