[krbdev.mit.edu #8043] Re: [krb5] Unable to build under Windows (#235)

Bratislav Stojanovic via RT rt-comment at krbdev.mit.edu
Tue Nov 25 08:49:00 EST 2014


Hi Ben,

Thanks for answering, but I'm still completely clueless. This time I've
wiped out VS2013 and installed VS2010 (Ultimate) and tried
again - still the same.

When I switched from ActivePerl to Strawberry, I got slightly different
error code :

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        copy/b nul:+ win-mac.h autoconf.h
nul
win-mac.h
        1 file(s) copied.
        copy/b nul:+ osconf.hin osconf.h
nul
osconf.hin
        1 file(s) copied.
        copy /y krb5\krb5.h+k5-int.h+krb5\clpreauth_plugin.h
private-and-public-
decls
krb5\krb5.h
k5-int.h
krb5\clpreauth_plugin.h
        1 file(s) copied.
        perl -w .\../util/def-check.pl private-and-public-decls
.\../lib/krb5_32.def
*_error_table'* at .\../util/def-check.pl line 175, <GEN0> line 8448.
*NMAKE : fatal error U1077: 'C:\Strawberry\perl\bin\perl.EXE' : return code
'0x19'*
Stop.
NMAKE : fatal error U1077: 'for' : return code '0x1'
Stop.

*awk *- I've renamed awk script from the Windows\SUA\bin into awk.exe and
copied into C:\awk (available in PATH).
When I run awk from SDK 7.1 command prompt, it seems everything is fine :

c:\Users\User\Downloads\krb5\src>awk
Usage: awk [-f programfile | 'program'] [-Ffieldsep] [-v var=value] [files]

*procedure* - Here's the complete procedure I'm using :

- installed VS2010 Ultimate
- installed SDK 7.1
- installed latest updates from Windows Update
- installed the latest subsystem for UNIX-based apps for Windows 7 (hmm,
instructions at
http://k5wiki.kerberos.org/wiki/Kerberos_for_Windows_%28KfW%29_Build_Environment
have different version targeting Vista?)
- installed WiX 3.5 using the installer (not binary package)
- updated PATH so candle.exe is available

*candle.exe* - also works from cmd prompt :

c:\Users\User\Downloads\krb5\src>candle.exe --help
Microsoft (R) Windows Installer Xml Compiler version 3.5.2519.0
Copyright (C) Microsoft Corporation. All rights reserved.

 usage:  candle.exe [-?] [-nologo] [-out outputFile] sourceFile [sourceFile
...]
 [@responseFile]

   -arch      set platform defaults for package, components, etc.
              values: x86, x64, or ia64 (default: x86)
...

*source code* - tried both master and kfw-4.0.1-final branches (which one
should I use?). Result is the same.

*vs cmd prompt* - tried to use VS command prompt instead of SDK 7.1 cmd -
again the same error

>From the error it looks like I'm missing something as *def-check.pl
<http://def-check.pl>* script fails to find *_error_table*, but have
no clue why (where should I get *_error_table* from?).

Please help.


On Mon, Nov 24, 2014 at 7:10 PM, kaduk <notifications at github.com> wrote:

> I'm going to close this github issue, since we are using a mixed workflow
> which only uses github pull requests, and keeps bug/issue tracking on our
> RT instance at krbdev.mit.edu. Please follow-up with mail to
> krb5-bugs at mit.edu.
>
> That said, I believe the current git master (6649798
> <https://github.com/krb5/krb5/commit/66497980e56b9c8bb5c94979d48f32ef69354c85>)
> is buildable on windows, at least on my test system which is running
> Windows 7 Enterprise and using Visual Studio 2010. Perhaps I should have a
> test system with Visual Studio 2013 around just on general principles; I'll
> see if I can work on that.
>
> The first thing that comes to mind as a potential issue is the
> availability of 'awk', though I don't remember its absence presenting in
> this fashion. In the command prompt from which you're running nmake, can
> you successfully run awk (just 'awk' should print a usage message)?
>
> If that works as expected, can you send the full list of what you did for
> each of the steps 1 through 6 in your email? I am also slightly curious
> what the error message looks like when Strawberry Perl is used, though I
> agree with you that the perl is unlikely to actually be the culprit.
>
> -Ben
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/krb5/krb5/issues/235#issuecomment-64236871>.
>



-- 
Bratislav Stojanovic, M.Sc.



More information about the krb5-bugs mailing list