Problem with "multiply defined ..."

Zhi-Wei Lu zwluxx@chopin.cipic.ucdavis.edu
Thu Feb 1 11:17:00 GMT 2001


Hi Gcc Gurus,

I am trying to compile pgp 6.5.8 on an Compaq Tru64 UNIX 4.0f
system using gcc 2.95.2. Since pgp 6.5.8 is not ported to Tru64 UNIX yet,
I am having a lot of problem trying to compile.  Finally, I am reaching the
point to link the pgp executable, but I  am getting this message:

g++ -g -O2 -g  main.o args.o pgp.o getopt.o fileio.o config.o doencode.o dodecode.o lists.o keyview.o keygen.o keyadd.o keyremove.o keyedit.o keyexport.o keymaint.o keysign.o keyrevoke.o more.o groups.o match.o misc.o pgpAcquireEntropy.o pgpLanguage.o ../shared/pgpDiskWiper.o ../shared/pgpClientErrors.o -o pgp -L/usr/local/lib -L../../../libs/pfl -L../../../libs/pgpcdk/unix -L -L/usr/shlib -lPGPui -lPGPsdkNetwork -lPGPsdk -lpfl -lpthreads  -lm 
/usr/bin/ld:
/opt/pkg/gnu/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/libgcc.a(exception.o): terminate(void): multiply defined
/opt/pkg/gnu/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/libgcc.a(exception.o): __eh_alloc: multiply defined
/opt/pkg/gnu/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/libgcc.a(exception.o): __cp_push_exception: multiply defined
/opt/pkg/gnu/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/libgcc.a(exception.o): __cp_pop_exception: multiply defined
/opt/pkg/gnu/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/libgcc.a(exception.o): __uncatch_exception: multiply defined
/opt/pkg/gnu/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/libgcc.a(tinfo2.o): int type_info function: multiply defined
/opt/pkg/gnu/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/libgcc.a(tinfo.o): __rtti_si: multiply defined
/opt/pkg/gnu/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/libgcc.a(tinfo.o): __rtti_user: multiply defined
collect2: ld returned 1 exit status
make: *** [pgp] Error 1


What will be the fix for this symptom ?  Thank you very much for your help.
By the way, I have successfully (with a lot pain, of course)  compiled pgp 6.5.8 on IRIX 6.5, 
if anyone is interested, I can send a copy to you.
-- 
Zhi-Wei Lu 		
CIPIC (Center for Image Processing and Integrated Computing)
UC Davis 	  	Phone:	(530)-752-0494
Davis, CA 95616		Fax:   	(530)-752-8894




More information about the Gcc-help mailing list