[mapguide-trac] #147: MapGuide 1.2.0Beta2 FAILS to Compile on RedHat FC6, issue with atomic.h or iatomic.h

MapGuide Open Source trac_mapguide at osgeo.org
Fri May 18 18:07:51 EDT 2007


#147: MapGuide 1.2.0Beta2 FAILS to Compile on RedHat FC6, issue with atomic.h or
iatomic.h
---------------------------------+------------------------------------------
   Reporter:  Ticket#137creator  |       Owner:                                                                                         
       Type:  defect             |      Status:  new                                                                                    
   Priority:  high               |   Milestone:  1.2                                                                                    
  Component:  Server             |     Version:  1.2.0                                                                                  
   Severity:  major              |    Keywords:  fails, error, compile error, build error, atomic.h, iatomic.h, missing header, Core.cpp
External_id:                     |  
---------------------------------+------------------------------------------
 You can not build MapGuide 1.2.0Beta2 on RedHat FedoraCore6, from what
 I've read, atomic.h or iatomic.h were taken out of the kernel source in
 FC6 for some reason... here's error code (I even tried to grab the
 atomic.h files from previous kernel source code, but still got the same
 error, I think the configure script needs to find it somewhere and
 particular version of it? anyway here's the error:
 mkdir .libs
  g++ -DHAVE_CONFIG_H -I../.. -g0 -O2 -pipe -Wall -Wno-long-long -Wnon-
 virtual-dtor -Wsign-promo -Wsign-compare -Wundef -Wstrict-prototypes
 -fforce-addr -finline-functions -ffast-math -fno-strict-aliasing -MT
 Core.lo -MD -MP -MF .deps/Core.Tpo -c Core.cpp  -fPIC -DPIC -o
 .libs/Core.o
 cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
 Ada/C/ObjC but not for C++
 Core.cpp:79:2: error: #error Missing header file - cannot continue
 Core.cpp: In function 'int DWFCore::AtomicIncrement(volatile int*)':
 Core.cpp:101: error: 'atomic_t' was not declared in this scope
 Core.cpp:101: error: expected `;' before 'tValue'
 Core.cpp:102: error: 'tValue' was not declared in this scope
 Core.cpp:102: error: 'atomic_set' was not declared in this scope
 Core.cpp:107: error: invalid lvalue in asm statement
 Core.cpp:109: error: 'atomic_read' was not declared in this scope
 Core.cpp:107: error: invalid lvalue in asm output 0
 Core.cpp:107: error: memory input 1 is not directly addressable
 Core.cpp: In function 'int DWFCore::AtomicDecrement(volatile int*)':
 Core.cpp:118: error: 'atomic_t' was not declared in this scope
 Core.cpp:118: error: expected `;' before 'tValue'
 Core.cpp:119: error: 'tValue' was not declared in this scope
 Core.cpp:119: error: 'atomic_set' was not declared in this scope
 Core.cpp:124: error: invalid lvalue in asm statement
 Core.cpp:126: error: 'atomic_read' was not declared in this scope
 Core.cpp:124: error: invalid lvalue in asm output 0
 Core.cpp:124: error: memory input 1 is not directly addressable
 make[2]: *** [Core.lo] Error 1
 make[2]: Leaving directory
 `/root/mapguide-1.2.0/Oem/DWFTK7.1/develop/global/src/dwfcore/x86'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory
 `/root/mapguide-1.2.0/Oem/DWFTK7.1/develop/global/src/dwfcore'
 make: *** [all] Error 2
 DWFCORE 1.0: Error build failed (0).................
 [root at localhost mapguide-1.2.0]#

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/147>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list