[mapguide-users] Re: CPP Build failure on Ubuntu 8.04

SD temporary130 at gmail.com
Mon Jun 16 23:56:09 EDT 2008


On 6/16/08, SD <temporary130 at gmail.com> wrote:
> Background:
> - went through normal install steps at
> http://mapguide.osgeo.org/2.0/docs/BuildInstallQuickStartLinux.html
> - using files from
> http://download.osgeo.org/mapguide/releases/2.0.1/mapguide-2.0.1.2716.tar.gz
>
> Everything works until running ./build_oem.sh where this error occurs:
>
> /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
>  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
> `/opt/install/mapguide-2.0.1/Oem/DWFTK7.1/develop/global/src/dwfcore'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/opt/install/mapguide-2.0.1/Oem/DWFTK7.1/develop/global/src/dwfcore'
> make: *** [all] Error 2
> DWFCORE 1.0: Error build failed (0).................
>
>
> I thought maybe the BufferOutputStream.cpp was corrupted, so compared
> it with version at
> http://svn.osgeo.org/mapguide/trunk/MgDev/Oem/DWFTK7.1/develop/global/src/dwfcore/BufferOutputStream.cpp
> which was identical.
>
> There is a '?' in the file, but it is on line 110, not 192.
>
> Anyone know what I'm doing wrong? :-)
>



Ok, I see the problem.

The downlaod .tar.gz file at
http://download.osgeo.org/mapguide/releases/2.0.1/mapguide-2.0.1.2716.tar.gz
has an invalid ansi/Core.h

The correct version can be found at
http://svn.osgeo.org/mapguide/trunk/MgDev/Oem/DWFTK7.1/develop/global/src/dwfcore/ansi/Core.h


More information about the mapguide-users mailing list