RE: Build error in MapGuide Oem Components [was: Build error in Oem Components of fdo-3.0.0_G001.tar.gz]

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

RE: Build error in MapGuide Oem Components [was: Build error in Oem Components of fdo-3.0.0_G001.tar.gz]

weltonw
Some progress on this:

1/ Open PackageVersionExtension.h and add the following lines near the top:

#ifdef minor
#undef minor
#endif

#ifdef major
#undef major
#endif

2/ Go to the OEM/DWFTK7.1/develop/global/src/dwf folder and open configure.in.  Find the two occurrences of "-pedantic" and remove them (but not "-pedantic-errors").

3/ Rerun build_oem.sh.  The DWF components should now build.

BTW, the fixes for this have been submitted - see https://mapguide.osgeo.org/servlets/Scarab/id/MG90.

Walt

-----Original Message-----
From: Sacha Genoud [mailto:[hidden email]]
Sent: Tuesday, March 14, 2006 2:57 AM
To: [hidden email]
Subject: Re: [mapguide-users] Build error in MapGuide Oem Components [was: Build error in Oem Components of fdo-3.0.0_G001.tar.gz]


Hi Nicol

i think we have a similarly problem. I am also on a Debian box.

In file included from ../../../dwf/package/writer/PackageWriter.h:42,
                 from ../../../dwf/package/Units.h:31,
                 from
../../../dwf/package/reader/EModelSectionDescriptorReader.
h:33,
                 from EModelSectionDescriptorReader.cpp:21:
../../../dwf/package/writer/PackageVersionExtension.h:96: error: parse error
   before `int'
../../../dwf/package/writer/PackageVersionExtension.h:106: error: parse
error   before `int'
make[9]: *** [EModelSectionDescriptorReader.lo] Fehler 1
make[9]: Leaving directory
`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/package/reader'
make[8]: *** [all-recursive] Fehler 1
make[8]: Leaving directory
`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/package'
make[7]: *** [all-recursive] Fehler 1
make[7]: Leaving directory
`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf'
make[6]: *** [all-recursive-am] Fehler 2
make[6]: Leaving directory
`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf'
make[5]: *** [all-recursive] Fehler 1
make[5]: Leaving directory
`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src'
make[4]: *** [all-recursive] Fehler 1
make[4]: Leaving directory
`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory
`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/mapguide/install/mapguide-1.0.0/Oem'
make: *** [all-recursive] Fehler 1

gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)



If you find a solution......  .

Thanks

Sacha




Nicol Hermann schrieb:

>Hi Traian,
>
>many thanks for your help. You are absolutely right. I refer to the Oem
>Components in the Mapguide 1.0.0 distribution. Sorry for the confusion.
>Your patch fixes my problem. Sadly i get a new one. See below.
>These compiling errors are difficult to recognise because the build
>script (build_oem.sh) do not stop when the error occur.
>Is there a way to move this process under the control of the
>general ./configure script?
>
>Attaches the new error.
>
> g++ -DHAVE_CONFIG_H -I../../.. -g0 -O2 -pipe -pedantic -Wall
>-Wno-long-long -Wnon-virtual-dtor -Wsign-promo -Wsign-compare -Wundef
>-Wstrict-prototypes -fforce-addr -fomit-frame-pointer -finline-functions
>-ffast-math -fno-strict-aliasing -c EModelSectionDescriptorReader.cpp
>-MT EModelSectionDescriptorReader.lo -MD -MP
>-MF .deps/EModelSectionDescriptorReader.TPlo  -fPIC
>-DPIC-o .libs/EModelSectionDescriptorReader.o
>In file included from ../../../dwf/package/writer/PackageWriter.h:42,
>                 from ../../../dwf/package/Units.h:31,
>
>from ../../../dwf/package/reader/EModelSectionDescriptorReader.h:33,
>                 from EModelSectionDescriptorReader.cpp:21:
>../../../dwf/package/writer/PackageVersionExtension.h:96: error: parse
>error
>   before `int'
>../../../dwf/package/writer/PackageVersionExtension.h:106: error: parse
>error
>   before `int'
>make[3]: *** [EModelSectionDescriptorReader.lo] Fehler 1
>make[3]: Leaving directory
>`/home/nicol/public_html/foundation/source/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/package/reader'
>make[2]: *** [all-recursive] Fehler 1
>make[2]: Leaving directory
>`/home/nicol/public_html/foundation/source/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/package'
>make[1]: *** [all-recursive] Fehler 1
>make[1]: Leaving directory
>`/home/nicol/public_html/foundation/source/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf'
>make: *** [all] Fehler 2
>
>Many thanks
>Nicol
>
>
>  
>
>>Hi,
>>    
>>
>
>  
>
>>You say you are building FDO, but the error happened when building the
>>DWF toolkit, which is part of MapGuide. Did you build FDO already and
>>are now compiling MapGuide? Anyway, I fixed this in subversion, and
>>here is the relevant diff for the file (line 155 and onwards).
>>    
>>
>
>  
>
>>--- UUID.cpp    (revision 276)
>>+++ UUID.cpp    (working copy)
>>@@ -152,10 +152,10 @@
>>     // cccccccc-bbbb-1aaa
>>     // note the 1 indicates a time-based uuid with a known or random
>>host id
>>     //
>>-    nTimestamp = ((nTimestamp << 32) & 0xffffffff00000000) |
>>-                 ((nTimestamp >> 16) & 0x00000000ffff0000) |
>>-                 ((nTimestamp >> 48) & 0x0000000000000fff) |
>>-                                       0x0000000000001000;
>>+    nTimestamp = ((nTimestamp << 32) & 0xffffffff00000000LL) |
>>+                 ((nTimestamp >> 16) & 0x00000000ffff0000LL) |
>>+                 ((nTimestamp >> 48) & 0x0000000000000fffLL) |
>>+                                       0x0000000000001000LL;
>>    
>>
>
>
>  
>
>>It's strange that it compiles fine on 3.2.3 and 4.0.2 but not on the
>>one in the middle (3.3).
>>    
>>
>
>  
>
>>Traian
>>    
>>
>
>
>-----Original Message-----
>From: Nicol Hermann [mailto:[hidden email]]
>Sent: Friday, March 10, 2006 6:50 AM
>To: [hidden email]
>Subject: [mapguide-users] Build error in Oem Components of
>fdo-3.0.0_G001.tar.gz
>
>Hi List,
>
>it tried to build the new fdo release (fdo-3.0.0_G001.tar.gz) on my
>debian 32 bit sarge box.
>During the compilation of the Oem product 'Oem/DWFTK7.1' with
>build_oem.sh the following error occurred.
>
>make[2]: Entering directory
>`/home/nicol/public_html/foundation/source/mapguide-1.0.0/Oem/DWFTK7.1/d
>evelop/global/src/dwfcore/ansi'
>source='UUID.cpp' object='UUID.lo' libtool=yes \
>depfile='.deps/UUID.Plo' tmpdepfile='.deps/UUID.TPlo' \
>depmode=gcc3 /bin/sh ../depcomp \
>/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H  -I../..    -g0
>-O2 -pipe -pedantic -Wall -Wno-long-long  -Wnon-virtual-dtor
>-Wsign-promo -Wsign-compare -Wundef -Wstrict-prototypes -fforce-addr
>-fomit-frame-pointer -finline-functions -ffast-math -fno-strict-aliasing
>-c-o UUID.lo `test -f 'UUID.cpp' || echo './'`UUID.cpp
> g++ -DHAVE_CONFIG_H -I../.. -g0 -O2 -pipe -pedantic -Wall
>-Wno-long-long -Wnon-virtual-dtor -Wsign-promo -Wsign-compare -Wundef
>-Wstrict-prototypes -fforce-addr -fomit-frame-pointer -finline-functions
>-ffast-math -fno-strict-aliasing -c UUID.cpp -MT UUID.lo -MD -MP
>-MF .deps/UUID.TPlo  -fPIC -DPIC -o .libs/UUID.o
>UUID.cpp: In member function `void
>DWFCore::DWFUUIDImpl_ANSI::_generate()':
>UUID.cpp:155: error: integer constant is too large for "long" type
>make[2]: *** [UUID.lo] Fehler 1
>
>Does anyone know how to fix this?
>
>gcc --version
>gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
>
>
>Many thanks
>Nicol
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [hidden email]
>For additional commands, e-mail: [hidden email]
>
>.
>
>  
>


--





Gruss

Sacha



-------------------------------------
Kreis AG Sargans
Ingenieur- und Vermessungsbüro
Kantonsschulweg 12

CH-7320 Sargans(Hauptbetrieb)
Tel. +41 (0)81 720 05 00
Fax +41 (0)81 720 05 05

Homepage : http://www.mkreis.ch
E-Mail   : mailto:[hidden email]
-------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Build error in MapGuide Oem Components [was: Build error in Oem Components of fdo-3.0.0_G001.tar.gz]

Sacha

Hello Walt

i've the file changed, but now appears a new error:

make[11]: Entering directory
`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/package/writer/extens
ions'
avoid-version  
../../../package/writer/extensions/6.01/libdwfpackagewriterextensions601.la
../../../package/writer/exten
sions/6.0/libdwfpackagewriterextensions60.la -lz
make[11]: avoid-version: Kommando nicht gefunden
make[11]: [libdwfpackagewriterextensions.la] Fehler 127 (ignoriert)
make[11]: Leaving directory
`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/package/writer/extensi
ons'
make[10]: Leaving directory
`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/package/writer/extensi
ons'
make[10]: Entering directory
`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/package/writer'
make[10]: *** Keine Regel vorhanden, um das Target
»../../package/writer/extensions/libdwfpackagewriterextensions.la«,
  benötigt von »libdwfpackagewriter.la«, zu erstellen.  Schluss.
make[10]: Leaving directory
`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/package/writer'
make[9]: *** [all-recursive] Fehler 1
make[9]: Leaving directory
`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/package/writer'
make[8]: *** [all-recursive] Fehler 1
make[8]: Leaving directory
`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/package'
make[7]: *** [all-recursive] Fehler 1
make[7]: Leaving directory
`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf'
make[6]: *** [all-recursive-am] Fehler 2
make[6]: Leaving directory
`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf'
make[5]: *** [all-recursive] Fehler 1
make[5]: Leaving directory
`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src'
make[4]: *** [all-recursive] Fehler 1
make[4]: Leaving directory
`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory
`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/mapguide/install/mapguide-1.0.0/Oem'
make: *** [all-recursive] Fehler 1

Sacha




Walt Welton-Lair schrieb:

>Some progress on this:
>
>1/ Open PackageVersionExtension.h and add the following lines near the top:
>
>#ifdef minor
>#undef minor
>#endif
>
>#ifdef major
>#undef major
>#endif
>
>2/ Go to the OEM/DWFTK7.1/develop/global/src/dwf folder and open configure.in.  Find the two occurrences of "-pedantic" and remove them (but not "-pedantic-errors").
>
>3/ Rerun build_oem.sh.  The DWF components should now build.
>
>BTW, the fixes for this have been submitted - see https://mapguide.osgeo.org/servlets/Scarab/id/MG90.
>
>Walt
>
>-----Original Message-----
>From: Sacha Genoud [mailto:[hidden email]]
>Sent: Tuesday, March 14, 2006 2:57 AM
>To: [hidden email]
>Subject: Re: [mapguide-users] Build error in MapGuide Oem Components [was: Build error in Oem Components of fdo-3.0.0_G001.tar.gz]
>
>
>Hi Nicol
>
>i think we have a similarly problem. I am also on a Debian box.
>
>In file included from ../../../dwf/package/writer/PackageWriter.h:42,
>                 from ../../../dwf/package/Units.h:31,
>                 from
>../../../dwf/package/reader/EModelSectionDescriptorReader.
>h:33,
>                 from EModelSectionDescriptorReader.cpp:21:
>../../../dwf/package/writer/PackageVersionExtension.h:96: error: parse error
>   before `int'
>../../../dwf/package/writer/PackageVersionExtension.h:106: error: parse
>error   before `int'
>make[9]: *** [EModelSectionDescriptorReader.lo] Fehler 1
>make[9]: Leaving directory
>`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/package/reader'
>make[8]: *** [all-recursive] Fehler 1
>make[8]: Leaving directory
>`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/package'
>make[7]: *** [all-recursive] Fehler 1
>make[7]: Leaving directory
>`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf'
>make[6]: *** [all-recursive-am] Fehler 2
>make[6]: Leaving directory
>`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf'
>make[5]: *** [all-recursive] Fehler 1
>make[5]: Leaving directory
>`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src'
>make[4]: *** [all-recursive] Fehler 1
>make[4]: Leaving directory
>`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global'
>make[3]: *** [all-recursive] Fehler 1
>make[3]: Leaving directory
>`/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop'
>make[2]: *** [all-recursive] Fehler 1
>make[2]: Leaving directory `/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1'
>make[1]: *** [all-recursive] Fehler 1
>make[1]: Leaving directory `/mapguide/install/mapguide-1.0.0/Oem'
>make: *** [all-recursive] Fehler 1
>
>gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
>
>
>
>If you find a solution......  .
>
>Thanks
>
>Sacha
>
>
>
>
>Nicol Hermann schrieb:
>
>  
>
>>Hi Traian,
>>
>>many thanks for your help. You are absolutely right. I refer to the Oem
>>Components in the Mapguide 1.0.0 distribution. Sorry for the confusion.
>>Your patch fixes my problem. Sadly i get a new one. See below.
>>These compiling errors are difficult to recognise because the build
>>script (build_oem.sh) do not stop when the error occur.
>>Is there a way to move this process under the control of the
>>general ./configure script?
>>
>>Attaches the new error.
>>
>>g++ -DHAVE_CONFIG_H -I../../.. -g0 -O2 -pipe -pedantic -Wall
>>-Wno-long-long -Wnon-virtual-dtor -Wsign-promo -Wsign-compare -Wundef
>>-Wstrict-prototypes -fforce-addr -fomit-frame-pointer -finline-functions
>>-ffast-math -fno-strict-aliasing -c EModelSectionDescriptorReader.cpp
>>-MT EModelSectionDescriptorReader.lo -MD -MP
>>-MF .deps/EModelSectionDescriptorReader.TPlo  -fPIC
>>-DPIC-o .libs/EModelSectionDescriptorReader.o
>>In file included from ../../../dwf/package/writer/PackageWriter.h:42,
>>                from ../../../dwf/package/Units.h:31,
>>
>>    
>>
>>from ../../../dwf/package/reader/EModelSectionDescriptorReader.h:33,
>  
>
>>                from EModelSectionDescriptorReader.cpp:21:
>>../../../dwf/package/writer/PackageVersionExtension.h:96: error: parse
>>error
>>  before `int'
>>../../../dwf/package/writer/PackageVersionExtension.h:106: error: parse
>>error
>>  before `int'
>>make[3]: *** [EModelSectionDescriptorReader.lo] Fehler 1
>>make[3]: Leaving directory
>>`/home/nicol/public_html/foundation/source/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/package/reader'
>>make[2]: *** [all-recursive] Fehler 1
>>make[2]: Leaving directory
>>`/home/nicol/public_html/foundation/source/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/package'
>>make[1]: *** [all-recursive] Fehler 1
>>make[1]: Leaving directory
>>`/home/nicol/public_html/foundation/source/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf'
>>make: *** [all] Fehler 2
>>
>>Many thanks
>>Nicol
>>
>>
>>
>>
>>    
>>
>>>Hi,
>>>  
>>>
>>>      
>>>
>>
>>
>>    
>>
>>>You say you are building FDO, but the error happened when building the
>>>DWF toolkit, which is part of MapGuide. Did you build FDO already and
>>>are now compiling MapGuide? Anyway, I fixed this in subversion, and
>>>here is the relevant diff for the file (line 155 and onwards).
>>>  
>>>
>>>      
>>>
>>
>>
>>    
>>
>>>--- UUID.cpp    (revision 276)
>>>+++ UUID.cpp    (working copy)
>>>@@ -152,10 +152,10 @@
>>>    // cccccccc-bbbb-1aaa
>>>    // note the 1 indicates a time-based uuid with a known or random
>>>host id
>>>    //
>>>-    nTimestamp = ((nTimestamp << 32) & 0xffffffff00000000) |
>>>-                 ((nTimestamp >> 16) & 0x00000000ffff0000) |
>>>-                 ((nTimestamp >> 48) & 0x0000000000000fff) |
>>>-                                       0x0000000000001000;
>>>+    nTimestamp = ((nTimestamp << 32) & 0xffffffff00000000LL) |
>>>+                 ((nTimestamp >> 16) & 0x00000000ffff0000LL) |
>>>+                 ((nTimestamp >> 48) & 0x0000000000000fffLL) |
>>>+                                       0x0000000000001000LL;
>>>  
>>>
>>>      
>>>
>>
>>
>>    
>>
>>>It's strange that it compiles fine on 3.2.3 and 4.0.2 but not on the
>>>one in the middle (3.3).
>>>  
>>>
>>>      
>>>
>>
>>
>>    
>>
>>>Traian
>>>  
>>>
>>>      
>>>
>>-----Original Message-----
>>From: Nicol Hermann [mailto:[hidden email]]
>>Sent: Friday, March 10, 2006 6:50 AM
>>To: [hidden email]
>>Subject: [mapguide-users] Build error in Oem Components of
>>fdo-3.0.0_G001.tar.gz
>>
>>Hi List,
>>
>>it tried to build the new fdo release (fdo-3.0.0_G001.tar.gz) on my
>>debian 32 bit sarge box.
>>During the compilation of the Oem product 'Oem/DWFTK7.1' with
>>build_oem.sh the following error occurred.
>>
>>make[2]: Entering directory
>>`/home/nicol/public_html/foundation/source/mapguide-1.0.0/Oem/DWFTK7.1/d
>>evelop/global/src/dwfcore/ansi'
>>source='UUID.cpp' object='UUID.lo' libtool=yes \
>>depfile='.deps/UUID.Plo' tmpdepfile='.deps/UUID.TPlo' \
>>depmode=gcc3 /bin/sh ../depcomp \
>>/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H  -I../..    -g0
>>-O2 -pipe -pedantic -Wall -Wno-long-long  -Wnon-virtual-dtor
>>-Wsign-promo -Wsign-compare -Wundef -Wstrict-prototypes -fforce-addr
>>-fomit-frame-pointer -finline-functions -ffast-math -fno-strict-aliasing
>>-c-o UUID.lo `test -f 'UUID.cpp' || echo './'`UUID.cpp
>>g++ -DHAVE_CONFIG_H -I../.. -g0 -O2 -pipe -pedantic -Wall
>>-Wno-long-long -Wnon-virtual-dtor -Wsign-promo -Wsign-compare -Wundef
>>-Wstrict-prototypes -fforce-addr -fomit-frame-pointer -finline-functions
>>-ffast-math -fno-strict-aliasing -c UUID.cpp -MT UUID.lo -MD -MP
>>-MF .deps/UUID.TPlo  -fPIC -DPIC -o .libs/UUID.o
>>UUID.cpp: In member function `void
>>DWFCore::DWFUUIDImpl_ANSI::_generate()':
>>UUID.cpp:155: error: integer constant is too large for "long" type
>>make[2]: *** [UUID.lo] Fehler 1
>>
>>Does anyone know how to fix this?
>>
>>gcc --version
>>gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
>>
>>
>>Many thanks
>>Nicol
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [hidden email]
>>For additional commands, e-mail: [hidden email]
>>
>>.
>>
>>
>>
>>    
>>
>
>
>  
>


--


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Build error in MapGuide Oem Components [was: Build error in Oem Components of fdo-3.0.0_G001.tar.gz]

Nicol Hermann
In reply to this post by weltonw
Hi Walt,

i also applied the changes you recommend but now i get the following
error:

 g++ -DHAVE_CONFIG_H -I../.. -I../../dwf -g0 -O2 -pipe -pedantic -Wall
-Wno-long-long -Wnon-virtual-dtor -Wsign-promo -Wsign-compare
-Wundef-Wstrict-prototypes -fforce-addr -fomit-frame-pointer
-finline-functions -ffast-math -fno-strict-aliasing -c assert.cpp -MT
assert.lo -MD -MP -MF .deps/assert.TPlo  -fPIC -DPIC -o .libs/assert.o
In file included from /usr/include/math.h:362,
                 from ../../dwf/whiptk/pch.h:23,
                 from assert.cpp:19:
/usr/include/bits/mathinline.h: In function `long double __expm1l(long
double)
   ':
/usr/include/bits/mathinline.h:385: error: ISO C++ forbids omitting the
middle
   term of a ?: expression
/usr/include/bits/mathinline.h: In function `double expm1(double)':
/usr/include/bits/mathinline.h:536: error: ISO C++ forbids omitting the
middle
   term of a ?: expression
/usr/include/bits/mathinline.h: In function `float expm1f(float)':
/usr/include/bits/mathinline.h:536: error: ISO C++ forbids omitting the
middle
   term of a ?: expression
/usr/include/bits/mathinline.h: In function `long double expm1l(long
double)':
/usr/include/bits/mathinline.h:536: error: ISO C++ forbids omitting the
middle
   term of a ?: expression
make[2]: *** [assert.lo] Fehler 1
make[2]: Leaving directory
`/home/nicol/public_html/foundation/source/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/whiptk'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory
`/home/nicol/public_html/foundation/source/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf'
make: *** [all] Fehler 2


Is there a cvs system running already?
Many thanks
Nicol

Am Mittwoch, den 15.03.2006, 13:57 -0500 schrieb Walt Welton-Lair:

> Some progress on this:
>
> 1/ Open PackageVersionExtension.h and add the following lines near the top:
>
> #ifdef minor
> #undef minor
> #endif
>
> #ifdef major
> #undef major
> #endif
>
> 2/ Go to the OEM/DWFTK7.1/develop/global/src/dwf folder and open configure.in.  Find the two occurrences of "-pedantic" and remove them (but not "-pedantic-errors").
>
> 3/ Rerun build_oem.sh.  The DWF components should now build.
>
> BTW, the fixes for this have been submitted - see https://mapguide.osgeo.org/servlets/Scarab/id/MG90.
>
> Walt
>
> -----Original Message-----
> From: Sacha Genoud [mailto:[hidden email]]
> Sent: Tuesday, March 14, 2006 2:57 AM
> To: [hidden email]
> Subject: Re: [mapguide-users] Build error in MapGuide Oem Components [was: Build error in Oem Components of fdo-3.0.0_G001.tar.gz]
>
>
> Hi Nicol
>
> i think we have a similarly problem. I am also on a Debian box.
>
> In file included from ../../../dwf/package/writer/PackageWriter.h:42,
>                  from ../../../dwf/package/Units.h:31,
>                  from
> ../../../dwf/package/reader/EModelSectionDescriptorReader.
> h:33,
>                  from EModelSectionDescriptorReader.cpp:21:
> ../../../dwf/package/writer/PackageVersionExtension.h:96: error: parse error
>    before `int'
> ../../../dwf/package/writer/PackageVersionExtension.h:106: error: parse
> error   before `int'
> make[9]: *** [EModelSectionDescriptorReader.lo] Fehler 1
> make[9]: Leaving directory
> `/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/package/reader'
> make[8]: *** [all-recursive] Fehler 1
> make[8]: Leaving directory
> `/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/package'
> make[7]: *** [all-recursive] Fehler 1
> make[7]: Leaving directory
> `/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf'
> make[6]: *** [all-recursive-am] Fehler 2
> make[6]: Leaving directory
> `/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf'
> make[5]: *** [all-recursive] Fehler 1
> make[5]: Leaving directory
> `/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src'
> make[4]: *** [all-recursive] Fehler 1
> make[4]: Leaving directory
> `/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop/global'
> make[3]: *** [all-recursive] Fehler 1
> make[3]: Leaving directory
> `/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1/develop'
> make[2]: *** [all-recursive] Fehler 1
> make[2]: Leaving directory `/mapguide/install/mapguide-1.0.0/Oem/DWFTK7.1'
> make[1]: *** [all-recursive] Fehler 1
> make[1]: Leaving directory `/mapguide/install/mapguide-1.0.0/Oem'
> make: *** [all-recursive] Fehler 1
>
> gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
>
>
>
> If you find a solution......  .
>
> Thanks
>
> Sacha
>
>
>
>
> Nicol Hermann schrieb:
>
> >Hi Traian,
> >
> >many thanks for your help. You are absolutely right. I refer to the Oem
> >Components in the Mapguide 1.0.0 distribution. Sorry for the confusion.
> >Your patch fixes my problem. Sadly i get a new one. See below.
> >These compiling errors are difficult to recognise because the build
> >script (build_oem.sh) do not stop when the error occur.
> >Is there a way to move this process under the control of the
> >general ./configure script?
> >
> >Attaches the new error.
> >
> > g++ -DHAVE_CONFIG_H -I../../.. -g0 -O2 -pipe -pedantic -Wall
> >-Wno-long-long -Wnon-virtual-dtor -Wsign-promo -Wsign-compare -Wundef
> >-Wstrict-prototypes -fforce-addr -fomit-frame-pointer -finline-functions
> >-ffast-math -fno-strict-aliasing -c EModelSectionDescriptorReader.cpp
> >-MT EModelSectionDescriptorReader.lo -MD -MP
> >-MF .deps/EModelSectionDescriptorReader.TPlo  -fPIC
> >-DPIC-o .libs/EModelSectionDescriptorReader.o
> >In file included from ../../../dwf/package/writer/PackageWriter.h:42,
> >                 from ../../../dwf/package/Units.h:31,
> >
> >from ../../../dwf/package/reader/EModelSectionDescriptorReader.h:33,
> >                 from EModelSectionDescriptorReader.cpp:21:
> >../../../dwf/package/writer/PackageVersionExtension.h:96: error: parse
> >error
> >   before `int'
> >../../../dwf/package/writer/PackageVersionExtension.h:106: error: parse
> >error
> >   before `int'
> >make[3]: *** [EModelSectionDescriptorReader.lo] Fehler 1
> >make[3]: Leaving directory
> >`/home/nicol/public_html/foundation/source/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/package/reader'
> >make[2]: *** [all-recursive] Fehler 1
> >make[2]: Leaving directory
> >`/home/nicol/public_html/foundation/source/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf/package'
> >make[1]: *** [all-recursive] Fehler 1
> >make[1]: Leaving directory
> >`/home/nicol/public_html/foundation/source/mapguide-1.0.0/Oem/DWFTK7.1/develop/global/src/dwf'
> >make: *** [all] Fehler 2
> >
> >Many thanks
> >Nicol
> >
> >
> >  
> >
> >>Hi,
> >>    
> >>
> >
> >  
> >
> >>You say you are building FDO, but the error happened when building the
> >>DWF toolkit, which is part of MapGuide. Did you build FDO already and
> >>are now compiling MapGuide? Anyway, I fixed this in subversion, and
> >>here is the relevant diff for the file (line 155 and onwards).
> >>    
> >>
> >
> >  
> >
> >>--- UUID.cpp    (revision 276)
> >>+++ UUID.cpp    (working copy)
> >>@@ -152,10 +152,10 @@
> >>     // cccccccc-bbbb-1aaa
> >>     // note the 1 indicates a time-based uuid with a known or random
> >>host id
> >>     //
> >>-    nTimestamp = ((nTimestamp << 32) & 0xffffffff00000000) |
> >>-                 ((nTimestamp >> 16) & 0x00000000ffff0000) |
> >>-                 ((nTimestamp >> 48) & 0x0000000000000fff) |
> >>-                                       0x0000000000001000;
> >>+    nTimestamp = ((nTimestamp << 32) & 0xffffffff00000000LL) |
> >>+                 ((nTimestamp >> 16) & 0x00000000ffff0000LL) |
> >>+                 ((nTimestamp >> 48) & 0x0000000000000fffLL) |
> >>+                                       0x0000000000001000LL;
> >>    
> >>
> >
> >
> >  
> >
> >>It's strange that it compiles fine on 3.2.3 and 4.0.2 but not on the
> >>one in the middle (3.3).
> >>    
> >>
> >
> >  
> >
> >>Traian
> >>    
> >>
> >
> >
> >-----Original Message-----
> >From: Nicol Hermann [mailto:[hidden email]]
> >Sent: Friday, March 10, 2006 6:50 AM
> >To: [hidden email]
> >Subject: [mapguide-users] Build error in Oem Components of
> >fdo-3.0.0_G001.tar.gz
> >
> >Hi List,
> >
> >it tried to build the new fdo release (fdo-3.0.0_G001.tar.gz) on my
> >debian 32 bit sarge box.
> >During the compilation of the Oem product 'Oem/DWFTK7.1' with
> >build_oem.sh the following error occurred.
> >
> >make[2]: Entering directory
> >`/home/nicol/public_html/foundation/source/mapguide-1.0.0/Oem/DWFTK7.1/d
> >evelop/global/src/dwfcore/ansi'
> >source='UUID.cpp' object='UUID.lo' libtool=yes \
> >depfile='.deps/UUID.Plo' tmpdepfile='.deps/UUID.TPlo' \
> >depmode=gcc3 /bin/sh ../depcomp \
> >/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H  -I../..    -g0
> >-O2 -pipe -pedantic -Wall -Wno-long-long  -Wnon-virtual-dtor
> >-Wsign-promo -Wsign-compare -Wundef -Wstrict-prototypes -fforce-addr
> >-fomit-frame-pointer -finline-functions -ffast-math -fno-strict-aliasing
> >-c-o UUID.lo `test -f 'UUID.cpp' || echo './'`UUID.cpp
> > g++ -DHAVE_CONFIG_H -I../.. -g0 -O2 -pipe -pedantic -Wall
> >-Wno-long-long -Wnon-virtual-dtor -Wsign-promo -Wsign-compare -Wundef
> >-Wstrict-prototypes -fforce-addr -fomit-frame-pointer -finline-functions
> >-ffast-math -fno-strict-aliasing -c UUID.cpp -MT UUID.lo -MD -MP
> >-MF .deps/UUID.TPlo  -fPIC -DPIC -o .libs/UUID.o
> >UUID.cpp: In member function `void
> >DWFCore::DWFUUIDImpl_ANSI::_generate()':
> >UUID.cpp:155: error: integer constant is too large for "long" type
> >make[2]: *** [UUID.lo] Fehler 1
> >
> >Does anyone know how to fix this?
> >
> >gcc --version
> >gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
> >
> >
> >Many thanks
> >Nicol
> >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [hidden email]
> >For additional commands, e-mail: [hidden email]
> >
> >.
> >
> >  
> >
>
>
> --
>
>
>
>
>
> Gruss
>
> Sacha
>
>
>
> -------------------------------------
> Kreis AG Sargans
> Ingenieur- und Vermessungsbüro
> Kantonsschulweg 12
>
> CH-7320 Sargans(Hauptbetrieb)
> Tel. +41 (0)81 720 05 00
> Fax +41 (0)81 720 05 05
>
> Homepage : http://www.mkreis.ch
> E-Mail   : mailto:[hidden email]
> -------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]