cuviper / ssh-pageant

An SSH authentication agent for Cygwin/MSYS to PuTTY's Pageant.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ssh-pageant does not compile under Cygwin 1.7.10 - missing process.h?

edmundcraske opened this issue · comments

On a Windows 7 64bit system running Cygwin 1.7.10 I am unable to compile ssh-pageant by following the instructions in INSTALL.

I'm not particularly hot on programming or Cygwin but looking at the contents of the Cygwin packages I can see that process.h was present in 1.7.9 but is not present in 1.7.10:
http://cygwin.com/packages/cygwin/cygwin-1.7.9-1
http://cygwin.com/packages/cygwin/cygwin-1.7.10-1

$ make
cc -O2 -Werror -Wall -Wextra -MMD   -c -o main.o main.c
main.c:14:21: process.h: No such file or directory
main.c: In function `main':
main.c:335: warning: implicit declaration of function `spawnvp'
main.c:335: error: `_P_NOWAIT' undeclared (first use in this function)
main.c:335: error: (Each undeclared identifier is reported only once
main.c:335: error: for each function it appears in.)
<builtin>: recipe for target `main.o' failed
make: *** [main.o] Error 1

Hmm, it wasn't removed entirely, just moved to cygwin/process.h.

But before I commit a change to ssh-pageant to adapt, it looks like they're putting it back:
http://cygwin.com/ml/cygwin/2012-02/msg00141.html

In the meantime, you can either patch ssh-pageant main.c to #include <cygwin/process.h>, or copy or link the file from /usr/include/cygwin/process.h to /usr/include/process.h.

Today's Cygwin snapshot shows the location of process.h has been restored to /usr/include/, so nothing needs to be done in ssh-pageant going forward.
http://cygwin.com/snapshots/cygwin-inst-20120209.tar