[PolyORB-users] Build PolyORB under Windows

Martin Krischik krischik at users.sourceforge.net
Thu Dec 2 21:02:07 CET 2004


Hello Thomas,

Thank you for your help.

On Thu, 2 Dec 2004 11:07:27 +0100, Thomas Quinot <quinot at adacore.com>  
wrote:

> [ Please do not remove polyorb-users at lists.adacore.com from the
>   recipients list when replying. ]

Shure, must have been a mistake.

> * Martin Krischik, 2004-12-02 :
>
>> Should I try the cvs instead?
>
> Definitely. As mentioned by Jérôme, there are known issues under Windows
> with PolyORB 1.1r, which were fixed after the release. Note that you
> will also need a recent version of GNAT.

Well, you need a lot more then just a recent version of GNAT. Like a  
complete MinGW and Python. I started a Wiki page on everything you need so  
other can benefit:

http://en.wikibooks.org/wiki/Programming:Ada:Libraries:Distributed:PolyORB

Did I miss something?

Now I got it all and noticed some strange errors "support/reconfig":

----
Libtoolizing
Running aclocal
/usr/share/aclocal/autoopts.m4:22: warning: underquoted definition of  
AG_PATH_AUTOOPTS
   run info '(automake)Extending aclocal'
   or see  
http://sources.redhat.com/automake/automake.html#Extending%20aclocal
Running autoconf
Running automake
Generating IDL tree accessors
splitting nodes.ada into:
    idl_fe-tree.ads
    idl_fe-tree.adb
Doing the necessary date modifications
find: ./compilers/iac/idl/test002: No such file or directory
find: ./compilers/iac/idl/test003: No such file or directory
----

I give it a try anyway. And configure also report something strange:

----
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... ./configure: eval: line 1:  
unexpected EOF while looking fo
r matching `"'
./configure: eval: line 2: syntax error: unexpected end of file
no
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
----

The rest was OK so I tried to compile regardless:

----

D:\MinGW\bin\make.exe[1]: Entering directory `D:/Work/act/polyorb/src'
Making all in .
D:\MinGW\bin\make.exe[2]: Entering directory `D:/Work/act/polyorb/src'
D:/MinGW/local/msys/1.0/bin/sh.exe ../libtool --tag=CC --mode=compile  
../support/adacompiler -c
-g -O2 -gnatfy -gnatwae -gnatpn -gnatg -I. -I. polyorb-annotations.adb
mkdir .libs
  ../support/adacompiler -c -g -O2 -gnatfy -gnatwae -gnatpn -gnatg -I. -I.  
polyorb-annotations.ad
b  -DDLL_EXPORT -DPIC -o .libs/polyorb-annotations.o
gnat1: Cannot create: tmp3184/.libs/polyorb-annotations.ali
mv: cannot stat `tmp3184/.libs/polyorb-annotations.o': No such file or  
directory
mv: cannot stat `tmp3184/*': No such file or directory
D:\MinGW\bin\make.exe[2]: *** [polyorb-annotations.lo] Error 1
D:\MinGW\bin\make.exe[2]: Leaving directory `D:/Work/act/polyorb/src'
D:\MinGW\bin\make.exe[1]: *** [all-recursive] Error 1
D:\MinGW\bin\make.exe[1]: Leaving directory `D:/Work/act/polyorb/src'
----

And that is precicly the same error as under Linux. So I guess  
--enable-shared is broken in Windows as well.

After reconfiguring without shared library support the compile worked ok.  
Only when linking "libpolyorb.la" the is an error message which did not  
happen with Linux:

----
polyorb-tasking-profiles-ravenscar.lo  
polyorb-tasking-profiles-full_tasking.lo polyorb-tasking-p
rofiles-no_tasking.lo polyorb-utils-hfunctions.lo polyorb-utils-htables.lo

raised CONSTRAINT_ERROR : run_script.adb:156 access check failed
D:\MinGW\bin\make.exe[2]: *** [libpolyorb.la] Error 1
D:\MinGW\bin\make.exe[2]: Leaving directory `D:/Work/act/polyorb/src'
D:\MinGW\bin\make.exe[1]: *** [all-recursive] Error 1
D:\MinGW\bin\make.exe[1]: Leaving directory `D:/Work/act/polyorb/src'
D:\MinGW\bin\make.exe: *** [all-recursive] Error 1
/work/act/polyorb  Linux  martin at VMWARE3  Thu Dec  2 20:51:16  standart
> ~
---

any ideas?

With Regards

Martin.




More information about the PolyORB-users mailing list