EPICS Controls 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  2021  2022  2023  2024  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  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Channel Archiver installation on Solaris 2.6
From: Wang Chunhong <[email protected]>
To: Steven Hartman <[email protected]>
Cc: <[email protected]>
Date: Thu, 6 Jun 2002 09:59:21 +0800 (CST)
Hi, Steven
 Thank you for your helpful messages. I also did so by explicitly not 
including </net/if.h>. Engine compiled ok. 

Thanks again!

Best regards,

Chunhong Wang
         
On Wed, 5 Jun 2002, Steven Hartman wrote:

> On Tue, 4 Jun 2002, Wang Chunhong wrote:
> 
> > >  In file included from ../../../../../base/include/os/solaris/osiSock.h:36,
> > >                   from ../HTMLPage.h:14,
> > >                   from ../main.cpp:22,
> > >                   from ../main.cc:6:
> > >  /usr/include/net/if.h:86: `struct map' redeclared as different kind of
> > >  symbol
> > >  /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/../../../../include/g++-
> > > 3/stl_map.h:48: previous declaration of `template <class _Key, class _Tp,
> > >  class _Compare = struct less<_Key>, class _Alloc = class allocator<_T2> >
> > >  class
> > >  map<_Key,_Tp,_Compare,_Alloc>'
> 
> 
> I'm in the process of setting up ChannelArchiver here and ran into the
> same problem. I'm using solaris 7 and gcc 2.95.3.
> 
> The clue is in EngineServer.cpp:
> 
> 	#ifdef solaris
> 	// silly clash with struct map on Solaris
> 	// as long as namespaces are not used by egcs C++ library:
> 	#define _NET_IF_H
> 	#endif
> 
> Why this ifdef isn't working, I wasn't able to determine (solaris is
> defined, and /usr/include/net/if.h begins with #ifndef _NET_IF_H). But I
> was able to compile by explicitly not including <net/if.h>.

> On a somewhat related note, MatlabExporter.cpp, GNUPlotExporter.cpp and
> CGIInput.cpp do not compile when using the -ansi flag to gcc. Without it,
> they compile fine.


References:
Re: Channel Archiver installation on Solaris 2.6 Steven Hartman

Navigate by Date:
Prev: Re: Help about caTcl guobao shen
Next: Real-time data correlator ready for beta test Peregrine M. McGehee
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  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Channel Archiver installation on Solaris 2.6 Steven Hartman
Next: Help about caTcl guobao shen
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  2021  2022  2023  2024 
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 ·