[mapguide-trac] #719: Compile : DWFTK will not build

MapGuide Open Source trac_mapguide at osgeo.org
Fri Oct 3 13:54:52 EDT 2008


#719: Compile : DWFTK will not build
----------------------------+-----------------------------------------------
   Reporter:  mwtoews       |       Owner:       
       Type:  defect        |      Status:  new  
   Priority:  medium        |   Milestone:       
  Component:  Build System  |     Version:  2.0.2
   Severity:  major         |    Keywords:       
External_id:                |  
----------------------------+-----------------------------------------------
 I have tried following the instructions to install Mapguide on Ubuntu 8.04
 (http://wiki.osgeo.org/wiki/Building_MapGuide_on_Ubuntu_8.04) modified for
 MGOS 2.0.2, but I cannot compile the OEM component:
 {{{
 nohup ./build_oem.sh 2>&1 | tee build_oem.log
 }}}

 The errors are:
 {{{
 ...
 make[2]: Entering directory
 `/home/gis/mapguide-2.0.2/Oem/DWFTK7.1/develop/global/src/dwfcore'
 if /bin/sh ./libtool --tag=CXX --mode=compile 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 BufferOutputStream.lo -MD -MP -MF
 ".deps/BufferOutputStream.Tpo" -c -o BufferOutputStream.lo
 BufferOutputStream.cpp; \
         then mv -f ".deps/BufferOutputStream.Tpo"
 ".deps/BufferOutputStream.Plo"; else rm -f ".deps/BufferOutputStream.Tpo";
 exit 1; fi
  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
 BufferOutputStream.lo -MD -MP -MF .deps/BufferOutputStream.Tpo -c
 BufferOutputStream.cpp  -fPIC -DPIC -o .libs/BufferOutputStream.o
 cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
 Ada/C/ObjC but not for C++
 BufferOutputStream.cpp: In member function 'virtual size_t
 DWFCore::DWFBufferOutputStream::write(const void*, size_t)':
 BufferOutputStream.cpp:192: error: expected primary-expression before '?'
 token
 BufferOutputStream.cpp:192: error: expected `:' before ';' token
 BufferOutputStream.cpp:192: error: expected primary-expression before ';'
 token
 make[2]: *** [BufferOutputStream.lo] Error 1
 make[2]: Leaving directory
 `/home/gis/mapguide-2.0.2/Oem/DWFTK7.1/develop/global/src/dwfcore'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory
 `/home/gis/mapguide-2.0.2/Oem/DWFTK7.1/develop/global/src/dwfcore'
 make: *** [all] Error 2
 DWFCORE 1.0: Error build failed (0).................
 }}}

 Here is some information about the system:
 {{{
 $ uname -a
 Linux gisserver 2.6.24-19-server #1 SMP Wed Aug 20 23:54:28 UTC 2008 i686
 GNU/Linux

 $ g++ --version
 g++ (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
 }}}

 The version of MGOS is from
 http://svn.osgeo.org/mapguide/tags/MAPGUIDE2.0.2

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


More information about the mapguide-trac mailing list