Openssh 5.5p1 and 5.6p1 SCO OpenServer 5.0.7 I've built various versions of openssh on SCO OSR5.0.7 over the years without much of a problem. Beginning with 5.5p1 however, I have been unable to get a working install. I'm building with gcc 2.95.3. The build completes normally, but 'make tests' fails on several tests: sftp-cmds.sh failures (get command fails on both): - get filename with spaces - get filename with glob metacharacters sftp-batch.sh failures: - bad commands sftp-glob.sh failures: - file glob - escaped space - quoted space cert-hostkey.sh and cert-userkey.sh failures: - ssh-keygen seems to generate the keys, but is unable to sign them, and when attempting to do so, complains: debug3: Not a RSA1 key file /u/home/rac/src/openssh/openssh-5.6p1/regress/host_ca_key. debug1: read PEM private key done: type RSA debug3: Not a RSA1 key file /u/home/rac/src/openssh/openssh-5.6p1/regress/cert_host_key_rsa. debug2: key_type_from_name: unknown key type '-----BEGIN' debug3: key_read: missing keytype debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug2: key_type_from_name: unknown key type '-----END' debug3: key_read: missing keytype do_ca_sign: unable to open "/u/home/rac/src/openssh/openssh-5.6p1/regress/cert_host_key_rsa" couldn't sign cert_host_key_rsa I haven't pursued beyond this since the cert- scripts are show stoppers. I've perused the mailing list archives and don't see anything similar. I've also tried building without optimization on the off chance it was something to do with gcc. Does anyone have any suggestions?
Hi Roger, On Tue, 31 Aug 2010, Roger Cornelius wrote:> Openssh 5.5p1 and 5.6p1 > SCO OpenServer 5.0.7 > > I've built various versions of openssh on SCO OSR5.0.7 over the years > without much of a problem. Beginning with 5.5p1 however, I have been > unable to get a working install. I'm building with gcc 2.95.3. The > build completes normally, but 'make tests' fails on several tests: >[snip] OpenServer 5 is strange. You'll probably find these tests will pass if you copy your tree to /usr/tmp and test there. I've had to do this for a long time on OpenServer 5. My normal build dir (for 5.6) is /usr/local/src/networking/openssh-5.6 testing there fails. ....... $ tail x.tst sftp commands: rmdir sftp commands: lmkdir sftp commands: lchdir rm: cannot remove . rm: cannot remove .. rm: .cvsignore not removed: Read-only file system (error 30) failed sftp commands gmake[1]: *** [t-exec] Error 1 gmake[1]: Leaving directory `/tmp_mnt/opt/src/networking/openssh/openssh-5.6/regress' gmake: *** [tests] Error 2 ....... But copying it all to /usr/tmp/openssh-5.6 gets me ...... $ tail x.tst2 certified user keys: principals key option principals auth authorized_keys expect success rsa_v00 certified user keys: principals key option no principals auth authorized_keys expect failure rsa certified user keys: principals key option no principals auth authorized_keys expect failure rsa_v00 certified user keys: user rsa connect wrong cert certified user keys: user dsa connect wrong cert certified user keys: user rsa_v00 connect wrong cert certified user keys: user dsa_v00 connect wrong cert ok certified user keys gmake[1]: Leaving directory `/tmp_mnt/opt/src/networking/openssh/openssh-5.6/regress' all tests passed ......> I haven't pursued beyond this since the cert- scripts are show stoppers. > I've perused the mailing list archives and don't see anything similar. > I've also tried building without optimization on the off chance it was > something to do with gcc. > > Does anyone have any suggestions?One other tip, on 5.0.7 you can put this CPPFLAGS="-Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf" in front of your configure command to use the native POSIX vsnprintf/snprintf instead of the ones in openbsd-compat. -- Tim Rice Multitalents (707) 887-1469 tim at multitalents.net