From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 17 14:51:56 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD22B16A4B3 for ; Fri, 17 Oct 2003 14:51:56 -0700 (PDT) Received: from mail.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1CA443F85 for ; Fri, 17 Oct 2003 14:51:55 -0700 (PDT) (envelope-from AdilK@sandvine.com) Received: by mail.sandvine.com with Internet Mail Service (5.5.2653.19) id <4CQ6NM9Q>; Fri, 17 Oct 2003 17:51:55 -0400 Message-ID: From: Adil Katchi To: "'freebsd-hackers@freebsd.org'" Date: Fri, 17 Oct 2003 17:51:54 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Subject: building sshd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2003 21:51:56 -0000 I'm trying to build sshd from src/crypto/openssh and I'm having problems. I've only modified auth2.c. I've followed the FREEBSD-upgrade instructions. So, this is what I've done: 1. autoconf // to generate the configure file 2. autoheader // got a bunch of warnings but no errors 3. ./configure --with-pam --with-s-key // PAM was configured, but S/Key wasn't.. dunno why yet 4. make sshd // below are the errors I got after a bunch of warnings sshd.o: In function `sshd_exchange_identification': /d2/akatchi/src/crypto/openssh/sshd.c:376: undefined reference to `ssh_version_g et' sshd.o: In function `usage': /d2/akatchi/src/crypto/openssh/sshd.c:768: undefined reference to `ssh_version_g et' sshd.o: In function `main': /d2/akatchi/src/crypto/openssh/sshd.c:1582: undefined reference to `ssh_version_ get' auth1.o: In function `do_authloop': /d2/akatchi/src/crypto/openssh/auth1.c:121: undefined reference to `abandon_chal lenge_response' auth2-chall.o: In function `privsep_challenge_enable': /d2/akatchi/src/crypto/openssh/auth2-chall.c(.text+0x765): undefined reference t o `mm_pam_device' auth2-chall.o: In function `kbdint_alloc': /d2/akatchi/src/crypto/openssh/auth2-chall.c:78: undefined reference to `pam_dev ice' servconf.o: In function `process_server_config_line': /d2/akatchi/src/crypto/openssh/servconf.c:921: undefined reference to `ssh_versi on_set_addendum' monitor.o: In function `mm_answer_pam_init_ctx': /d2/akatchi/src/crypto/openssh/monitor.c(.text+0xb01): undefined reference to `p am_device' monitor.o: In function `mm_answer_pam_query': /d2/akatchi/src/crypto/openssh/monitor.c(.text+0xbb9): undefined reference to `p am_device' monitor.o: In function `mm_answer_pam_respond': /d2/akatchi/src/crypto/openssh/monitor.c(.text+0xd25): undefined reference to `p am_device' /d2/akatchi/src/crypto/openssh/monitor.c(.text+0xd66): undefined reference to `p am_device' monitor.o: In function `mm_answer_pam_free_ctx': /d2/akatchi/src/crypto/openssh/monitor.c(.text+0xdf2): undefined reference to `p am_device' *** Error code 1 Below is the diffed auth2.c in case anyone wants to try compiling this for themselves. $ diff auth2.c auth2_old.c 173c173 < PRIVSEP(start_pam(user)); --- > PRIVSEP(start_pam("NOUSER")); Any ideas?? Thanks, Adil