Hi, I noticed the same bug (except that it occurs now in line 190 instead of 188) compiling wesnoth.
Short time before I was able to compile it! All I did was a unrelated change in a Makefile.am and another ./autogen; configure call. Just for information (maybe it's reproducable for you?) I obtained wesnoth from svn (revision: 10996) and configured it using ../configure CXX=g++-4.1 --enable-debug --enable-static --enable-server --enable-campaign-server --enable-editor --enable-tools --disable-gnome1 --disable-gnome2 Static compiling caused problems because of #267174 and friends. Editing /usr/lib/libgmodule-2.0.la /usr/lib/libgthread-2.0.la /usr/lib/libglib-2.0.la /usr/lib/libaa.la and setting proper static libraries fixed it up to the error: $ g++-4.1 -I ../../src/sdl_ttf -I../intl -I../../intl -I/usr/include/SDL -D_REENTRANT -DWESNOTH_PATH=\"/usr/local/share/wesnoth\" -DLOCALEDIR=\"translations\" -DHAS_RELATIVE_LOCALEDIR=1 -DFIFODIR=\"/usr/local/var/run/wesnothd\" -DHAVE_FRIBIDI -I/usr/include -DDEBUG -O0 -ggdb3 -W -Wall -ansi -D_X11 -I/usr/X11R6/include -static -o wesnoth about.o actions.o ai.o ai_dfool.o ai_attack.o ai_move.o ai_python.o animated.o astarnode.o attack_prediction.o builder.o cavegen.o checksum.o clipboard.o color_range.o config_adapter.o cursor.o dialogs.o display.o events.o font.o game.o game_events.o gamestatus.o halo.o help.o hotkeys.o image.o intro.o key.o language.o leader_list.o loadscreen.o map_create.o map_label.o mapgen.o mapgen_dialog.o marked-up_text.o menu_events.o minimap.o mouse.o mouse_events.o multiplayer.o multiplayer_ui.o multiplayer_wait.o multiplayer_connect.o multiplayer_create.o multiplayer_lobby.o network.o network_worker.o pathfind.o playcampaign.o playlevel.o playturn.o preferences.o preferences_display.o publish_campaign.o replay.o replay_controller.o reports.o sdl_utils.o show_dialog.o sound.o statistics.o team.o theme.o titlescreen.o tooltips.o unit.o unit_abilities.o unit_display.o unit_types.o unit_animation.o upload_log.o variable.o video.o serialization/binary_or_text.o serialization/parser.o serialization/string_utils.o widgets/button.o widgets/combo.o widgets/label.o widgets/menu.o widgets/image_button.o widgets/progressbar.o widgets/scrollarea.o widgets/scrollbar.o widgets/scrollpane.o widgets/slider.o widgets/textbox.o widgets/widget.o sdl_ttf/SDL_ttf.o -L/mnt/seagate2/Software/Games/Wesnoth/wesnoth.build/build/src -lwesnoth-core /usr/lib/libSDL_image.a /usr/lib/libtiff.a -lc /usr/lib/libjpeg.a -lpng -L/usr/lib -L/usr/X11R6/lib -L/usr/share/qt3/lib /usr/lib/libSDL_mixer.a /usr/lib/libvorbisfile.a /usr/lib/libvorbis.a /usr/lib/libogg.a /usr/lib/libsmpeg.a -lstdc++ /usr/lib/libSDL_net.a -laudio -lXt /usr/lib/libSDL.a /usr/lib/libdirectfb.a /usr/lib/libfusion.a /usr/lib/libdirect.a /usr/lib/libasound.a /usr/lib/libartsc.a -ldl /usr/lib/libgthread-2.0.a /usr/lib/libglib-2.0.a /usr/lib/libesd.a /usr/lib/libaudiofile.a -lXext -lvga /usr/lib/libaa.a -lgpm -lncurses -lslang -lm -lpthread -lzipios /usr/lib/libfreetype.a -lz /usr/lib/libfribidi.a -lX11 [a few other warnings] /usr/X11R6/lib/libX11.a(x11trans.o): In function `_X11TransSocketINETConnect': warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/bin/ld: BFD 2.16.91 20060118 Debian GNU/Linux internal error, aborting at ../../bfd/elfcode.h line 190 in bfd_elf32_swap_symbol_in /usr/bin/ld: Please report this bug. collect2: ld returned 1 exit status PS: The compile step needs a few minutes on my system. A lot of memory is required too. ii binutils 2.16.1cvs20060 The GNU assembler, linker and binary utiliti ii g++-4.1 4.1.0-1 The GNU C++ compiler ii libc6 2.3.6-3 GNU C Library: Shared libraries and Timezone Jens