Duplicate symbol problem (egcs-1.1.1 HP-UX 10.20)

Ralf Hildebrandt R.Hildebrandt@tu-bs.de
Thu Jan 7 07:49:00 GMT 1999


Hi!

I updated from egcs-1.1b to egcs-1.1.1 (egcs-2.91.60)
on a hppa1.1-hp-hpux10.20 .

Now I recompiled xlogmaster-1.5.3 (C++ code) which has been working just fine with egcs-1.1b
and I get duplicate symbol errors along with a
    ostream::seekp(long)(code)
symbol not found during the link phase:

make[2]: Entering directory `/tmp_mnt/users2/gnu/xlogmaster-1.5.3/src'
c++ -O2 -I/users2/local/lib/glib/include -I/users2/local/include -I/usr/include/X11R6 -DXLM_HOME=3D\"/users2/local/etc/xlogmaster\" -DXLM_DB=3D\"/users2/local/etc/xlogmaster/database\" -DXLM_LIB=3D\"/users2/local/etc/xlogmaster\" -I../import -L/users2/local/lib -L/users2/local/lib -L/usr/lib/X11R6 -lgtk -lgdk -lglib -lXext -lX11 -lm -o xlogmaster  xlogmaster.o alert.o audio.o database.o dialog.o execute.o file.o logclass.o menu.o watchdog.o ../import/libimport.a -L/users2/local/lib -L/usr/lib/X11R6 -lgtk -lgdk -lglib -lXext -lX11 -lm

/usr/ccs/bin/ld: Duplicate symbol "ios::init(streambuf *, ostream *)" in files xlogmaster.o and alert.o
/usr/ccs/bin/ld: Duplicate symbol "dec(ios &) " in files xlogmaster.o and alert.o
/usr/ccs/bin/ld: Duplicate symbol "ios::~ios(void)" in files xlogmaster.o and alert.o
/usr/ccs/bin/ld: Duplicate symbol "oct(ios &) " in files xlogmaster.o and alert.o
/usr/ccs/bin/ld: Duplicate symbol "abs" in files xlogmaster.o and alert.o
/usr/ccs/bin/ld: Duplicate symbol "ios::ios(streambuf *, ostream *)" in files xlogmaster.o and alert.o
/usr/ccs/bin/ld: Duplicate symbol "hex(ios &) " in files xlogmaster.o and alert.o
/usr/ccs/bin/ld: Duplicate symbol "pow(double, int)" in files xlogmaster.o and alert.o
/usr/ccs/bin/ld: Duplicate symbol "ios::init(streambuf *, ostream *)" in files xlogmaster.o and audio.o
/usr/ccs/bin/ld: Duplicate symbol "hex(ios &) " in files xlogmaster.o and audio.o
/usr/ccs/bin/ld: Duplicate symbol "dec(ios &) " in files xlogmaster.o and audio.o
/usr/ccs/bin/ld: Duplicate symbol "ios::~ios(void)" in files xlogmaster.o and audio.o
/usr/ccs/bin/ld: Duplicate symbol "ios::ios(streambuf *, ostream *)" in files xlogmaster.o and audio.o
/usr/ccs/bin/ld: Duplicate symbol "oct(ios &) " in files xlogmaster.o and audio.o
/usr/ccs/bin/ld: Duplicate symbol "pow(double, int)" in files xlogmaster.o and audio.o
/usr/ccs/bin/ld: Duplicate symbol "abs" in files xlogmaster.o and audio.o
/usr/ccs/bin/ld: Duplicate symbol "ios::init(streambuf *, ostream *)" in files xlogmaster.o and database.o
/usr/ccs/bin/ld: Duplicate symbol "ios::ios(streambuf *, ostream *)" in files xlogmaster.o and database.o
/usr/ccs/bin/ld: Duplicate symbol "ios::~ios(void)" in files xlogmaster.o and database.o
/usr/ccs/bin/ld: Duplicate symbol "dec(ios &) " in files xlogmaster.o and database.o
/usr/ccs/bin/ld: Duplicate symbol "abs" in files xlogmaster.o and database.o
/usr/ccs/bin/ld: Duplicate symbol "hex(ios &) " in files xlogmaster.o and database.o
/usr/ccs/bin/ld: Duplicate symbol "oct(ios &) " in files xlogmaster.o and database.o
/usr/ccs/bin/ld: Duplicate symbol "pow(double, int)" in files xlogmaster.o and database.o
/usr/ccs/bin/ld: Duplicate symbol "ios::init(streambuf *, ostream *)" in files xlogmaster.o and dialog.o
/usr/ccs/bin/ld: Duplicate symbol "dec(ios &) " in files xlogmaster.o and dialog.o
/usr/ccs/bin/ld: Duplicate symbol "hex(ios &) " in files xlogmaster.o and dialog.o
/usr/ccs/bin/ld: Duplicate symbol "oct(ios &) " in files xlogmaster.o and dialog.o
/usr/ccs/bin/ld: Duplicate symbol "ios::ios(streambuf *, ostream *)" in files xlogmaster.o and dialog.o
/usr/ccs/bin/ld: Duplicate symbol "pow(double, int)" in files xlogmaster.o and dialog.o
/usr/ccs/bin/ld: Duplicate symbol "ios::~ios(void)" in files xlogmaster.o and dialog.o
/usr/ccs/bin/ld: Duplicate symbol "abs" in files xlogmaster.o and dialog.o
/usr/ccs/bin/ld: Duplicate symbol "ios::init(streambuf *, ostream *)" in files xlogmaster.o and execute.o
/usr/ccs/bin/ld: Duplicate symbol "oct(ios &) " in files xlogmaster.o and execute.o
/usr/ccs/bin/ld: Duplicate symbol "hex(ios &) " in files xlogmaster.o and execute.o
/usr/ccs/bin/ld: Duplicate symbol "dec(ios &) " in files xlogmaster.o and execute.o
/usr/ccs/bin/ld: Duplicate symbol "ios::~ios(void)" in files xlogmaster.o and execute.o
/usr/ccs/bin/ld: Duplicate symbol "ios::ios(streambuf *, ostream *)" in files xlogmaster.o and execute.o
/usr/ccs/bin/ld: Duplicate symbol "pow(double, int)" in files xlogmaster.o and execute.o
/usr/ccs/bin/ld: Duplicate symbol "abs" in files xlogmaster.o and execute.o
/usr/ccs/bin/ld: Duplicate symbol "ios::ios(streambuf *, ostream *)" in files xlogmaster.o and file.o
/usr/ccs/bin/ld: Duplicate symbol "ios::init(streambuf *, ostream *)" in files xlogmaster.o and file.o
/usr/ccs/bin/ld: Duplicate symbol "oct(ios &) " in files xlogmaster.o and file.o
/usr/ccs/bin/ld: Duplicate symbol "hex(ios &) " in files xlogmaster.o and file.o
/usr/ccs/bin/ld: Duplicate symbol "dec(ios &) " in files xlogmaster.o and file.o
/usr/ccs/bin/ld: Duplicate symbol "ios::~ios(void)" in files xlogmaster.o and file.o
/usr/ccs/bin/ld: Duplicate symbol "pow(double, int)" in files xlogmaster.o and file.o
/usr/ccs/bin/ld: Duplicate symbol "abs" in files xlogmaster.o and file.o
/usr/ccs/bin/ld: Duplicate symbol "global constructors keyed to abs" in files alert.o and file.o
/usr/ccs/bin/ld: Duplicate symbol "ios::init(streambuf *, ostream *)" in files xlogmaster.o and logclass.o
/usr/ccs/bin/ld: Duplicate symbol "pow(double, int)" in files xlogmaster.o and logclass.o
/usr/ccs/bin/ld: Duplicate symbol "abs" in files xlogmaster.o and logclass.o
/usr/ccs/bin/ld: Duplicate symbol "oct(ios &) " in files xlogmaster.o and logclass.o
/usr/ccs/bin/ld: Duplicate symbol "hex(ios &) " in files xlogmaster.o and logclass.o
/usr/ccs/bin/ld: Duplicate symbol "dec(ios &) " in files xlogmaster.o and logclass.o
/usr/ccs/bin/ld: Duplicate symbol "ios::~ios(void)" in files xlogmaster.o and logclass.o
/usr/ccs/bin/ld: Duplicate symbol "ios::ios(streambuf *, ostream *)" in files xlogmaster.o and logclass.o
/usr/ccs/bin/ld: Duplicate symbol "ios::ios(streambuf *, ostream *)" in files xlogmaster.o and menu.o
/usr/ccs/bin/ld: Duplicate symbol "ios::init(streambuf *, ostream *)" in files xlogmaster.o and menu.o
/usr/ccs/bin/ld: Duplicate symbol "abs" in files xlogmaster.o and menu.o
/usr/ccs/bin/ld: Duplicate symbol "pow(double, int)" in files xlogmaster.o and menu.o
/usr/ccs/bin/ld: Duplicate symbol "ios::~ios(void)" in files xlogmaster.o and menu.o
/usr/ccs/bin/ld: Duplicate symbol "dec(ios &) " in files xlogmaster.o and menu.o
/usr/ccs/bin/ld: Duplicate symbol "hex(ios &) " in files xlogmaster.o and menu.o
/usr/ccs/bin/ld: Duplicate symbol "oct(ios &) " in files xlogmaster.o and menu.o
/usr/ccs/bin/ld: Duplicate symbol "ios::init(streambuf *, ostream *)" in files xlogmaster.o and watchdog.o
/usr/ccs/bin/ld: Duplicate symbol "oct(ios &) " in files xlogmaster.o and watchdog.o
/usr/ccs/bin/ld: Duplicate symbol "hex(ios &) " in files xlogmaster.o and watchdog.o
/usr/ccs/bin/ld: Duplicate symbol "dec(ios &) " in files xlogmaster.o and watchdog.o
/usr/ccs/bin/ld: Duplicate symbol "ios::~ios(void)" in files xlogmaster.o and watchdog.o
/usr/ccs/bin/ld: Duplicate symbol "ios::ios(streambuf *, ostream *)" in files xlogmaster.o and watchdog.o
/usr/ccs/bin/ld: Duplicate symbol "pow(double, int)" in files xlogmaster.o and watchdog.o
/usr/ccs/bin/ld: Duplicate symbol "abs" in files xlogmaster.o and watchdog.o
/usr/ccs/bin/ld: Unsatisfied symbols:
   ostream::seekp(long)(code)
/usr/ccs/bin/ld: Found 73 duplicate symbol(s)
collect2: ld returned 1 exit status
make[2]: *** [xlogmaster] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2

Any idea what is wrong ?

I installed egcs using HP's aCC (export CC=cc) and used
../configure --prefix=3D/users2/local --enable-shared --with-gnu-as
followed by a "make bootstrap-lean", "make install"

I used the same --prefix etc. settings I used to install egcs-1.1b before.

-- 
Ralf Hildebrandt <R.Hildebrandt@tu-bs.de> http://www.stahl.bau.tu-bs.de/~hildeb
Das Briefgeheimnis sowie das Post- und Fernmeldegeheimnis sind
unverletzlich.              -- Grundgesetz, Artikel 10, Abs. 1 



More information about the Gcc-bugs mailing list