Hi,
I ran into the same problem last summer and got help from Dr. Kay Kasemir.
Here is a solution:
In Engine/HTMLPage.h,
#ifdef solaris
// Hack around clash of struct map in inet headers with std::map
#define map xxxMapxxx
#endif
#include <osiSock.h>
#ifdef solaris
#undef map
#endif
I use Solaris 8, EPICS base 3.13.4 and gcc 2.95.3.
Hope it's helpful,
Ge
On Fri, 21 Feb 2003, Susanna Jacobson wrote:
> Can anyone suggest a way to resolve this problem compiling the
> Channel Archiver?
>
> Details --
> Channel Archiver 1.9.1
> EPICS base R3.13.8
> Host: Sparc Solaris 8
> Compiler: gcc/g++ 2.95.2
>
> The compile ends building ChannelArchiver/Engine/main.o with these messages:
> In file included from [R3.13.8]/base/include/os/solaris/osiSock.h:45,
> from ../HTMLPage.h:14,
> from ../main.cpp:22,
> from ../main.cc:6:
> /usr/include/net/if.h:87: `struct map' redeclared as different kind of symbol
> /vol/pub/gcc-2.95.2/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>'
> gmake[2]: *** [main.o] Error 1
>
> Thanks in advance,
> Susanna
>
- References:
- Channel Archiver build problem Susanna Jacobson
- Navigate by Date:
- Prev:
Re: Channel Archiver build problem Steven Hartman
- Next:
Serial driver for Linux GOURNAY Jean-François DAPNIA
- 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:
Re: Channel Archiver build problem Steven Hartman
- Next:
Serial driver for Linux GOURNAY Jean-François DAPNIA
- 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
|