[omniORB] [PATCH] Compilation of moniORB-4.0.3 using recentmingwtools.

Wolfgang Glas wolfgang.glas at ev-i.at
Tue Jul 27 16:57:13 BST 2004


Am Dienstag, 27. Juli 2004 11:49 schrieb Al Slater:
> omniorb-list-bounces at omniorb-support.com wrote:
> > Am Dienstag, 20. Juli 2004 15:46 schrieb Al Slater:
> >> omniorb-list-bounces at omniorb-support.com wrote:
> >>> On Sunday 13 June, Wolfgang Glas wrote:
> >>>>   I' ve worked out a patch, which adapts omniORB's build system for
> >>>> use with recent mingw tools.
> >>>
> >>> Thanks. I've checked the changes in.
> >>>
> >>> Cheers,
> >>>
> >>> Duncan.
> >>
> >> Is the patch complete?  I have tried building the latest CVS with
> >> msys and received the following error(s).
> >>
> >> $ make
> >> making export in ./src...
> >> make[1]: Entering directory `/home/aslate/omnicvs/omni/src' making
> >> export in src/tool... make[2]: Entering directory
> >> `/home/aslate/omnicvs/omni/src/tool' making export in
> >> src/tool/omkdepend...
> >> make[3]: Entering directory
> >> `/home/aslate/omnicvs/omni/src/tool/omkdepend'
> >> + rm -f omkdepend
> >> + gcc -o omkdepend -O -L../../../lib -L../../../lib include.o main.o
> >> parse.o pr.o cppsetup.o ifparser.o
> >> main.o(.text+0xa2):main.c: undefined reference to `GetMounts'
> >> main.o(.text+0xb7):main.c: undefined reference to `GetMounts'
> >> main.o(.text+0x2e6):main.c: undefined reference to
> >> `TranslateFileNameU2D'
> >> main.o(.text+0x3eb):main.c: undefined reference to
> >> `TranslateFileNameU2D'
> >> pr.o(.text+0x1b4):pr.c: undefined reference to `TranslateFileNameD2U'
> >> make[3]: *** [omkdepend] Error 1
> >> make[3]: Leaving directory
> >> `/home/aslate/omnicvs/omni/src/tool/omkdepend'
> >> make[2]: *** [export] Error 1
> >> make[2]: Leaving directory `/home/aslate/omnicvs/omni/src/tool'
> >> make[1]: *** [export] Error 1 make[1]: Leaving directory
> >> `/home/aslate/omnicvs/omni/src'
> >> make: *** [all] Error 1
> >
> > Hmmm, looks like you don't have Win32Platform defined in
> > omni/src/tool/dir.mk
> >
> > Did you correctly set
> >
> > platform = x86_nt_4.0_mingw
> >
> > in config.mk ?
> >
> >    Wolfgang
>
> Platform is set to x86_nt_4.0_mingw in config.mk
>
> It looks like I need a "include $(TOP)/config/config.mk" in various
> GNUmakefile files because config.mk is never being included.
>
> Which version of python are you using?  Is it a MSYS version installed
> within the msys tree?

I use the omnipython-x86_win32.zip package as provided by omniORB.

My patch contains the following hunk for python 1.5 as provided by this 
package:

--- ./include/python1.5/config.h.orig   2000-07-11 13:19:13.000000000 +0200
+++ ./include/python1.5/config.h        2004-06-11 14:19:18.000000000 +0200
@@ -1027,7 +1027,7 @@

 /* Microsoft C defines _MSC_VER */

-#if defined(_MSC_VER) && _MSC_VER > 850
+#if ( defined( _MSC_VER) && _MSC_VER > 850 ) || defined(__MINGW32__)
 /* Start of defines for MS_WIN32 using VC++ 2.0 and up */
 #define NT     /* NT is obsolete - please use MS_WIN32 instead */
 #define MS_WIN32

 Regards,

  Wolfgang



More information about the omniORB-list mailing list