[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:47:06 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                                                                                                 |    Resolution:       
 Keywords:  build_oem.sh fails, error, compile error, build error, atomic.h, iatomic.h, missing header, Core.cpp  |   External_id:       
------------------------------------------------------------------------------------------------------------------+
Comment (by anonymous):

 I installed glibc-kernheaders via yum and reran ./build_oem.sh but
 couldn't get passed the error..not sure if I should make clean and
 redo...or if files aren't were expected
 -
 12.2.1. Kernel header files
 http://72.14.253.104/search?q=cache:Ky5QS8wBYfIJ:docs.fedoraproject.org/
 release-notes/fc6/en_US/sn-
 Devel.html+missing+header+atomic.h+fc6&hl=en&ct=clnk&cd=1&gl=us

 This release of Fedora has been built using Linux kernel headers exported
 directly from the kernel, using the new headers_install feature of the
 2.6.18 kernel. Thus, the glibc-kernheaders package has been removed and
 replaced with kernel-headers, a subpackage of kernel.

 Developers may notice some changes between these new kernel headers and
 what was present before, including but not limited to the following:

     *

       The <linux/compiler.h> header file has been removed, since it
 contains nothing of use to userspace.
     *

       The _syscallX() macros are removed. Userspace should use syscall()
 from the C library instead.
     *

       The PAGE_SIZE macro is removed from some architectures, since the
 page size is variable. Userspace should be using sysconf(_SC_PAGE_SIZE) or
 getpagesize() instead.
     *

       The <asm/atomic.h> and <asm/bitops.h> header files have been
 removed. These were not designed for use in userspace, and would fail to
 compile on some architectures while silently giving non-atomic behaviour
 on others. The C compiler provides its own atomic builtin functions that
 are suitable for use in userspace programs instead.
     *

       Content that was previously protected with #ifdef __KERNEL__ is now
 elided completely with the unifdef tool. Defining __KERNEL___ in order to
 see parts that should not be visible to userspace is no longer effective.

 In addition, some other header files that xare not suitable for use in
 userspace have been removed, and still more headers have been edited to
 remove unsuitable content.

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


More information about the mapguide-trac mailing list