Menu

Compile error on Ubuntu?

2009-10-27
2013-04-29
  • Daniel Risacher

    Daniel Risacher - 2009-10-27

    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>

     
  • Daniel Risacher

    Daniel Risacher - 2009-10-27

    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

     
  • Daniel Risacher

    Daniel Risacher - 2009-10-27

    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.

     
  • jbeverly

    jbeverly - 2009-10-27

    Try the svn trunk here, and let me know if it works.

    svn co https://pamsshagentauth.svn.sourceforge.net/svnroot/pamsshagentauth pamsshagentauth

    Thanks

     

Log in to post a comment.