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  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 
<== Date ==> <== Thread ==>

Subject: Re: Channel Archiver installation on Solaris 2.6
From: Steven Hartman <hartman@fel.duke.edu>
To: Wang Chunhong <wangch@mail.ihep.ac.cn>
Cc: tech-talk@aps.anl.gov
Date: Wed, 5 Jun 2002 16:21:15 -0400 (EDT)
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.

-- 
Steve Hartman
hartman@fel.duke.edu | 919-660-2650
Duke Free Electron Laser Laboratory





Replies:
Re: Channel Archiver installation on Solaris 2.6 Wang Chunhong
References:
Channel Archiver installation on Solaris 2.6 Wang Chunhong

Navigate by Date:
Prev: Seq PV macros? Laznovsky, Michael
Next: Re: 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 
Navigate by Thread:
Prev: Channel Archiver installation on Solaris 2.6 Wang Chunhong
Next: Re: Channel Archiver installation on Solaris 2.6 Wang Chunhong
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 
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 ·