[PolyORB-users] polyorb-gpl-2007 bug (not install in windows under msys/cygwin)

Andry Ogorodnik admin at med.km.ua
Sat Sep 22 11:58:54 CEST 2007


Hello,
My English is very bad, bat may be you will understand me.

Detected 2 bugs in idlac.exe
1) when compiling in msys(cygwin) path look like /c/polyorb/... but in
idl_fe-files.adb  function Locate_IDL_File check directory by

Separator :=
  Index (File_Name, To_Set (Directory_Separator), Inside, Backward);

and don’t find windows directory separator in given string, so do not check

if Is_Regular_File (File_Name) then
            return File_Name;

result - given "correct" (in term of msys) path with filename not
work

2) in mingw-5.x g++ (-> cc1plus.exe) do not understand path with
directory separator in last character, so next code

if Path (Path'Last) = Dir_Separator then
  Search_Path.Append (new String'(Path));
else
  Search_Path.Append (new String'(Path & Dir_Separator));
end if;

do not create "correct" path for mingw-5.x g++

I wrote patch and successfully compile polyorb-gpl-2007 under msys (see
attach).

After patching idlac, correct Makefile from
# Command used to run idlac:
idlac := ${IDLAC_WRAPPER} -v --idlac="${top_builddir}/${IDLAC_bin}" ${idlac_include_flags}

to
# Command used to run idlac:
idlac := ${IDLAC_WRAPPER} -v --idlac="${top_builddir}/${IDLAC_bin}" -mingw ${idlac_include_flags}

I do not write patch for Makefile.  

-- 
Best regards,
 Andry Ogorodnik                         mailto:admin at med.km.ua




More information about the PolyORB-users mailing list