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
[email protected] | 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
<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:
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
<2002>
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|