Problems iwith swig in build_oem ubuntu 8.04

18 messages Options
Embed this post
Permalink
Jo Cook

Problems iwith swig in build_oem ubuntu 8.04

Reply Threaded More More options
Print post
Permalink
Hi All,

I am trying to build mapguide from the svn version on ubuntu 8.04. I have managed (I think...) to get all the way through the fdo and apt builds without any problems, but am stuck on the build_oem section. It seems to be failing with the csharp module in SWIGex, and the relevant part of the log is shown below:

swigex: Initialization...........................
swigex: Configure/Build ...........................
~/mgsvn/Oem/SWIGEx ~/mgsvn/Oem ~/mgsvn
test -d Linux/ || mkdir -p Linux/
g++  -o Linux/swig Linux/obj/release/cscanner.o Linux/obj/release/parser.o Linux/obj/release/templ.o Linux/obj/release/util.o Linux/obj/release/base.o Linux/obj/release/file.o Linux/obj/release/fio.o Linux/obj/release/hash.o Linux/obj/release/list.o Linux/obj/release/memory.o Linux/obj/release/string.o Linux/obj/release/void.o Linux/obj/release/allocate.o Linux/obj/release/browser.o Linux/obj/release/chicken.o Linux/obj/release/contract.o Linux/obj/release/csharp.o Linux/obj/release/directors.o Linux/obj/release/emit.o Linux/obj/release/guile.o Linux/obj/release/java.o Linux/obj/release/lang.o Linux/obj/release/main.o Linux/obj/release/module.o Linux/obj/release/mzscheme.o Linux/obj/release/ocaml.o Linux/obj/release/overload.o Linux/obj/release/perl5.o Linux/obj/release/php4.o Linux/obj/release/php5.o Linux/obj/release/pike.o Linux/obj/release/python.o Linux/obj/release/ruby.o Linux/obj/release/s-exp.o Linux/obj/release/swigmain.o Linux/obj/release/tcl8.o Linux/obj/release/typepass.o Linux/obj/release/utils.o Linux/obj/release/xml.o Linux/obj/release/cwrap.o Linux/obj/release/error.o Linux/obj/release/fragment.o Linux/obj/release/getopt.o Linux/obj/release/include.o Linux/obj/release/misc.o Linux/obj/release/naming.o Linux/obj/release/parms.o Linux/obj/release/scanner.o Linux/obj/release/stype.o Linux/obj/release/symbol.o Linux/obj/release/tree.o Linux/obj/release/typemap.o Linux/obj/release/typeobj.o Linux/obj/release/typesys.o Linux/obj/release/warn.o Linux/obj/release/wrapfunc.o Linux/obj/release/cpp.o Linux/obj/release/expr.o    
Linux/obj/release/csharp.o: In function `__exchange_and_add':
/usr/include/c++/4.2/ext/atomicity.h:51: undefined reference to `__sync_fetch_and_add_4'
/usr/include/c++/4.2/ext/atomicity.h:51: undefined reference to `__sync_fetch_and_add_4'
Linux/obj/release/csharp.o: In function `__exchange_and_add':
/usr/include/c++/4.2/bits/basic_string.h:288: undefined reference to `__sync_fetch_and_add_4'
/usr/include/c++/4.2/bits/basic_string.h:288: undefined reference to `__sync_fetch_and_add_4'
/usr/include/c++/4.2/bits/basic_string.h:288: undefined reference to `__sync_fetch_and_add_4'
Linux/obj/release/csharp.o:/usr/include/c++/4.2/ext/atomicity.h:51: more undefined references to `__sync_fetch_and_add_4' follow
collect2: ld returned 1 exit status
make: *** [Linux/swig] Error 1
SWIGEx 1.0: Error build failed (0).................


I have had a look in on the csharp module, but it's all beyond me. If anyone can point me in the right direction I'd be very grateful (but unable to reply for a week or so as I'm going on hols).

Many thanks

Jo

-----------------------------------------------------
Joanne Cook
Senior IT Support and Development
Oxford Archaeology (North)
01524 880212
http://thehumanjourney.net



------
Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://iso26300.info for more information.

_______________________________________________
mapguide-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
Takashige

Re: Problems iwith swig in build_oem ubuntu 8.04

Reply Threaded More More options
Print post
Permalink
Hi.

I have just the same problem as you.
Is there any progress on this everyone?

Before running  build_oem.sh, I typed the following commands.

CC=gcc-4.1
export CC
CXX=g++-4.1
export CXX

Thanks.

Takashige Nakagawa
Takashige

Re: Problems iwith swig in build_oem ubuntu 8.04

Reply Threaded More More options
Print post
Permalink
Sorry for posting successively, but I'm really in trouble.

I'm trying to build MGOS 2.0.1 on Ubuntu 8.04.3 LTS. Ubuntu itself is running on VMWare Fusion.
I'm following the steps in http://wiki.osgeo.org/wiki/Building_MapGuide_on_Ubuntu_8.04.
Installing FDO, APACHE and PHP was done successfully (I believe). But build_oem.sh fails.
Attached is a log of the build_oem.sh.

Could somebody tell me what's wrong?

Any information is appreciated.
Thanks.

Takashigebuild_oem.log
Takashige

Re: Problems iwith swig in build_oem ubuntu 8.04

Reply Threaded More More options
Print post
Permalink
In reply to this post by Takashige
Oh, I noticed that the MGOS version was wrong. I'm sorry.
I'll try with MGOS 2.0.2.

Thanks.

Takashige

_______________________________________________
mapguide-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
Takashige

Re: Problems iwith swig in build_oem ubuntu 8.04

Reply Threaded More More options
Print post
Permalink
In reply to this post by Takashige
Sorry for successive post again.

I tried building version 2.0.2, and I got same error in running build_oem.sh.
Attached is the log.
How can I fix this?

Thanks.
Takashige

build_oem.log
zspitzer

Re: Problems iwith swig in build_oem ubuntu 8.04

Reply Threaded More More options
Print post
Permalink
In reply to this post by Takashige
alas sadly ubuntu is difficult to build mapguide on, in fact the whole linux
build side of mapguide is sorely painful

i've tried and failed quite few times myself

searching the mailing list archives paints the picture

z

On Tue, Jul 28, 2009 at 1:14 PM, Takashige
Nakagawa<[hidden email]> wrote:

> Oh, I noticed that the MGOS version was wrong. I'm sorry.
> I'll try with MGOS 2.0.2.
> Thanks.
> Takashige
> _______________________________________________
> mapguide-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>



--
Zac Spitzer -
http://zacster.blogspot.com
+61 405 847 168
_______________________________________________
mapguide-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
Takashige

Re: Problems iwith swig in build_oem ubuntu 8.04

Reply Threaded More More options
Print post
Permalink
Hi Zac and everyone,

Thanks to the mailing list archives, OEM was built successfully.

Typing the following commands before running buil_oem.sh was not enough for me.

CC=gcc-4.1
export CC
CXX=g++-4.1
export CXX

In addition to this, I a few lines in Oem/SWIGEx/Makefile and BuildTools/WebTools/IMake/Makefile as below.

 CC = gcc-4.1
 CXX = g++-4.1
 LINK = g++-4.1    # Only in IMake/Makefile

Then, buil_oem.sh succeeded.

But now, "make" fails (It's really painful!).  
It says

"GwsFeatureQueryResults.cpp:27:42: error: SDF/IScrollableFeatureReader.h: No such file or directory"

Could somebody tell me where the SDF/IScrollableFeatureReader.h should be and how to place it?

Thanks.

Takashige
Jackie Ng

Re: Problems iwith swig in build_oem ubuntu 8.04

Reply Threaded More More options
Print post
Permalink
That should be a part of the headers installed with the FDO sdk.

Given the FDO sdk is installed at %FDO%

Then it's trying to look for %FDO%\Inc\SDF\IScrollableFeatureReader.h

- Jackie

Takashige wrote:
Hi Zac and everyone,

Thanks to the mailing list archives, OEM was built successfully.

Typing the following commands before running buil_oem.sh was not enough for me.

CC=gcc-4.1
export CC
CXX=g++-4.1
export CXX

In addition to this, I a few lines in Oem/SWIGEx/Makefile and BuildTools/WebTools/IMake/Makefile as below.

 CC = gcc-4.1
 CXX = g++-4.1
 LINK = g++-4.1    # Only in IMake/Makefile

Then, buil_oem.sh succeeded.

But now, "make" fails (It's really painful!).  
It says

"GwsFeatureQueryResults.cpp:27:42: error: SDF/IScrollableFeatureReader.h: No such file or directory"

Could somebody tell me where the SDF/IScrollableFeatureReader.h should be and how to place it?

Thanks.

Takashige
Takashige

Re: Problems iwith swig in build_oem ubuntu 8.04

Reply Threaded More More options
Print post
Permalink
Hi Jackie.

Althogh I knew it was not a correct solution, I copied mydir/fdo-3.3.1/Providers/SDF/Inc/SDF to
the same directory as the GwsFeatureQueryResults.cpp for the time being.
Still something is wrong with FDO, but Mapguide is built anyway :)

Now I have to check if FDO is really built successfully.
(When I excuted mapagent's GETPROVIDERCAPABILITIES, I got an error "CLNT_12_FILE_NOT_EXIST".
And there is not SDF directory under /usr/local/fdo-3.3.0. Hmm, still long way to go.)

Thanks.

Takashige


Takashige

Re: Problems iwith swig in build_oem ubuntu 8.04

Reply Threaded More More options
Print post
Permalink
Hi all,

Thanks to the post http://n2.nabble.com/Boost-compilation-problem---solution-td2049694.html#a2049694,
my FDO problem was solved and installation of MGOS finally succeeded!
In %FDO_OpenSource%/Thirdparty/boost/tools/jam/src/ directory, I ran a patch in http://svn.boost.org/trac/boost/ticket/977.
It seems MGOS server is running fine so far.

Thanks.

Takashige
kernel_panic

Re: Problems iwith swig in build_oem ubuntu 8.04

Reply Threaded More More options
Print post
Permalink
In reply to this post by Takashige

Takashige wrote:
Hi Zac and everyone,

Thanks to the mailing list archives, OEM was built successfully.

Typing the following commands before running buil_oem.sh was not enough for me.

CC=gcc-4.1
export CC
CXX=g++-4.1
export CXX

In addition to this, I a few lines in Oem/SWIGEx/Makefile and BuildTools/WebTools/IMake/Makefile as below.

 CC = gcc-4.1
 CXX = g++-4.1
 LINK = g++-4.1    # Only in IMake/Makefile
Hi there!

One question, whats the full path of this? :p

 "BuildTools/WebTools/IMake/Makefile"
Takashige

Re: Problems iwith swig in build_oem ubuntu 8.04

Reply Threaded More More options
Print post
Permalink
Hi, kernel_panic.

It depends on where you downloaded the source code of Mapguide OpenSouce.

In my case, it's

/home/administrator/mapguide-2.0.2/BuildTools/WebTools/IMake/Makefile


kernel_panic wrote:
Hi there!

One question, whats the full path of this? :p

 "BuildTools/WebTools/IMake/Makefile"
kernel_panic

Re: Problems iwith swig in build_oem ubuntu 8.04

Reply Threaded More More options
Print post
Permalink
NVM, I found the directory on <<mapguide_untar_dir>>/BuildTools.
Sorry, I was focused on the swig dir and missed this out.

However, Im having a similar problem to the one you had:

Yours:

"GwsFeatureQueryResults.cpp:27:42: error:
SDF/IScrollableFeatureReader.h: No such file or directory"

Mine:

"GwsFeatureQueryResults.cpp:27:42: error:
SDF/IScrollableFeatureReader.h: No such file or directory
GwsFeatureQueryResults.cpp:28:42: error:
SHP/IScrollableFeatureReader.h: No such file or directory "

Actually, is quite longer than that, but lets leave like this (to see
the full error, check this thread
http://n2.nabble.com/FDO-Compile-error-libxalan-c-td3772060i20.html )

You fixed that by doing this:

"Althogh I knew it was not a correct solution, I copied
mydir/fdo-3.3.1/Providers/SDF/Inc/SDF to
the same directory as the GwsFeatureQueryResults.cpp for the time being.
Still something is wrong with FDO, but Mapguide is built anyway :) "


In this thread:

http://n2.nabble.com/FDO-Compile-error-libxalan-c-tp3772060p3772060.html

I was suggested that instead of using mapguide 2.0.2, I use mapguide
from trunk, I did that, but now when I run the build.oem script, I get
the error that begun this thread:
http://n2.nabble.com/Problems-iwith-swig-in-build-oem-ubuntu-8-04-td1817291.html#a1817291

The "atomicity.h" one, and I havent been able to fix it (not even by
doing the CC/exportCC/CXX/exportCXX and modyfing the makefiles as you
did)

Now, Im stuck on that problem, so if you know how to fix it, Id be
very very thankful! :)
_______________________________________________
mapguide-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
Takashige

Re: Problems iwith swig in build_oem ubuntu 8.04

Reply Threaded More More options
Print post
Permalink
Hi.

Copying /fdo-3.3.1/Providers/SDF/Inc/SDF to the same directory as the GwsFeatureQueryResults.cpp was not the sollution.
I neglected reporting that. I'm sorry.

Here is what I did besides the steps in installation guide.

## before building FDO,
I ran a patch in http://svn.boost.org/trac/boost/ticket/977
in %My_FDO_OpenSource%/Thirdparty/boost/tools/jam/src/ directory.

## before building OEM
I edited the following lines in Oem/SWIGEx/Makefile and BuildTools/WebTools/IMake/Makefile

 CC = gcc-4.1
 CXX = g++-4.1
 LINK = g++-4.1    # Only in IMake/Makefile

## before building Mapguide
I ran a patch in http://trac.osgeo.org/mapguide/attachment/ticket/347/CgiAgent_Makefile.am.patch
in %My_MGOS_Source%/Web/src/CgiAgent directory.

I hope it works :)

Takashige
kernel_panic

Re: Problems iwith swig in build_oem ubuntu 8.04

Reply Threaded More More options
Print post
Permalink
2009/10/13, Takashige <[hidden email]>:

>
> Hi.
>
> Copying /fdo-3.3.1/Providers/SDF/Inc/SDF to the same directory as the
> GwsFeatureQueryResults.cpp was not the sollution.
> I neglected reporting that. I'm sorry.
>
> Here is what I did besides the steps in installation guide.
>
> ## before building FDO,
> I ran a patch in http://svn.boost.org/trac/boost/ticket/977
> in %My_FDO_OpenSource%/Thirdparty/boost/tools/jam/src/ directory.
>
> ## before building OEM
> I edited the following lines in Oem/SWIGEx/Makefile and
> BuildTools/WebTools/IMake/Makefile
>
>  CC = gcc-4.1
>  CXX = g++-4.1
>  LINK = g++-4.1    # Only in IMake/Makefile
>
> ## before building Mapguide
> I ran a patch in
> http://trac.osgeo.org/mapguide/attachment/ticket/347/CgiAgent_Makefile.am.patch
> in %My_MGOS_Source%/Web/src/CgiAgent directory.
>
> I hope it works :)
>
> Takashige
> --

Well... nope :(
I didnt need to apply either patches, never had the boost problem nor
the cgi, and just tu make sure, I checked the changes in the cgi, and
mine was exactly as its supposed to be after the fix. Apart from that,
I did exactly what you said :p

Here's my post regarding to this:
http://n2.nabble.com/FDO-Compile-error-libxalan-c-td3772060i20.html
(the last one I made)
_______________________________________________
mapguide-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
vee_olina

Re: Problems iwith swig in build_oem ubuntu 8.04

Reply Threaded More More options
Print post
Permalink
In reply to this post by Takashige
Hi Takasighe,

I got the same error on SWIGEx.
I've tried your sugested solution but with no result.
i stuck on this.

i'm trying to build mapguide-2.0.1 on Ubuntu 8.04
help me please

thanks a million

Takashige wrote:
Hi.

Copying /fdo-3.3.1/Providers/SDF/Inc/SDF to the same directory as the GwsFeatureQueryResults.cpp was not the sollution.
I neglected reporting that. I'm sorry.

Here is what I did besides the steps in installation guide.

## before building FDO,
I ran a patch in http://svn.boost.org/trac/boost/ticket/977
in %My_FDO_OpenSource%/Thirdparty/boost/tools/jam/src/ directory.

## before building OEM
I edited the following lines in Oem/SWIGEx/Makefile and BuildTools/WebTools/IMake/Makefile

 CC = gcc-4.1
 CXX = g++-4.1
 LINK = g++-4.1    # Only in IMake/Makefile

## before building Mapguide
I ran a patch in http://trac.osgeo.org/mapguide/attachment/ticket/347/CgiAgent_Makefile.am.patch
in %My_MGOS_Source%/Web/src/CgiAgent directory.

I hope it works :)

Takashige
Takashige

Re: Problems iwith swig in build_oem ubuntu 8.04

Reply Threaded More More options
Print post
Permalink
Hi Vee

Sorry for being late in replying.
I will look over the whole steps I did again.
Maybe I should do it all over again and see what happens.

Thanks.

Takashige

from iPhone

On 2009/11/03, at 13:38, vee_olina <[hidden email]> wrote:

>
> Hi Takasighe,
>
> I got the same error on SWIGEx.
> I've tried your sugested solution but with no result.
> i stuck on this.
>
> i'm trying to build mapguide-2.0.1 on Ubuntu 8.04
> help me please
>
> thanks a million
>
>
> Takashige wrote:
>>
>> Hi.
>>
>> Copying /fdo-3.3.1/Providers/SDF/Inc/SDF to the same directory as the
>> GwsFeatureQueryResults.cpp was not the sollution.
>> I neglected reporting that. I'm sorry.
>>
>> Here is what I did besides the steps in installation guide.
>>
>> ## before building FDO,
>> I ran a patch in http://svn.boost.org/trac/boost/ticket/977
>> in %My_FDO_OpenSource%/Thirdparty/boost/tools/jam/src/ directory.
>>
>> ## before building OEM
>> I edited the following lines in Oem/SWIGEx/Makefile and
>> BuildTools/WebTools/IMake/Makefile
>>
>> CC = gcc-4.1
>> CXX = g++-4.1
>> LINK = g++-4.1    # Only in IMake/Makefile
>>
>> ## before building Mapguide
>> I ran a patch in
>> http://trac.osgeo.org/mapguide/attachment/ticket/347/CgiAgent_Makefile.am.patch
>> in %My_MGOS_Source%/Web/src/CgiAgent directory.
>>
>> I hope it works :)
>>
>> Takashige
>>
>
> --
> View this message in context: http://n2.nabble.com/Problems-iwith-swig-in-build-oem-ubuntu-8-04-tp1817291p3936555.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
vee_olina

Re: Problems iwith swig in build_oem ubuntu 8.04

Reply Threaded More More options
Print post
Permalink
No problem..
I really...really stuck on build_oem..
I've tried different version of MGOS but got the same error..
i also tried to build on Debian Lenny but no progress on build_oem

What's wrong on this? or maybe i got the wrong version? anybody can tell me what version of MGOS and FDO will work on Ubuntu 8.04 and Debian Lenny?

Thanks a lot for quick reply

Takashige wrote:
Hi Vee

Sorry for being late in replying.
I will look over the whole steps I did again.
Maybe I should do it all over again and see what happens.

Thanks.

Takashige

from iPhone

On 2009/11/03, at 13:38, vee_olina <violina.ucie@gmail.com> wrote:

>
> Hi Takasighe,
>
> I got the same error on SWIGEx.
> I've tried your sugested solution but with no result.
> i stuck on this.
>
> i'm trying to build mapguide-2.0.1 on Ubuntu 8.04
> help me please
>
> thanks a million
>
>
> Takashige wrote:
>>
>> Hi.
>>
>> Copying /fdo-3.3.1/Providers/SDF/Inc/SDF to the same directory as the
>> GwsFeatureQueryResults.cpp was not the sollution.
>> I neglected reporting that. I'm sorry.
>>
>> Here is what I did besides the steps in installation guide.
>>
>> ## before building FDO,
>> I ran a patch in http://svn.boost.org/trac/boost/ticket/977
>> in %My_FDO_OpenSource%/Thirdparty/boost/tools/jam/src/ directory.
>>
>> ## before building OEM
>> I edited the following lines in Oem/SWIGEx/Makefile and
>> BuildTools/WebTools/IMake/Makefile
>>
>> CC = gcc-4.1
>> CXX = g++-4.1
>> LINK = g++-4.1    # Only in IMake/Makefile
>>
>> ## before building Mapguide
>> I ran a patch in
>> http://trac.osgeo.org/mapguide/attachment/ticket/347/CgiAgent_Makefile.am.patch
>> in %My_MGOS_Source%/Web/src/CgiAgent directory.
>>
>> I hope it works :)
>>
>> Takashige
>>
>
> --
> View this message in context: http://n2.nabble.com/Problems-iwith-swig-in-build-oem-ubuntu-8-04-tp1817291p3936555.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users