maintainer-feedback requested: [Bug 265343] x11-toolkits/gtk20 build failure "section header table goes past the end of the file"

From: <>
Date: Wed, 20 Jul 2022 14:21:36 UTC
Bugzilla Automation <> has asked freebsd-desktop (Team)
<> for maintainer-feedback:
Bug 265343: x11-toolkits/gtk20 build failure "section header table goes past
the end of the file"

--- Description ---
This fails in todays (Wednesday 20th July) portstree on 13 stable in poudriere

[00:00:32] mv -f .deps/gdkmarshalers.Tpo .deps/gdkmarshalers.Plo
[00:00:32] /bin/sh ../libtool  --tag=CC   --mode=link cc  -O2 -pipe
-march=haswell	-fstack-protector-strong -isys
tem /usr/local/include -fno-strict-aliasing  -Wall  -version-info 2400:33:2400
-export-dynamic -rpath /usr/local/l
ib  -export-symbols-regex "^[^_].*" -fstack-protector-strong -L/usr/local/lib 
-o	gdk.lo gdka
pplaunchcontext.lo gdkcairo.lo gdkcolor.lo gdkcursor.lo gdkdisplay.lo
gdkdisplaymanager.lo gdkdnd.lo gdkdraw.lo gd
kevents.lo gdkfont.lo gdkgc.lo gdkglobals.lo gdkimage.lo gdkkeys.lo
gdkkeyuni.lo gdkoffscreenwindow.lo gdkpango.lo
 gdkpixbuf-drawable.lo gdkpixbuf-render.lo gdkpixmap.lo gdkpolyreg-generic.lo
gdkrectangle.lo gdkregion-generic.lo
 gdkrgb.lo gdkscreen.lo gdkselection.lo gdkvisual.lo gdkwindow.lo
gdkwindowimpl.lo gdkenumtypes.lo gdkmarshalers.l
o x11/ -L/usr/local/lib -lpangocairo-1.0 -lpango-1.0 -lharfbuzz
-lgio-2.0 -lfontconfig -lfreetype -lX
render -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes
-lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.
0 -lintl -lcairo -lX11 -lXext -lm 
[00:00:32] libtool: link: /usr/bin/nm  .libs/gdk.o .libs/gdkapplaunchcontext.o
.libs/gdkcairo.o .libs/gdkcolor.o .
libs/gdkcursor.o .libs/gdkdisplay.o .libs/gdkdisplaymanager.o .libs/gdkdnd.o
.libs/gdkdraw.o .libs/gdkevents.o .li
bs/gdkfont.o .libs/gdkgc.o .libs/gdkglobals.o .libs/gdkimage.o .libs/gdkkeys.o
.libs/gdkkeyuni.o .libs/gdkoffscree
nwindow.o .libs/gdkpango.o .libs/gdkpixbuf-drawable.o .libs/gdkpixbuf-render.o
.libs/gdkpixmap.o .libs/gdkpolyreg-
generic.o .libs/gdkrectangle.o .libs/gdkregion-generic.o .libs/gdkrgb.o
.libs/gdkscreen.o .libs/gdkselection.o .li
bs/gdkvisual.o .libs/gdkwindow.o .libs/gdkwindowimpl.o .libs/gdkenumtypes.o
.libs/gdkmarshalers.o	x11/.libs/libg
dk-x11.a | sed -n -e 's/^.*[	 ]\([BCDEGRST][BCDEGRST]*\)[	 ][	
]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'
 | sed '/ __gnu_lto/d' | /usr/bin/sed 's/.* //' | sort | uniq >
[00:00:32] nm: .libs/gdkwindow.o: Missing or malformed ELF header
[00:00:32] libtool: link: /usr/bin/egrep -e "^[^_].*"
".libs/libgdk-x11-2.0.exp" > ".libs/libgdk-x11-2.0.expT"
[00:00:32] libtool: link: mv -f ".libs/libgdk-x11-2.0.expT"
[00:00:32] libtool: link: echo "{ global:" >
[00:00:32] libtool: link:		 sed -e "s|$|;|" <
.libs/libgdk-x11-2.0.exp >> .libs/
[00:00:32] libtool: link:	 echo "local: *; };" >>
[00:00:32] libtool: link: cc -shared  -fPIC -DPIC  .libs/gdk.o
.libs/gdkapplaunchcontext.o .libs/gdkcairo.o .libs/
gdkcolor.o .libs/gdkcursor.o .libs/gdkdisplay.o .libs/gdkdisplaymanager.o
.libs/gdkdnd.o .libs/gdkdraw.o .libs/gdk
events.o .libs/gdkfont.o .libs/gdkgc.o .libs/gdkglobals.o .libs/gdkimage.o
.libs/gdkkeys.o .libs/gdkkeyuni.o .libs
/gdkoffscreenwindow.o .libs/gdkpango.o .libs/gdkpixbuf-drawable.o
.libs/gdkpixbuf-render.o .libs/gdkpixmap.o .libs
/gdkpolyreg-generic.o .libs/gdkrectangle.o .libs/gdkregion-generic.o
.libs/gdkrgb.o .libs/gdkscreen.o .libs/gdksel
ection.o .libs/gdkvisual.o .libs/gdkwindow.o .libs/gdkwindowimpl.o
.libs/gdkenumtypes.o .libs/gdkmarshalers.o  -Wl
,--whole-archive x11/.libs/libgdk-x11.a -Wl,--no-whole-archive 
-L/usr/local/lib -lpangocairo-1.0 -lpango-1.0 -lha
rfbuzz -lgio-2.0 -lfontconfig -lfreetype -lXrender -lXinerama -lXi -lXrandr
-lXcursor -lXcomposite -lXdamage -lXfi
xes -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lintl -lcairo -lX11 -lXext -lm 
-O2 -march=haswell -fstack-protecto
r-strong -fstack-protector-strong   -Wl,-soname -Wl,
-Wl,-version-script -Wl,.libs/libgdk-x11-2 -o .libs/
[00:00:32] ld: error: .libs/gdkwindow.o: section header table goes past the end
of the file: e_shoff = 0x2d0c0
[00:00:32] cc: error: linker command failed with exit code 1 (use -v to see
[00:00:32] gmake[5]: *** [Makefile:1255:] Error 1
[00:00:32] gmake[5]: Leaving directory
[00:00:32] gmake[4]: *** [Makefile:1401: all-recursive] Error 1
[00:00:32] gmake[4]: Leaving directory
[00:00:32] gmake[3]: *** [Makefile:1175: all] Error 2
[00:00:32] gmake[3]: Leaving directory
[00:00:32] gmake[2]: *** [Makefile:730: all-recursive] Error 1
[00:00:32] gmake[2]: Leaving directory
[00:00:32] gmake[1]: *** [Makefile:622: all] Error 2
[00:00:32] gmake[1]: Leaving directory
[00:00:32] *** Error code 1
[00:00:32] Stop.
[00:00:32] make: stopped in /usr/ports/x11-toolkits/gtk20