> On 30 Jan 2022, at 23:08, J. Thomsen <l...@jth.net> wrote: > > After upgrading from Fedora 34 to Fedora 35 I cannot compile Postfix (3.6.x) > due to this > > [src/util] > gcc -I. -I../../include -DHAS_DEV_URANDOM -DHAS_PCRE -UUSE_DYNAMIC_LIBS > -DDEF_SHLIB_DIR=\"no\" > -UUSE_DYNAMIC_MAPS -Wmissing-prototypes -Wformat -Wno-comment -fno-common -g > -O -I. -DLINUX5 -c > attr_clnt.c > > > In file included from attr_clnt.c:97: > /usr/include/unistd.h:363:13: error: conflicting types for ‘closefrom’; have > ‘void(int)’ > 363 | extern void closefrom (int __lowfd) __THROW; > | ^~~~~~~~~ > In file included from attr_clnt.c:96: > ./sys_defs.h:1512:12: note: previous declaration of ‘closefrom’ with type > ‘int(int)’ > 1512 | extern int closefrom(int); > | ^~~~~~~~~ > > > - Jørgen Thomsen
It's related to glibc-2.34. Fedora at least is carrying a patch for this: https://src.fedoraproject.org/rpms/postfix/blob/rawhide/f/postfix-3.6.2-glibc-234-build-fix.patch <https://src.fedoraproject.org/rpms/postfix/blob/rawhide/f/postfix-3.6.2-glibc-234-build-fix.patch>. I'd nearly sent one myself for Postfix but then I'd seen open embedded had sent one upstream ("Upstream-status: pending): https://cgit.openembedded.org/meta-openembedded/tree/meta-networking/recipes-daemons/postfix/files/0006-correct-signature-of-closefrom-API.patch <https://cgit.openembedded.org/meta-openembedded/tree/meta-networking/recipes-daemons/postfix/files/0006-correct-signature-of-closefrom-API.patch>. I am not aware of its status. Best, sam
signature.asc
Description: Message signed with OpenPGP