Created attachment 866703 [details] emerge --info and build log sys-devel/gcc-13.2.0 is built with USE="cxx debug default-stack-clash-protection default-znow hardened multilib nls nptl openmp pgo pie sanitize ssp zstd" I tried building it with more sane CFLAGS="-O2 -pipe", but the outcome was the same. In file included from /mnt/tmp/portage/app-pda/libimobiledevice-1.3.0-r2/work/libimobiledevice-1.3.0/common/utils.c:37: /mnt/tmp/portage/app-pda/libimobiledevice-1.3.0-r2/work/libimobiledevice-1.3.0/common/utils.h:55:9: error: redeclaration of enumerator 'PLIST_FORMAT_XML' 55 | PLIST_FORMAT_XML, | ^~~~~~~~~~~~~~~~ In file included from /mnt/tmp/portage/app-pda/libimobiledevice-1.3.0-r2/work/libimobiledevice-1.3.0/common/utils.h:37: /usr/local/include/plist/plist.h:162:9: note: previous definition of 'PLIST_FORMAT_XML' with type 'enum <anonymous>' 162 | PLIST_FORMAT_XML = 1, /**< XML format */ | ^~~~~~~~~~~~~~~~ /mnt/tmp/portage/app-pda/libimobiledevice-1.3.0-r2/work/libimobiledevice-1.3.0/common/utils.h:56:9: error: redeclaration of enumerator 'PLIST_FORMAT_BINARY' 56 | PLIST_FORMAT_BINARY | ^~~~~~~~~~~~~~~~~~~ /usr/local/include/plist/plist.h:163:9: note: previous definition of 'PLIST_FORMAT_BINARY' with type 'enum <anonymous>' 163 | PLIST_FORMAT_BINARY = 2, /**< bplist00 format */ | ^~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:473: utils.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from /mnt/tmp/portage/app-pda/libimobiledevice-1.3.0-r2/work/libimobiledevice-1.3.0/common/userpref.c:69: /mnt/tmp/portage/app-pda/libimobiledevice-1.3.0-r2/work/libimobiledevice-1.3.0/common/utils.h:55:9: error: redeclaration of enumerator 'PLIST_FORMAT_XML' 55 | PLIST_FORMAT_XML, | ^~~~~~~~~~~~~~~~ In file included from /mnt/tmp/portage/app-pda/libimobiledevice-1.3.0-r2/work/libimobiledevice-1.3.0/common/userpref.h:41, from /mnt/tmp/portage/app-pda/libimobiledevice-1.3.0-r2/work/libimobiledevice-1.3.0/common/userpref.c:67: /usr/local/include/plist/plist.h:162:9: note: previous definition of 'PLIST_FORMAT_XML' with type 'enum <anonymous>' 162 | PLIST_FORMAT_XML = 1, /**< XML format */ | ^~~~~~~~~~~~~~~~ /mnt/tmp/portage/app-pda/libimobiledevice-1.3.0-r2/work/libimobiledevice-1.3.0/common/utils.h:56:9: error: redeclaration of enumerator 'PLIST_FORMAT_BINARY' 56 | PLIST_FORMAT_BINARY | ^~~~~~~~~~~~~~~~~~~ /usr/local/include/plist/plist.h:163:9: note: previous definition of 'PLIST_FORMAT_BINARY' with type 'enum <anonymous>' 163 | PLIST_FORMAT_BINARY = 2, /**< bplist00 format */ | ^~~~~~~~~~~~~~~~~~~
>/usr/local/include/plist/plist.h You have a copy of app-pda/libplist in /usr/local.