Opened 16 years ago

Closed 14 years ago

#719 closed defect (fixed)

Compile : DWFTK will not build on ubuntu

Reported by: mwtoews Owned by:
Priority: medium Milestone:
Component: Build System Version: 2.0.2
Severity: major Keywords:
Cc: External ID:

Description

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

Change History (5)

comment:1 by mwtoews, 16 years ago

This may be related to #147 where, for some unknown reason, ALSA development libraries were required. I've since scrubbed this OS/installation due to this problem, but could someone verify (and document) this dependency and clear this ticket?

(I don't know the apt-get install dependency for the ALSA development libraries for Ubuntu, please add a comment below for this if it fixes the problem).

comment:2 by zspitzer, 15 years ago

Summary: Compile : DWFTK will not buildCompile : DWFTK will not build on ubuntu

I have the same problem on 8.04 and then a slightly different issue with 8.10

This is a show stopper for me with compiling mapguide on ubuntu with 2.0.2

I am switching over to attempting with the current trunk

comment:3 by tomfukushima, 15 years ago

The error seems to point to an error in the way the dwf_max is defined. Search for #define dwf_max and have a look at it; it seems that there is a syntax error there. If you post the code for dwf_max here; someone may be able to spot the problem.

comment:4 by zspitzer, 15 years ago

Seems to be fixed on the trunk looking at #706

Would the 7.5 release of the DWF toolkit be a bit more compatible than 7.1?

comment:5 by jbirch, 14 years ago

Resolution: fixed
Status: newclosed

Closing due to lack of response. If still a problem with 2.1, please re-open and adjust version.

Note: See TracTickets for help on using tickets.