Hi,
I am trying to compile some C++ code developed elsewhere, using EPICS beta12,
and Tornado 5.3.1, for a Baja68060. I do not know if the code has ever been
compiled under 5.3.1. I know it has not been compiled under beta12.
On the link line, I am getting a lot of errors of the form:
KSV505DevType.o(.data+0x0): multiple definition of `barr'
vxi_init.o(.data+0x0): first defined here
I have traced down some of these multiple definitions, and found that they
appeared when several files included the same .h file. The .h files contained
the "ifndef" coding, which should have prevented them from being included
more than once. However, the only way I could turn off the errors, was by
commenting out the includes in the .c files.
I saw something on the Wind River page which suggested that the problem
was with munching not being done on all of the files at once. However,
fixing that did not fix the problem.
I am new to EPICS, vxWorks and C++, so please don't hesitate to suggest
something obvious. (I won't know enough to be insulted !)
I have been adding flags that others have suggested, so I have a lot of
flags at this point. Here's some excerpts of the Makefile output:
Here's a compile line. I get a lot of warnings, but no errors:
/usr/local/wind/host/sun4-solaris2/bin/cc68k -B/usr/local/wind/host/sun4-solaris2/lib/gcc-l
ib/ -nostdinc -ansi -pedantic -Wtraditional -O2 -fstrength-reduce -Wall -Wmissing-prototyp
es -Woverloaded-virtual -Wwrite-strings -Wconversion -Wstrict-prototypes -Wpointer-arith -W
inline -I/usr/local/reality/reality/src/archive -I/usr/local/reality/reality/src/drv/gi/i
nclude -I/usr/local/reality/reality/src/include -x c++ -r -fdollars-in-identifiers -Defrjun
kCPLUSPLUS -DKSV150 -DVXWORKS -Dsigned="" -DefrjunkVX_CCFLAGS -DefrjunkCCFLAGS -DCPU=MC6804
0 -m68040 -DCPU_FAMILY=MC680X0 -DKSV150 -DvxWorks -DV5_vxWorks -fno-builtin -DEXPL_TEMPL
-I. -I.. -I/usr/local/epics/epics/base_shareR1.0/include -I../../../include -I../../../in
clude/os/vxWorks -I/usr/local/epics/epics/base/include -I/usr/local/epics/epics/base/includ
e/os/vxWorks -I/usr/local/wind/target/h -c ../ChannelType.cc
Here's the line to do the munching. I've removed most of the .o files on the list, to shorten
the line.
/usr/local/wind/host/sun4-solaris2/bin/nm68k /usr/local/epics/epics/base/bin/hkbaja60/aiRec
ord.o /usr/local/epics/epics/base/bin/hkbaja60/aoRecord.o /usr/local/epics/epics/base/bin/h
kbaja60/biRecord.o o geoff.o | /usr/local/wind/host/sun4-solaris2/bin/munch > ctdt.c
This is the compile of the munched output.
/usr/local/wind/host/sun4-solaris2/bin/cc68k -B/usr/local/wind/host/sun4-solaris2/lib/gcc-l
ib/ -nostdinc -ansi -pedantic -O2 -fstrength-reduce -Wall -DCPU=MC68040 -m68040 -DCPU_FA
MILY=MC680X0 -DKSV150 -DvxWorks -DV5_vxWorks -fno-builtin -I. -I.. -I/usr/local/epics/ep
ics/base_shareR1.0/include -I../../../include -I../../../include/os/vxWorks -I/usr/local/e
pics/epics/base/include -I/usr/local/epics/epics/base/include/os/vxWorks -I/usr/local/wind/
target/h -c -traditional ctdt.c
Here's the link line, which produces the errors. I've removed most of the .o files that
were listed.
/usr/local/wind/host/sun4-solaris2/bin/ld68k -r -o squidLib /usr/local/epics/epics/ba
se/bin/hkbaja60/aiRecord.o o KSV150DevType.o geoff.o ctdt.o
Thanks,
Elaine
-------------------------------------------------------------------
Elaine Best, Scientific Software Engineering Group, CIC-12
Biophysics Group, P-21
e-mail: [email protected]
postal: Mail Stop D454, Los Alamos National Lab, NM 87545
phone: 505-665-6187, FAX 505-665-4507
-------------------------------------------------------------------
- Navigate by Date:
- Prev:
RE: CA monitor function pb Jeff Hill
- Next:
Re: strange error compiling C++ code under EPICS Glover Barker
- Index:
1994
1995
1996
1997
<1998>
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: CA monitor function pb Jeff Hill
- Next:
Re: strange error compiling C++ code under EPICS Glover Barker
- Index:
1994
1995
1996
1997
<1998>
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|