Discussion:
[omniORB] omniOrb with VC9 for x64
Stefan Walter
2008-02-06 13:54:49 UTC
Permalink
I just finished compiling omniOrb 4.1.1 with VC9 (VS 2008) in 32bit
mode. This just worked because i deactivated IPV6 support.

is there any way to compile omniOrb for x64 (Windows 2003 Server)?

Regards Stefan
Duncan Grisby
2008-02-06 21:37:30 UTC
Permalink
Post by Stefan Walter
I just finished compiling omniOrb 4.1.1 with VC9 (VS 2008) in 32bit
mode. This just worked because i deactivated IPV6 support.
Did it fail if you kept IPv6 support in? If so, in what way? It should
work.
Post by Stefan Walter
is there any way to compile omniOrb for x64 (Windows 2003 Server)?
It should work fine if you do exactly the same as for 32 bit Windows --
use the x86_win32 platform, even though strictly speaking it's win64.

Cheers,

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
Stefan Walter
2008-02-06 21:50:17 UTC
Permalink
Dear Duncan,

thanks for your response.

Yes it failed in file: \src\lib\omniORB\orbcore\tcp\tcpTransportImpl.cc
line: 626

IN6_IS_ADDR_LINKLOCAL is not available in VC9.

about x64 compiling. My idea is to create 64 bit executeables because we
dont want to run 32bit executeables on a 64 bit machine. As far as i
know, you cant link a mix of 32 and 64bit objects and librarys. And as
example Python is 32bit.

i set the environment to 64bit: with "vcvars.bat amd64"
------------------------------------
Set Environment to x64
Setting environment for using Microsoft Visual Studio 2008 Beta2 x64
cross tools.
------------------------------------

here is now a shorten output of the linker problem:

make[4]: Leaving directory
`g:/Porting/modules/omniORB-4.1.1-x64/src/tool/omniidl/cxx/cccp'
+ rm -f omniidl.exe
+ ../../../../bin/x64_win32/linkwrapper -gnuwin32 -out:omniidl.exe
-nologo -DEBUG -libpath:g:/porting/omniorb-4.1.1/libs
-libpath:g:/porting/omniorb-4.1.1/lib/x
86_win32 -libpath:g:/porting/omniorb-4.1.1/PCbuild -PDB:omniidl.exe.pdb
-libpath:../../../../lib/x64_win32 y.tab.o lex.yy.o idlerr.o idlutil.o
idltype.o idlrepo
Id.o idlscope.o idlexpr.o idlast.o idlvalidate.o idldump.o idlconfig.o
idlfixed.o idlpython.o python15.lib
link -out:omniidl.exe -nologo -DEBUG
-libpath:g:\porting\omniorb-4.1.1\libs
-libpath:g:\porting\omniorb-4.1.1\lib\x86_win32
-libpath:g:\porting\omniorb-4.1.1\PC
build -PDB:omniidl.exe.pdb -libpath:..\..\..\..\lib\x64_win32 y.tab.o
lex.yy.o idlerr.o idlutil.o idltype.o idlrepoId.o idlscope.o idlexpr.o
idlast.o idlvalidat
e.o idldump.o idlconfig.o idlfixed.o idlpython.o python15.lib
Creating library omniidl.lib and object omniidl.exp
idlpython.o : error LNK2019: unresolved external symbol
__imp_PyNumber_Negative referenced in function "struct _object * __cdecl
MyPyLong_FromLongLong(__int64)"
(?MyPyLong_FromLongLong@@YAPEAU_object@@***@Z)
idlpython.o : error LNK2019: unresolved external symbol
__imp_PyLong_FromUnsignedLongLong referenced in function "struct _object
* __cdecl MyPyLong_FromLongLong
(__int64)" (?MyPyLong_FromLongLong@@YAPEAU_object@@***@Z)
idlpython.o : error LNK2019: unresolved external symbol
__imp_PyLong_FromLongLong referenced in function "struct _object *
__cdecl MyPyLong_FromLongLong(__int64
)" (?MyPyLong_FromLongLong@@YAPEAU_object@@***@Z)
idlpython.o : error LNK2019: unresolved external symbol
__imp_PyErr_Print referenced in function "public: __cdecl
PythonVisitor::PythonVisitor(void)" (??0Python
Visitor@@***@XZ)

Cheers Stefan
Post by Duncan Grisby
Post by Stefan Walter
I just finished compiling omniOrb 4.1.1 with VC9 (VS 2008) in 32bit
mode. This just worked because i deactivated IPV6 support.
Did it fail if you kept IPv6 support in? If so, in what way? It should
work.
Post by Stefan Walter
is there any way to compile omniOrb for x64 (Windows 2003 Server)?
It should work fine if you do exactly the same as for 32 bit Windows --
use the x86_win32 platform, even though strictly speaking it's win64.
Cheers,
Duncan.
--
Stefan Walter

Lisec Software - Middle East
P.O.Box 54290
Dubai - U.A.E

Office: +971/4/2994596
Mobile: +971/50/4689689
E-Mail: ***@lisec-sw.com
Barthel, Marco (Marco)
2008-02-07 17:54:17 UTC
Permalink
May be that helps or explains the problem

http://www.omniorb-support.com/pipermail/omniorb-list/2007-October/028954.html

Marco Barthel | Comergo GmbH | Heilbronner Str. 314 | 70469 Stuttgart | Voice +49 711 13586 42 | Fax +49 711 13586 8042 | ***@avaya.com

Sitz der Gesellschaft: Stuttgart
Registergericht: Amtsgericht Stuttgart - HRB 22107
Gesch?ftsf?hrer: Andreas von Meyer zu Knonow, Udo B?hler, Thomas Kreikemeier
-----Original Message-----
Of Stefan Walter
Sent: Wednesday, February 06, 2008 8:54 AM
Subject: [omniORB] omniOrb with VC9 for x64
I just finished compiling omniOrb 4.1.1 with VC9 (VS 2008) in
32bit mode. This just worked because i deactivated IPV6 support.
is there any way to compile omniOrb for x64 (Windows 2003 Server)?
Regards Stefan
_______________________________________________
omniORB-list mailing list
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
Stefan Walter
2008-02-07 18:01:56 UTC
Permalink
Thanks a lot, i will try it and let you know later.

Does someone has any idea or solution to compile omniORB with 64bit (x64)?
Post by Barthel, Marco (Marco)
May be that helps or explains the problem
http://www.omniorb-support.com/pipermail/omniorb-list/2007-October/028954.html
Sitz der Gesellschaft: Stuttgart
Registergericht: Amtsgericht Stuttgart - HRB 22107
Gesch?ftsf?hrer: Andreas von Meyer zu Knonow, Udo B?hler, Thomas Kreikemeier
-----Original Message-----
Of Stefan Walter
Sent: Wednesday, February 06, 2008 8:54 AM
Subject: [omniORB] omniOrb with VC9 for x64
I just finished compiling omniOrb 4.1.1 with VC9 (VS 2008) in
32bit mode. This just worked because i deactivated IPV6 support.
is there any way to compile omniOrb for x64 (Windows 2003 Server)?
Regards Stefan
_______________________________________________
omniORB-list mailing list
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
--
Stefan Walter

Lisec Software - Middle East
P.O.Box 54290
Dubai - U.A.E

Office: +971/4/2994596
Mobile: +971/50/4689689
E-Mail: ***@lisec-sw.com
Igor Lautar
2008-02-07 18:12:45 UTC
Permalink
Hi Stefan,

These are our instructions on how to compile it, adapted from 4.0.7 for 4.1.1. Maybe we do something wrong etc., but it works for us just fine.

Nope it helps, but we haven't tried it with VS9 though.

Regards,
Igor

===========================
Homepage:
http://omniorb.sourceforge.net/

WINDOWS x64 (MS VisualStudio 2005):

1 * Copy omniORB-4.1.1.tar.gz to a directory and extract it.
* Open the cmd shell where you will compile omniORB.

2 * Install(/build) Python for x64 (ex. c:\python24)
* Issue the command
PATH=C:\Python24

3 * Install cygwin (ex. c:\cygwin). Make shure you have installed make.exe from develop suite.
* Issue the command
PATH=%PATH%C:\cygwin\bin
to add the cygwin utilties to your path.

4 * Install openSSL library (x64) to a directory (ex. c:\openSSL), in the lib subdir copy libeay32.lib, ssleay32.lib from the dynamic subdir.

5 * Execute "Program Files (x86)\Microsoft VisualStudio\vc\vcvarsall.bat x64"

6 * CD to extracted omniORB, open config\config.mk, uncomment line platform = x86_win32_vs_8
* Open mk\platforms\x86_win32_vs_8.mk, uncomment line #PYTHON = /cygdrive/c/Python24/python (or change it)
* Uncomment line #OPEN_SSL_ROOT = /cygdrive/c/openssl (or change it)

7 * Copy python24.dll and the Lib directory to bin\x86_win32

8 * Change to directory src and execute
make export

WINDOWS x32 (MS VisualStudio 2005):
Same steps as for x64:
1
2 - use python for x32
3 - instead of cygwin, you can use:
* Install gnu-win32-lite.zip into C:\gnuwin32
* Issue the command
PATH=C:\gnuwin32\bin;%PATH%
to add the GNU utilties to your path.
* Execute
C:\gnuwin32\bin\checkmounts C:\gnuwin32
to mount the directory.
4 - use openSSL for x32
5 - use just vcvarsall.bat without parameter
6
7
8


Distribution

Binaries are located in bin\x86_win32. You may skip *_rtd.dll files.
Furthermore the idl compiler omniidl.exe needs the directory structures omniidl and omniidl_be located
in lib\python. Just copy these two trees into the bin directory where you place
omniORB but skip all .pyc files. They are generated from .py files and therefore not needed.

For the idl compiler to work standalone (without the installed Python) you need the following
files from the Python distribution. Just copy these file to the bin directory.
Do not forget to add python24.dll.

copy_reg.py
getopt.py
ntpath.py
os.py
re.py
site.py
sre.py
sre_compile.py
sre_constants.py
sre_parse.py
stat.py
string.py
types.py
UserDict.py

Last but not least you need static libraries. They can be found in lib\x86_win32.
You need the following libraries.

COS4.lib
msvcstub.lib
omniCodeSets4.lib
omniORB4.lib
omnithread.lib
omniDynamic4.lib
COSDynamic4.lib

Include Files:
Take all files from directory include.


Troubleshooting
1 * In case of: make[3]: *** No rule to make target `//c/python22/include/Python.h', needed by `idlpython.d'. Stop.
* Run 'rm tool/omniidl/cxx/*.d' to fix it. You'll run into this every time you rebuild omniorb.

2 * Problems with linking, make shure that link.exe from cygwin doesn't come before MS VS link.exe in the environment var PATH.
Post by Stefan Walter
Thanks a lot, i will try it and let you know later.
Does someone has any idea or solution to compile omniORB with 64bit (x64)?
Post by Barthel, Marco (Marco)
May be that helps or explains the problem
http://www.omniorb-support.com/pipermail/omniorb-list/2007-October/028954.html
Marco Barthel | Comergo GmbH | Heilbronner Str. 314 | 70469
Stuttgart | Voice +49 711 13586 42 | Fax +49 711 13586 8042 |
Sitz der Gesellschaft: Stuttgart
Registergericht: Amtsgericht Stuttgart - HRB 22107
Gesch?ftsf?hrer: Andreas von Meyer zu Knonow, Udo B?hler, Thomas Kreikemeier
-----Original Message-----
Of Stefan Walter
Sent: Wednesday, February 06, 2008 8:54 AM
Subject: [omniORB] omniOrb with VC9 for x64
I just finished compiling omniOrb 4.1.1 with VC9 (VS 2008) in
32bit mode. This just worked because i deactivated IPV6 support.
is there any way to compile omniOrb for x64 (Windows 2003 Server)?
Regards Stefan
_______________________________________________
omniORB-list mailing list
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
Loading...