Bjoern Rasmussen wrote:
Hi there
I'm trying to build Xalan on Debian but I get a "multiple definition"
build error. I've built Xerces in advance and setup the environment
varibles XERCESCROOT and XALANCROOT then ran "./runConfigure -p linux -c
gcc -x g++" and finally "make".
The error is the following:
g++ -DLINUX -fPIC -DXALAN_INMEM_MSG_LOADER \
-L/root/libs/xerces-c-src_2_7_0//lib -lxerces-c
../../../../obj/MsgFileOutputStream.o ../../../../obj/ICUResHandler.o
../../../../obj/InMemHandler.o ../../../../obj/MsgCreator.o
../../../../obj/NLSHandler.o ../../../../obj/SAX2Handler.o -o
../../../../bin/MsgCreator
/usr/lib/libc_nonshared.a(elf-init.oS)(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0):
In function `__i686.get_pc_thunk.bx':
: multiple definition of `__i686.get_pc_thunk.bx'
../../../../obj/MsgFileOutputStream.o(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0):
first defined here
collect2: ld returned 1 exit status
...
Hope someone has experienced the same build error and knows how to
resolve it.
I've never seen this error, but it looks like a bug with GCC itself.
What versions of GCC and Debian are you using? Can you post the output of:
gcc -v
Dave