Hello everyone,
When I try to compile R3.14.6 against Tornado2.2/vxWorks5.5, there are 2 errors about
the socket functions, connect() and bind() in blockingSockTest.cpp file.
/epics/Tornado2.2/host/sun4-solaris2/bin/ccppc -c -D_POSIX_SOURCE -DCPU=PPC604 -DvxWorks -i
nclude /epics/Tornado2.2/
target/h/vxWorks.h -ansi -O3 -Wall -mcpu=604 -mstrict-align -fno-implicit-templates -fno-bu
iltin -I. -I.. -I../../.
../../include/os/vxWorks -I../../../../include -I/epics/Tornado2.2/target/h
.../blockingSockTest.cpp
.../blockingSockTest.cpp: In method `clientCircuit::clientCircuit(const address &)':
.../blockingSockTest.cpp:130: passing `const sockaddr *' as argument 2 of `connect(int, sockaddr *,
int)' discards qualifiers
.../blockingSockTest.cpp: In method `server::server(const address &)':
.../blockingSockTest.cpp:160: passing `const sockaddr *' as argument 2 of `bind(int, sockaddr *,
int)' discards qualifiers
.../blockingSockTest.cpp: In function `void blockingSockTest()':
.../blockingSockTest.cpp:210: warning: unused variable `class server srv'
gnumake[3]: *** [blockingSockTest.o] Error 1
gnumake[3]: Leaving directory `/epics/base-3.14.6/src/libCom/test/O.vxWorks-ppc604'
gnumake[2]: *** [install.vxWorks-ppc604] Error 2
gnumake[2]: Leaving directory `/epics/base-3.14.6/src/libCom/test'
gnumake[1]: *** [libCom/test.install] Error 2
gnumake[1]: Leaving directory `/epics/base-3.14.6/src'
gnumake: *** [src.install] Error 2
So should it be like the following?
line 130:
int status = ::connect (
this->sock,(struct sockaddr *) & addrIn.sa, sizeof ( addrIn ) );
line 160:
int status = bind ( this->sock,
(struct sockaddr *) & addrIn.sa, sizeof ( addrIn ) );
Thank you very much!
Guobao Shen
KEKB Control Group
J-PARC Control Group
- Replies:
- RE: blockingSockTest.cpp Compiling error Jeff Hill
- Re: blockingSockTest.cpp Compiling error Andrew Johnson
- References:
- RE: multiple virtual IOCs with single CA server? Jeff Hill
- Re: multiple virtual IOCs with single CA server? Dirk Zimoch
- Navigate by Date:
- Prev:
JCA problems-entry point in ca.dll not found daniel funken
- Next:
RE: blockingSockTest.cpp Compiling error Jeff Hill
- 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: multiple virtual IOCs with single CA server? Dirk Zimoch
- Next:
RE: blockingSockTest.cpp Compiling error Jeff Hill
- 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
|