problem linking with egcs

Harlan Stenn Harlan.Stenn@pfcs.com
Fri Dec 11 22:23:00 GMT 1998


I'm trying to compile and link pikt on a FreeBSD-2.2.8-STABLE machine.

The package compiles and links just fine with cc (gcc-2.7.2.1).

With:

	gcc version egcs-2.90.11 970929 (gcc2-970802 experimental)
	egcs-1.0.3
	egcs-1.1.1 release

I get the following error when linking:

 harlan@pcfb1> gmake
 gcc  -g -O2 -I/usr/local/include -DTAIL='"/usr/bin/tail"' -DPSCMD='"/bin/ps"' -DMASTER='"master"' -DDOMAIN='"domain"' -DACCESS='"local"' -DMAXHOSTS=256 -DHOME='"/pikt"'  -o piktc  rpcclnt.o piktc.o cmd.tab.o tag.tab.o sys.tab.o cfg.tab.o lex.cmd.o lex.strip.o lex.tag.o lex.sys.o lex.cfg.o cmd.o cfg.o hostset.o ident.o log.o signal.o debug.o piktc_clnt.o piktc_xdr.o  
 ld: rpcclnt.o: unexpected multiple definitions of symbol `dir:V51', type 0x21
 Ì:767488: Definition of symbol `dir:V51' (multiply defined)
 ld: rpcclnt.o: unexpected multiple definitions of symbol `ext:r51', type 0x41
 Ì:767488: Definition of symbol `ext:r51' (multiply defined)
 ld: rpcclnt.o: unexpected multiple definitions of symbol `dir:V51', type 0x21
 Ì:767488: Definition of symbol `dir:V51' (multiply defined)
 ld: rpcclnt.o: unexpected multiple definitions of symbol `ext:r51', type 0x41
 Ì:767488: Definition of symbol `ext:r51' (multiply defined)
 collect2: ld returned 1 exit status
 gmake: *** [piktc] Error 1
 harlan@pcfb1>

Suggestions on how to track this down would be appreciated...

H





More information about the Gcc-bugs mailing list