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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | caSnoop build problem |
From: | "Kevin Tsubota" <[email protected]> |
To: | <[email protected]> |
Date: | Wed, 2 Nov 2005 10:13:01 -1000 |
Hi, I’m trying to build caSnooper v2.1.0.1 using gcc version 3.3 on Solaris 8 with EPICS R3.13.10 (which built okay) but am getting the following compile error:
/usr/local/gcc/gcc-3.3-gnu/bin/g++ -ansi -pedantic -Wtraditional -DSOLARIS=8 -g -Wall -Wmissing-prototypes -Woverloaded-virtual -Wwrite-strings -Wconversion -Wstrict-prototypes -Wpointer-arith -Winline -DcaNetAddrSock -DCAS_DIAGNOSTICS -fPIC -D_REENTRANT -DUNIX -DEXPL_TEMPL -I. -I.. -I/home/ktsubota/epics/r3.13.10/base/src/cas/generic -I/home/ktsubota/epics/r3.13.10/base/src/cas/generic/st -I/home/ktsubota/epics/r3.13.10/base/src/cas/io/bsdSocket -I../../../include -I../../../include/os/solaris -I/home/ktsubota/epics/r3.13.10/base/include/os/solaris -I/home/ktsubota/epics/r3.13.10/base/include -c ../snoopServer.cc cc1plus: warning: "-Wtraditional" is valid for C/ObjC but not for C++ ../snoopServer.cc: In member function `virtual pvExistReturn snoopServer::pvExistTest(const casCtx&, const char*)': ../snoopServer.cc:129: error: could not convert ` *(pClient->casCoreClient::_vptr.ioBlocked + 76)()' to `caNetAddr&'
Using gcc version 2.95, I was able to build caSnooper. Here is the same complile output with gcc v2.95:
/usr/local/bin/g++ -ansi -pedantic -Wtraditional -DSOLARIS=8 -g -Wall -Wmissing-prototypes -Woverloaded-virtual -Wwrite-strings -Wconversion -Wstrict-prototypes -Wpointer-arith -Winline -DcaNetAddrSock -DCAS_DIAGNOSTICS -fPIC -D_REENTRANT -DUNIX -DEXPL_TEMPL -I. -I.. -I/home/ktsubota/epics/r3.13.10/base/src/cas/generic -I/home/ktsubota/epics/r3.13.10/base/src/cas/generic/st -I/home/ktsubota/epics/r3.13.10/base/src/cas/io/bsdSocket -I../../../include -I../../../include/os/solaris -I/home/ktsubota/epics/r3.13.10/base/include/os/solaris -I/home/ktsubota/epics/r3.13.10/base/include -c ../snoopServer.cc ../snoopServer.cc: In method `class pvExistReturn snoopServer::pvExistTest(const casCtx &, const char *)': ../snoopServer.cc:129: warning: initialization of non-const reference type `class caNetAddr &' ../snoopServer.cc:129: warning: from rvalue of type `caNetAddr'
Here ‘s more information on the two compilers:
laupahoehoe:O.solaris> /usr/local/bin/g++ -v Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs gcc version 2.95.2 19991024 (release)
laupahoehoe:O.solaris> /usr/local/gcc/gcc-3.3-gnu/bin/g++ -v Reading specs from /usr/local/gcc/gcc-3.3-gnu/lib/gcc-lib/sparc-sun-solaris2.8/3.3/specs Configured with: ./configure --prefix=/usr/local/gcc/gcc-3.3-gnu --with-ld=/usr/local/binutils/binutils-2.13.1-gnu/bin/ld --with-as=/usr/local/binutils/binutils-2.13.1-gnu/bin/as --enable-shared --enable-threads -enable-languages=c++,f77 Thread model: posix gcc version 3.3
Any help would be appreciated. Mahalo!
Kevin
|