krb5 1.3.1 and openssh on cygwin

King Lung Chiu csklc at farrer.hpc.csiro.au
Tue Feb 3 18:02:31 EST 2004


Hi Chas,

thanks for the reply.

> i was able to build krb under cygwin at one point.  it wasnt difficult.
> most of the problem was fixing some header files that were too concerned
> about windows specific includes when building on a 'windows' platform.
> i will see if can dig up my diffs.

Actually, I was able to build krb quite easily with no modificatin to the 
source (krb5 1.3.1). The only change I made was to install openssl-devel 
package so I can configure with '--with-system-db'.

But yes, when I'm building openssh with krb5, I'm getting problems where 
gssapi.h (and other associated .h's) think 
they're on windows ('#if defined(_WIN32)' is true) although the windows 
related .h (win_mac.h) wasn't installed by krb's 'make install' because 
Makefile thinks it's on Unix ('WHAT' == unix in 'Makefile').

After I copy win_mac.h manually from the krb src to the krb 
installation location, I seem to get past that problem, but then I get 
function undefined errors, like:

 --openssh's make:
 ...
 gcc -o ssh.exe ssh.o readconf.o clientloop.o sshtty.o sshconnect.o 
 sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/  
 -L/usr/local/krb5-1.3.1//lib -lssh -lopenbsd-compat -lz  
 /usr/lib/textmode.o -lcrypto -lcrypt -lgssapi_krb5 -lkrb5 -lk5crypto 
 -lcom_err
 sshconnect2.o(.text+0x12a3): In function `userauth_gssapi':
 /dist/openssh-3.7.1p2/cygwin/../sshconnect2.c:481: undefined reference to 
 `_gss_indicate_mechs at 8'
 sshconnect2.o(.text+0x14e2): In function `input_gssapi_response':
 /dist/openssh-3.7.1p2/cygwin/../sshconnect2.c:577: undefined reference to 
 `_gss_release_buffer at 8'
 ...

So I will try fixing the windows header files like you mentioned and see 
if that fixes the problem.

cheers

King Lung Chiu




More information about the Kerberos mailing list