You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by David Bertoni <db...@apache.org> on 2006/04/08 19:53:52 UTC

Re: Build error

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

Re: Build error

Posted by Bjoern Rasmussen <bj...@hotmail.com>.
Hi

I upgraded to gcc 3.4 and that seems to have solved the problem.


>From: David Bertoni <db...@apache.org>
>Reply-To: xalan-c-users@xml.apache.org
>To: xalan-c-users@xml.apache.org
>Subject: Re: Build error
>Date: Sat, 08 Apr 2006 10:53:52 -0700
>
>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



Re: Build error

Posted by Bjoern Rasmussen <bj...@hotmail.com>.
Hi

Here's my output from gcc -v:

Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configured with: ../src/configure -v 
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr 
--mandir=/usr/share/man --infodir=/usr/share/info 
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared 
--with-system-zlib --enable-nls --without-included-gettext 
--enable-__cxa_atexit --enable-clocale=gnu --enable-debug 
--enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-8)



>From: David Bertoni <db...@apache.org>
>Reply-To: xalan-c-users@xml.apache.org
>To: xalan-c-users@xml.apache.org
>Subject: Re: Build error
>Date: Sat, 08 Apr 2006 10:53:52 -0700
>
>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