EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  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  2002  <20032004  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 build problem
From: Lei Ge <[email protected]>
To: Susanna Jacobson <[email protected]>
Cc: EPICS tech-talk <[email protected]>
Date: Mon, 24 Feb 2003 09:04:29 +0800 (CST)
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  <20032004  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  <20032004  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 ·