Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: base-3.14.beta1 build on solaris-sparc-gnu
From: Thomas Fechner <tfe@tina.aip.de>
To: <tech-talk@aps.anl.gov>
Date: Wed, 20 Feb 2002 08:37:23 +0100 (CET)
Hi all,
I get in trouble when building the base-3.14.beta1 on sparc solaris with gcc(++).

Perhaps someone has an idea what happens

>>>>
my host: "SunOS host1 5.6 Generic_105181-23 sun4u sparc SUNW,Ultra-1" with
" /data1/tfe/gnu/bin/g++ -v
Reading specs from /data1/tfe/gnu/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)"

/data1/tfe/gnu/bin/g++ -o libcas.so -shared             caServer.o caServerI.o casCoreClient.o casClient.o casDGClient.o casStrmClient.o casPV.o casPVI.o casChannel.o casChannelI.o casPVListChan.o casClientMon.o casChanDelEv.o casAsyncIOI.o casAsyncReadIO.o casAsyncWriteIO.o casAsyncPVExistIO.o casAsyncPVAttachIO.o casEventSys.o casMonitor.o casMonEvent.o inBuf.o outBuf.o casCtx.o casEventMask.o ioBlocked.o caServerOS.o casIntfOS.o casDGIntfOS.o casStreamOS.o caServerIO.o casIntfIO.o casDGIntfIO.o casStreamIO.o
ld: fatal: symbol `resTable<casEventMaskEntry, stringId>::tableSize(void) const' is multiply defined:
        (file caServerI.o and file casEventMask.o);
ld: fatal: symbol `resTable<casEventMaskEntry, stringId>::remove(stringId const &)' is multiply defined:
        (file caServerI.o and file casEventMask.o);
ld: fatal: symbol `resTable<casEventMaskEntry, stringId>::traverse(void (casEventMaskEntry::*)(casEventMaskEntry *))' is multiply defined:
        (file caServerI.o and file casEventMask.o);
ld: fatal: symbol `resTable<casEventMaskEntry, stringId>::resTable(resTable<casEventMaskEntry, stringId> const &)' is multiply defined:
        (file caServerI.o and file casEventMask.o);
ld: fatal: symbol `resTable<casEventMaskEntry, stringId> type_info function' is multiply defined:
        (file caServerI.o and file casEventMask.o);
ld: fatal: symbol `resTable<casEventMaskEntry, stringId>::find(tsSLList<casEventMaskEntry> &, stringId const &) const' is multiply defined:
        (file caServerI.o and file casEventMask.o);
ld: fatal: File processing errors. No output written to libcas.so
collect2: ld returned 1 exit status
gmake[4]: *** [libcas.so] Error 1
<<<<<

I tried the compilation on another sparc

"SunOS host2 5.7 Generic_106541-15 sun4u sparc SUNW,Ultra-1"
"gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs
gcc version 2.95.2 19991024 (release)"
without shared library support, but error messages are quite the same.
The library libcas.a is build and when linking excas I received
messages about douplicated symbols:

>>>>>
/usr/local//bin/g++ -o excas     -L../../../../../lib/solaris-sparc-gnu/ -R../../../../../lib/solaris-sparc-gnu/      main.o exServer.o exPV.o exVectorPV.o exScalarPV.o exAsyncPV.o exChannel.o    -lcas -lca -lgdd -lCom     -lposix4 -lpthread   -lm -lsocket -lnsl
ld: fatal: symbol `resTable<casEventMaskEntry, stringId>::tableSize(void) const' is multiply defined:
        (file ../../../../../lib/solaris-sparc-gnu//libcas.a(caServerI.o) and file ../../../../../lib/solaris-sparc-gnu//libcas.a(casEventMask.o));
ld: fatal: symbol `resTable<casEventMaskEntry, stringId>::numEntriesInstalled(void) const' is multiply defined:
        (file ../../../../../lib/solaris-sparc-gnu//libcas.a(caServerI.o) and file ../../../../../lib/solaris-sparc-gnu//libcas.a(casEventMask.o));
ld: fatal: symbol `resTable<casEventMaskEntry, stringId>::operator=(resTable<casEventMaskEntry, stringId> const &)' is multiply defined:
        (file ../../../../../lib/solaris-sparc-gnu//libcas.a(caServerI.o) and file ../../../../../lib/solaris-sparc-gnu//libcas.a(casEventMask.o));
ld: fatal: symbol `resTable<casEventMaskEntry, stringId>::lookup(stringId const &) const' is multiply defined:
        (file ../../../../../lib/solaris-sparc-gnu//libcas.a(caServerI.o) and file ../../../../../lib/solaris-sparc-gnu//libcas.a(casEventMask.o));
...
<<<<<
Any ideas or suggestions?

Another qaint problem:

Also I build the base-3.14.beta1 on linux with Suse7.3 without any problems.
I compiled  my database, started it  and this runs on up today (6 weeks).
I compiled the medm and I can access with the slider my pvs.
Next I tried to access the pvs from my Sparc with ia simple tool which
will read and write all kind of variables from command line. This goes well,
too.
Last week I ported this tool to linux. And the effect is I can read all pvs
from the linux database, but I can't write any. Does anyone had a similar
behavior and had found a solution for this (my) problem.

Cheers
Th. Fechner

--------------------------------------------------------------------------
Thomas Fechner                                       tfechner@aip.de
Astrophysikalisches Institut Potsdam                 Tel. ++49+331/7499412
Optische Instrumente                                 Fax. ++49+331/7499436
An der Sternwarte 16
D-14482 Potsdam



Navigate by Date:
Prev: Epics 3.14 build Korhonen Timo
Next: RE: base-3.14.beta1 build on solaris-sparc-gnu Rarback, Harvey
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: Epics 3.14 build Korhonen Timo
Next: RE: base-3.14.beta1 build on solaris-sparc-gnu Rarback, Harvey
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·