This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
multiple definition error
- To: "GCC-List" <gcc-help at gcc dot gnu dot org>
- Subject: multiple definition error
- From: "Jean-Pierre Schwickerath" <gcc-list at schwicky dot net>
- Date: 10 Mar 2001 00:33:05 CET
- Reply-To: "Jean-Pierre Schwickerath" <gcc-list at schwicky dot net>
Hello,
I'm trying to compile the gcc snapshot of march 5th for a LFS system.
I want to make a static version now.
The basis system is a SuSE 7.0.
I made a
./gcc-20010305/configure --prefix=/usr
--with-gxx-include-dir=/usr/include/g++\
--enable-languages=c,c++ --disable-nls && make -e LDFLAGS=-static bootstrap
and I get the following error
make[3]: Entering directory `/LFS/usr/src/sources/gcc-stat/gcc/fixinc'
gcc -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prot
otypes -Wtraditional -pedantic -Wno-long-long -I. -I..
-I/LFS/usr/src/sources/gc
c-20010305/gcc/fixinc -I/LFS/usr/src/sources/gcc-20010305/gcc/fixinc/..
-I/LFS/u
sr/src/sources/gcc-20010305/gcc/fixinc/../config
-I/LFS/usr/src/sources/gcc-2001
0305/gcc/fixinc/../../include -static -o fixincl fixincl.o fixtests.o
fixfixes.o
server.o procopen.o gnu-regex.o fixlib.o ../../libiberty/libiberty.a
/usr/lib/libc.a(regex.o): In function `init_syntax_once':
/usr/src/packages/BUILD/glibc-2.1/posix/regex.c:257: multiple definition of
`re_
max_failures'
gnu-regex.o:/LFS/usr/src/sources/gcc-20010305/gcc/fixinc/gnu-regex.c:175: first
defined here
collect2: ld returned 1 exit status
make[3]: *** [full-stamp] Error 1
make[3]: Leaving directory `/LFS/usr/src/sources/gcc-stat/gcc/fixinc'
make[2]: *** [fixinc.sh] Error 2
make[2]: Leaving directory `/LFS/usr/src/sources/gcc-stat/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/LFS/usr/src/sources/gcc-stat/gcc'
make: *** [bootstrap] Error 2
Could you tell me how I can solve this problem?
I tried to compile a stable release, but it always fails configuring the
libstdc++ saying that something's wrong with ltconfig and
build=i586-pc-linux-gnu is a unrecognized option.
With the snapshot the configuring of libstdc++ wents on well, but I get the
error above...
Thanks for your help
Jean-Pierre
--
Jean-Pierre Schwickerath - Powered by GNU/LinuX!
E-Mail: email@schwicky.net - http://schwicky.net
PGP Key ID: 0x48C39212 - AIM: Schwicky - ICQ's UIN: 4690141
Nothing's impossible... Everything is relative!