[omniORB] build fails on cygwin with g++
Jari Lappalainen
jari.lappalainen at iki.fi
Thu Dec 30 10:32:34 GMT 2004
I'm building omniORB-4.0.5 on cygwin with g++. The build fails.
The same failure occurs with omniORB-4.0.3. with OmniORB/Cygwin patch
at
http://www.omniorb-support.com/pipermail/omniorb-list/2003-December/024759.html
--build message begins--
make[3]: Entering directory `/src/omniORB-4.0.5/build/src/lib/omniORB'
+ ../../../../bin/scripts/omkdirhier omniORB4
/usr/bin/python ../../../../bin/scripts/distdate.py
<../../../../update.log >omn
iORB4/distdate.hh
../../../bin/omniidl -bcxx -Wba -p../../../../src/lib/omniORB -Wbdebug
-v -Comni
ORB4 ../../../../idl/Naming.idl
omniidl: ERROR!
omniidl: Could not open IDL compiler module _omniidlmodule.so
omniidl: Please make sure it is in directory
/src/corbautils/omni_cygwin/omniORB
-4.0.5/build/lib
omniidl: (or set the PYTHONPATH environment variable)
omniidl: (The error was 'dlopen, Win32 error 193')
make[3]: *** [omniORB4/Naming.hh] Error 1
make[3]: Leaving directory
`/src/corbautils/omni_cygwin/omniORB-4.0.5/build/src/
lib/omniORB'
make[2]: *** [export] Error 2
make[2]: Leaving directory
`/src/corbautils/omni_cygwin/omniORB-4.0.5/build/src/
lib'
make[1]: *** [export] Error 2
make[1]: Leaving directory
`/src/corbautils/omni_cygwin/omniORB-4.0.5/build/src'
make: *** [all] Error 2
--build message ends--
This error report suggests file location (of _omniidlmodule.so) is wrong or
an environment variable is wrong (PYTHONPATH). The Win32 error 193 suggests
executable file is of wrong type.
First of all, there is no _omniidlmoduile.so. However, there are two
(unidentical) files
by the name _omniidlmodule.dll.
They are not in the right directory (omniORB-4.0.5/build/lib), but in
omniORB-4.0.5/build/bin
and omniORB-4.0.5/build/src/tool/omniidl/cxx.
Changing the name or the location of these files does not help.
The module _omniidlmodule.dll seems to have been built with
g++ -shared
-Wl,-soname=_omniidlmodule.dll.1,--export-dynamic,--enable-auto-im
port -o _omniidlmodule.dll.1.0 -L../../../../lib -L../../../../../lib
y.tab.o le
x.yy.o idlerr.o idlutil.o idltype.o idlrepoId.o idlscope.o idlexpr.o
idlast.o id
lvalidate.o idldump.o idlconfig.o idlfixed.o idlpython.o
-L/usr/lib/python2.4/co
nfig -lpython2.4.dll
I executed the omniorb configure script without any options and it had
no error messages.
My gcc is 3.3.3.
Previous messages on this list (like the one referenced above) indicate
others have been able
to build with cygwin/g++ combination. If you have any suggestions, I'd
appreciate it.
Jari Lappalainen
More information about the omniORB-list
mailing list