So, further investigation reveals that the configure script is failing to detect that the system supports openpty(). Since the openbsd-compat subdirectory appear to be taken from portable openssh, I downloaded a current version of that and it's configure script *does* correctly detect openpty().
Perhaps a newer version of autoconf needs to be run? It's been too long since I've gotten autoconf to work that I went to bed before I figured it out.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hmm… Trying to build on Ubuntu (8.10/intrepid). Any thoughts on the following: ?
<pre>
root@luxury:~/pam_ssh_agent_auth-0.9# make
(cd openbsd-compat && make)
make: Entering directory `/home/magnus/pam_ssh_agent_auth-0.9/openbsd-compat'
gcc -g -O2 -fPIC -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wno-pointer-sign -fstack-protector-all -I. -I.. -I. -I./.. -DHAVE_CONFIG_H -c bsd-openpty.c
In file included from bsd-openpty.c:58:
/usr/include/pty.h:34: error: conflicting types for ‘openpty’
../openbsd-compat/openbsd-compat.h:160: error: previous declaration of ‘openpty’ was here
make: *** Error 1
make: Leaving directory `/home/magnus/pam_ssh_agent_auth-0.9/openbsd-compat'
make: *** Error 2
</pre>
Drat. It looked okay in the preview, but formating is still goofy.
Try #2.
root@luxury:~/pam_ssh_agent_auth-0.9# make
(cd openbsd-compat && make)
make: Entering directory `/home/magnus/pam_ssh_agent_auth-0.9/openbsd-compat'
gcc -g -O2 -fPIC -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wno-pointer-sign -fstack-protector-all -I. -I.. -I. -I./.. -DHAVE_CONFIG_H -c bsd-openpty.c
In file included from bsd-openpty.c:58:
/usr/include/pty.h:34: error: conflicting types for ‘openpty’
../openbsd-compat/openbsd-compat.h:160: error: previous declaration of ‘openpty’ was here
make: *** Error 1
make: Leaving directory `/home/magnus/pam_ssh_agent_auth-0.9/openbsd-compat'
make: *** Error 2
So, further investigation reveals that the configure script is failing to detect that the system supports openpty(). Since the openbsd-compat subdirectory appear to be taken from portable openssh, I downloaded a current version of that and it's configure script *does* correctly detect openpty().
Perhaps a newer version of autoconf needs to be run? It's been too long since I've gotten autoconf to work that I went to bed before I figured it out.
Try the svn trunk here, and let me know if it works.
svn co https://pamsshagentauth.svn.sourceforge.net/svnroot/pamsshagentauth pamsshagentauth
Thanks