As follows:

g++ -DHAVE_CONFIG_H -I. -I../../gcc/gold -I../../gcc/gold -I../../gcc/gold/../include -I../../gcc/gold/../elfcpp -DLOCALEDIR="\"/usr/snp/share/locale\"" -DBINDIR="\"/usr/snp/bin\"" -DTOOLBINDIR="\"/usr/snp/x86_64-unknown-linux-gnu/bin\"" -W -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=reduced_debug_output.o -g -fkeep-inline-functions -MT reduced_debug_output.o -MD -MP -MF .deps/reduced_debug_output.Tpo -c -o reduced_debug_output.o ../../gcc/gold/reduced_debug_output.cc
../../gcc/gold/plugin.cc: In member function ‘void gold::Plugin::load()’:
../../gcc/gold/plugin.cc:195: error: ‘LDPT_ADD_INPUT_LIBRARY’ was not declared in this scope ../../gcc/gold/plugin.cc:196: error: ‘union ld_plugin_tv::<anonymous>’ has no member named ‘tv_add_input_library’
make[5]: *** [plugin.o] Error 1

g++ is:
$ g++ --version
g++ (Debian 4.3.4-5) 4.3.4
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This started to go wrong after I added --enable-plugins to the configure line. Indeed build/gold/config.h contains the following define:

#define ENABLE_PLUGINS 1

As my knowledge of the C++ language is close to zero, I do not see how to work around this, but the error message seems to indicate that a union is missing a member that's accessed in plugin.cc.

Any suggestions ?

Thanks in advance,

--
Toon Moene - e-mail: t...@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home: http://moene.org/~toon/
Progress of GNU Fortran: http://gcc.gnu.org/gcc-4.5/changes.html

Reply via email to