[mapguide-users] CPP Build failure on Ubuntu 8.04

gimbrogno at smartlab magnitudo9 at email.it
Wed Jun 18 09:36:19 EDT 2008


Hi, try to edit the Makefiles erasing all the -Wxxx paramethers! They are
used only to enable warnings and, the cause may be this... Try also to
downgrade the gcc compiler version, infact the 4.2.3 bundled with ububtu
8.04 causes some errors... Regards

SD-20 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? :-)
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: http://www.nabble.com/CPP-Build-failure-on-Ubuntu-8.04-tp17876969p17982853.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list