Issue 65083 - oowintool issues confusing output
Summary: oowintool issues confusing output
Status: CONFIRMED
Alias: None
Product: Build Tools
Classification: Code
Component: configure (show other issues)
Version: current
Hardware: All Windows, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-04 14:38 UTC by quetschke
Modified: 2013-09-12 15:21 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description quetschke 2006-05-04 14:38:34 UTC
in the sense that the average windoze user will see something like this:

...
checking for dbghelp.dll... found
Can't find MS Visual Studio / VC++ at ./oowintool line 173.
checking for msvcp71.dll/msvcr71.dll... found
Can't find MS Visual Studio / VC++ at ./oowintool line 173.
...

and end up completely helpless ;)

I call configure like this:

$ ./configure --with-cl-home="/cygdrive/k/MSVS2003/Vc7"
--with-csc-path=/cygdrive/c/WINDOWS/Microsoft.NET/Framework/v1.1.4322
--with-jdk-home="/cygdrive/c/j2sdk1.4.2_10"
--with-ant-home=/cygdrive/c/apache-ant-1.6.5

and the compiler comes obviously from a network resource, no registry entry.
Comment 1 pavel 2006-08-22 09:50:36 UTC
Is target 2.0.4 really needed here?
Comment 2 mmeeks 2006-08-22 10:04:31 UTC
Tor - did you look at this ? should be a doddle to fix - right ?
Comment 3 tml 2006-08-22 10:21:00 UTC
Eh, no? I don't see any easy way how to fix this. Should we add "only local
installations of MS Visual Studio are supported" to the error message?
Comment 4 mmeeks 2006-08-22 10:53:01 UTC
Well - surely, since the paths are specified and the pieces found anyway - could
we not check them first, and not fork oowintool if the stuff is found already ?
Comment 5 tml 2006-08-22 12:13:36 UTC
I don't think it's that trivial. The invocation of oowintool --msvc-productdir
in configure.in is already conditional and not done if --with-cl-home has been
entered.

As the output snippet in the Description has the oowintool error message after
"checking for dbghelp.dll", I assume it's the oowintool --msvc-copy-dlls
invocation that produces the first error message. The code for that in oowintool
needs to know the version of the installed MSVC, and has mapping from version
numbers to the version number as it occurs in the C library DLL name. Deducing
that from just running cl requires more mappings, from the blurb output by cl
("Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86")
to "70" for instance.

Etc.
Comment 6 quetschke 2006-08-22 14:58:45 UTC
Your code relies on the registry keys, so short of introducing an few extra
enviroment variables to hold the compiler information, I would say just change
the abort message to something like:

  "Compiler location not found, relying on configure"

or so and don't use die(), use exit() so that we don't get the ugly perl debug
info.
Comment 7 Martin Hollmichel 2006-08-28 13:43:14 UTC
reset target to 2.1
Comment 8 pavel 2006-11-10 08:19:37 UTC
DevTools target. Not product related, but build-time related.
Comment 9 quetschke 2006-11-10 15:09:08 UTC
Still annoying ...