Experimental Physics and Industrial Control System
Bob,
This is entry 98 in Mantis. That issue is related to interpretation of the
C++ standard by the various compilers (can a member function be a friend if
it is private to the befriended class). Apparently the committee considered
this matter under defect resolution, they initially were in favor of
permitting a private member function to be a friend, but were unable to find
consensus when all of the nagging details were considered. Recent GNU
compilers are apparently aggressively enforcing the forbid decision.
A fix has been committed to CVS, and will show up in R3.14.7. A temporary
workaround is as follows.
Replace this:
friend void udpRecvThread::run ();
With this:
friend class udpRecvThread;
On line 183 in udpiiu.h.
Sorry about the hassle.
Jeff
> -----Original Message-----
> From: Robert Soliday [mailto:[email protected]]
> Sent: Tuesday, November 09, 2004 10:35 AM
> To: tech-talk
> Subject: Problem building EPICS Base 3.14.6 on Fedora Core 3
>
> I am having trouble compiling EPICS Base version 3.14.6 on Fedora Core 3
>
> [soliday@cuda ~]$ cat /proc/version
> Linux version 2.6.9-1.667 ([email protected]) (gcc
> version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)) #1 Tue Nov 2 14:41:25 EST
> 2004
>
>
> make -C ca install
> make[2]: Entering directory `/home/soliday/epics/base3.14.6/src/ca'
> make -C O.linux-x86 -f ../Makefile TOP=../../.. T_A=linux-x86 install
> make[3]: Entering directory
> `/home/soliday/epics/base3.14.6/src/ca/O.linux-x86'
> /usr/bin/g++ -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS
> -D_XOPEN_SOURCE=500 -DOSITHREAD_USE_DEFAULT_STACK -D_X86_ -DUNIX
> -D_BSD_SOURCE -Dlinux -D_REENTRANT -ansi -O3 -Wall -I.
> -I.. -I../../../include/os/Linux -I../../../include ../casw.cpp
> In file included from ../casw.cpp:31:
> ../udpiiu.h:73: error: `virtual void udpRecvThread::run()' is private
> ../udpiiu.h:183: error: within this context
> make[3]: *** [casw.o] Error 1
> make[3]: Leaving directory
> `/home/soliday/epics/base3.14.6/src/ca/O.linux-x86'
> make[2]: *** [install.linux-x86] Error 2
> make[2]: Leaving directory `/home/soliday/epics/base3.14.6/src/ca'
> make[1]: *** [ca.install] Error 2
> make[1]: Leaving directory `/home/soliday/epics/base3.14.6/src'
> make: *** [src.install] Error 2
>
> Any help would be appreciated.
> Thanks,
> --Bob Soliday
- Replies:
- Re: Problem building EPICS Base 3.14.6 on Fedora Core 3 Iztok Krapec
- References:
- Problem building EPICS Base 3.14.6 on Fedora Core 3 Robert Soliday
- Navigate by Date:
- Prev:
Problem building EPICS Base 3.14.6 on Fedora Core 3 Robert Soliday
- Next:
Multiple IOC's in a crate? W T Meyer
- 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:
Problem building EPICS Base 3.14.6 on Fedora Core 3 Robert Soliday
- Next:
Re: Problem building EPICS Base 3.14.6 on Fedora Core 3 Iztok Krapec
- 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