[omniORB] old question about cygwin

Slava Garelin garelin@ukr.net
Tue Dec 3 18:02:02 2002


--------------Boundary-00=_W42K4NY62KCKRMH3TAVY
Content-Type: text/plain;
  charset="koi8-r"
Content-Transfer-Encoding: 8bit

28 Ноябрь 2002 17:32, Jeffrey Yu написал:
> Duncan,
>
> I heard many times people can use cygwin to compile the source code.
> However, I keep getting the same error each time when I try it.
>
> Here is the more detail description of what happened and hope you can
> help me out:
>
> 1.	the platform is win2k, vc6.0 sp3
> 2.	I downloaded the latest cygwin off www.cygwin.com
> <http://www.cygwin.com/>
> 3.	the source code I attempt to compile is version 3.04;
>
> after I install cygwin, I change omni/config/config.mk, and the one
> inside of the mk/platform directory;
> then in omni/src, I did "make export",
>
> shortly after that, here is the error message I captured:

----------------- Cut ----------------------

> make[3]: *** [export] Error 2
> make[3]: Leaving directory `/cygdrive/c/omni/src/tool/omniidl/cxx'
> make[2]: *** [export] Error 2
> make[2]: Leaving directory `/cygdrive/c/omni/src/tool/omniidl'
> make[1]: *** [export] Error 2
> make[1]: Leaving directory `/cygdrive/c/omni/src/tool'
> make: *** [export] Error 2
>
>
> The cause of this problem could be very innocent.  Hope you can help me
> to resolve this.
>
> By the way, I have no problem to compile the same source code using the
> "minimized version" of cygwin downloaded from at&t's website.   As it
> works with the stripped down version, it should work with the full
> version as well.
>
> Thanks,
> Jeff

It a little bug in omkdepend.exe
You may patch source file (/src/tool/omkdepend/gnuwin32.c), recompile that 
tool and type make redepend in /src dir. After that you can work with make 
tree as usual. If you can't recompile, mail to me, and I send to you 
omkdepend.exe (to avoid trashing mail-archive).

-- 
Slava Garelin

P.S Sorry for bad figuration code.
--------------Boundary-00=_W42K4NY62KCKRMH3TAVY
Content-Type: text/x-diff;
  charset="koi8-r";
  name="gnuwin32.c.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gnuwin32.c.patch"

LS0tIGdudXdpbjMyLmMJVHVlIFNlcCAyNCAxMTozNDowMyAyMDAyCisrKyBnbnV3aW4zMi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Moc3RybGVuKG91dCkgKyBzdHJsZW4oY2gpKTsgCisg
ICAgCisKKyAgICBzdHJjcHkobmV3b3V0LGNoKTsKKyAgICAKKyAgICBuZXdvdXRbMTBdID0gb3V0
WzBdOworICAgIG5ld291dFsxMV0gPSAnXDAnOwogICAgIHN0cmNhdChuZXdvdXQsb3V0KzIpOwor
IAogICAgIG91dCA9IG5ld291dDsKKworIAogICB9CiAgIGZyZWUodG1wKTsKQEAgLTEwMCw0ICsx
MjIsNSBAQAogdm9pZCBHZXRNb3VudHMoaW50IGdudXdpbikKIHsKKyAgcHJpbnRmKCJHZXRNb3Vu
dHM6IGdudXdpbiA9ICVpIFxuIixnbnV3aW4pOwogICBpZiAoZ251d2luKSB7CiAgICAgaWYgKCFH
ZXRDeWd3aW5Nb3VudHMoKSkKQEAgLTE5NCw0ICsyMTcsNyBAQAogICAgIGNoYXIqICAgICAgIGRy
dnByZWZpeDsKIAorICAgIAorCisKICAgICBpZiAoUmVnT3BlbktleUV4IChIS0VZX0NVUlJFTlRf
VVNFUiwga2V5LCAwLCBLRVlfUkVBRCwgJmhrZXkpCiAJIT0gRVJST1JfU1VDQ0VTUykKQEAgLTI2
MCw1ICsyODYsNiBAQAogCW5tb3VudHMrKzsKICAgICB9Ci0gICAgcmV0dXJuIDE7CisgICAKKyAg
IHJldHVybiAxOwogfQogCg==

--------------Boundary-00=_W42K4NY62KCKRMH3TAVY--