RE: building sshd

2003-10-20 Thread Adil Katchi
Has anyone tried making sshd?  I ran src/secure/usr.sbin/sshd/Makefile and
this is the error I got:

auth1.o: In function `do_authloop':
/d2/akatchi/src/secure/usr.sbin/sshd/../../../crypto/openssh/auth1.c:121:
undefi
ned reference to `abandon_challenge_response'
*** Error code 1

Thanks,

Adil

-Original Message-
From: Mark Murray [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 18, 2003 3:39 PM
To: Adil Katchi
Cc: '[EMAIL PROTECTED]'
Subject: Re: building sshd 


Adil Katchi writes:
 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

No.

That is NOT how its built.

Look at src/secure/*/*ssh*/Makefile

M
--
Mark Murray
iumop ap!sdn w,I idlaH
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: building sshd

2003-10-20 Thread Kris Kennaway
On Mon, Oct 20, 2003 at 12:51:17PM -0400, Adil Katchi wrote:
 Has anyone tried making sshd?  I ran src/secure/usr.sbin/sshd/Makefile and
 this is the error I got:
 
 auth1.o: In function `do_authloop':
 /d2/akatchi/src/secure/usr.sbin/sshd/../../../crypto/openssh/auth1.c:121:
 undefi
 ned reference to `abandon_challenge_response'
 *** Error code 1

Just do a 'make buildworld' if you can't get it to work piecewise.
There's probably something else that needs to be built first, like
libssh.

Kris


pgp0.pgp
Description: PGP signature


Re: building sshd

2003-10-18 Thread Mark Murray
Adil Katchi writes:
 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

No.

That is NOT how its built.

Look at src/secure/*/*ssh*/Makefile

M
--
Mark Murray
iumop ap!sdn w,I idlaH
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


building sshd

2003-10-17 Thread Adil Katchi
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
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: building sshd

2003-10-17 Thread Kris Kennaway
On Fri, Oct 17, 2003 at 05:51:54PM -0400, Adil Katchi wrote:
 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.

Those aren't the instructions to build the code, they're instructions
to the developers on how to import a new version.

sshd is built as part of 'make buildworld'.  Read the documentation in
the handbook on how to safely rebuild your source tree.

Kris


pgp0.pgp
Description: PGP signature


Re: building sshd

2003-10-17 Thread Tim Kientzle
Adil Katchi wrote:
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.
I think what you want is more like:

 cd /usr/src/secure/usr.sbin/sshd  make  make install

(You might need to do a full buildworld first.)

Don't be confused by any extra Makefiles you might see floating around:

   * the openssh source code is in /usr/src/crypto/openssh
   * the build harness for sshd is in /usr/src/secure/usr.sbin/sshd
The separation helps to address problems with updating OpenSSH
(which is, after all, being maintained by someone else) and makes
it easier to satisfy various cryptography laws.
Tim Kientzle

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]