When building xfe v2.0.1 on openSUSE Leap 15.6 with gcc-13, compilation fails with
depbase=`echo main.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
_ /usr/bin/g++-13 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../intl -I/usr/local/include/freetype2 -I/usr/local/include/harfbuzz -I/usr/local/include -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/local/include/freetype2 -I/usr/local/include/harfbuzz -I/usr/local/include -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -Wall -std=c++11 -O3 -fPIC -mtune=native -I/usr/local/include/fox-1.6 -DHAVE_XFT_H -DHAVE_XRANDR_H=1 -DSTARTUP_NOTIFICATION -MT main.o -MD -MP -MF $depbase.Tpo -c -o main.o main.cpp &&\
_ mv -f $depbase.Tpo $depbase.Po
main.cpp: In function ‘int main(int, char**)’:
main.cpp:490:73: error: ‘pkg_format’ was not declared in this scope
490 | application->reg().writeUnsignedEntry("SETTINGS", "package_format", pkg_format);
| ^~~~~~~~~~
If I add -Dlinux to the invocation of gcc-13, then all compiles and links and installs successfully because compilation then includes #if defined(linux) block of code in main.cpp.
So for some reason the configure script is not adding the necessary flag " -Dlinux" to the CFLAGS even though config.log contains instances of
Target: x86_64-suse-linux
build='x86_64-pc-linux-gnu
build_os='linux-gnu'
host='x86_64-pc-linux-gnu'
host_os='linux-gnu'
Even if I do autoreconf -fiv to generate a fresh configure script, the same compilation error occurs.
There is no such issue in Ubuntu 24.04 with gcc 13.3.0 so maybe your issue is related to your OpenSuse Leap system?