Source: nettle Version: 3.10.1-1 Tags: ftbfs patch upstream User: helm...@debian.org Usertags: rebootstrap
nettle fails to build from source on non-glibc systems such as musl-based Debian when built with gcc-15, because some of its function prototypes are incomplete. The empty prototypes end up conflicting with the ones declared by the C library. I'm attaching a patch for your convenience. Helmut
--- nettle-3.10.1.orig/getopt.h +++ nettle-3.10.1/getopt.h @@ -166,7 +166,7 @@ # endif # endif #else /* not __GNU_LIBRARY__ */ -extern int getopt (); +extern int getopt (int, char *const *, const char *); #endif /* __GNU_LIBRARY__ */ #ifndef __need_getopt --- nettle-3.10.1.orig/getopt.c +++ nettle-3.10.1/getopt.c @@ -136,7 +136,7 @@ whose names are inconsistent. */ #ifndef getenv -extern char *getenv (); +extern char *getenv (const char *); #endif #endif /* not __GNU_LIBRARY__ */