Opened 13 years ago

Closed 13 years ago

#1977 closed defect (fixed)

Ubuntu 11.10 build fixes

Reported by: jng Owned by:
Priority: high Milestone: 2.4
Component: Build System Version:
Severity: major Keywords:
Cc: External ID:

Description (last modified by jng)

Attached is a patch that will make the MapGuide source tree buildable on Ubuntu 11.10 with the provided compilers (GCC 4.6). An overview of this patch is as follows:

  • IMake/stdafx.h: includes the cstdio header to fix compiler errors relating to stdio functions
  • IMake/Makefile: replace -mcpu (deprecated) with -mtune and replace i386 to i686. Also remove self deletion on "clean" target
  • Oem/ACE/ACE_wrappers/include/makeinclude/platform_linux.GNU: Refined check for librt.so
  • Oem/ACE/ACE_wrappers/include/makeinclude/platform_linux_common.GNU: Refined check for librt.so
  • Oem/geos-2.2.0/configure.in: Fix invalid use of the AC_SUBST macro (on Ubuntu this spat out "AC_SUBST(xxx) is not a valid shell variable name" before this patch)
  • Oem/SWIGEx/Makefile: Same fixes as the Makefile for IMake
  • Oem/dbxml/xqilla/Makefile.in: Remove the lexer regeneration step as this requires a super-ancient (circa-1997) and custom-patched version of flex. Regenerating the lexer does not seem to be necessary
  • Oem/dbxml/xqilla/include/xqilla/framework/XPath2MemoryManager.hpp: includes the cstddef header to fix the "ptrdiff_t does not name a type" compiler error.
  • Oem/Makefile.am: Remove copy commands to non-existent DWF Toolkit files
  • Common/Security/CryptographyUtil.cpp: Include cstdio header to fix compiler errors.
  • Common/Renderers/ObservationMesh.cpp: include cstdio header to fix compiler errors.
  • Common/Renderers/Makefile.am: Add linker references to DWF Toolkit
  • Common/Stylization/atom.h: Rename Shape() to GetShape() to fix compiler error (declaration of 'virtual RichText::ATOM::Shape::Type RichText::ATOM::IStructure::Shape() const' changes meaning of 'Shape' from 'class RichText::ATOM::Shape' [-fpermissive])
  • Common/Stylization/atom_element_structure.h: Rename Shape() to GetShape() to fix compiler error (declaration of 'virtual RichText::ATOM::Shape::Type RichText::ATOM::IStructure::Shape() const' changes meaning of 'Shape' from 'class RichText::ATOM::Shape' [-fpermissive])
  • Common/Stylization/Makefile.am: Add linker references to FDO Expression Engine
  • Common/Stylization/SE_BufferPool.cpp: Add cstdlib header to fix compiler errors.
  • configure.in: Update version to 2.4.0 and change -mcpu (deprecated) to -mtune and i386 to i686
  • Server/src/Gws/GwsQueryEngine/GwsBatchSortedBlockJoinQueryResults.cpp: Include cstdio header to fix compiler errors.
  • Web/src/CgiAgent/Makefile.am: Add linker reference to MgMapGuideCommon and lib_json in oem

Attachments (1)

mg_ubuntu_build_fixes.patch (12.8 KB ) - added by jng 13 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 by jng, 13 years ago

Description: modified (diff)

by jng, 13 years ago

Attachment: mg_ubuntu_build_fixes.patch added

comment:2 by jng, 13 years ago

Resolution: fixed
Status: newclosed

Fixed trunk r6568 Fixed 2.4 branch r6569

Note: See TracTickets for help on using tickets.