I am trying to compile OpenSSH 4.0p1 on a new Solaris 10 system using the OpenSSL that comes w/ the OS (0.9.7d) as well as MIT Krb5 1.4.1 (for various reasons we are not using Sun's Krb5 implementation): ./configure --prefix=/usr/local --with-kerberos5=/usr/local/krb5 --with-ssl-dir=/usr/sfw And it looks to be bombing here (adding in random support?): -=- gmake[1]: Entering directory `/var/tmp/openssh-4.0p1/openbsd-compat' gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I.. -I. -I./.. -I/usr/sfw/include -I/usr/local/krb5/include -DHAVE_CONFIG_H -c bsd-arc4random.c In file included from bsd-arc4random.c:18: ../log.h: In function `fatal': ../log.h:56: warning: empty declaration ../log.h:65: error: parse error before "volatile" ../log.h:65: error: old-style parameter declarations in prototyped function definition ../log.h:56: error: parameter name omitted bsd-arc4random.c:20: error: `rcsid' undeclared (first use in this function) bsd-arc4random.c:20: error: (Each undeclared identifier is reported only once bsd-arc4random.c:20: error: for each function it appears in.) bsd-arc4random.c:20: warning: left-hand operand of comma expression has no effect bsd-arc4random.c:20: error: parse error before '}' token gmake[1]: *** [bsd-arc4random.o] Error 1 gmake[1]: Leaving directory `/var/tmp/openssh-4.0p1/openbsd-compat' gmake: *** [openbsd-compat/libopenbsd-compat.a] Error 2 -=- Any possible solutions to work around this? (I see via google this has come up w/ someone compiling 3.9p1 on Solaris 8, using the OpenSSL package from SunFreeware.com) Best WIshes - Peter -- Peter_Losher at isc.org | ISC | OpenPGP 0xE8048D08 | "The bits must flow" -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20050521/0f0ac15f/attachment.bin
Peter Losher wrote:> I am trying to compile OpenSSH 4.0p1 on a new Solaris 10 system using the > OpenSSL that comes w/ the OS (0.9.7d)That version of OpenSSL may not work since the one that ships with Solaris is missing some AES functions.> as well as MIT Krb5 1.4.1 (for various > reasons we are not using Sun's Krb5 implementation):[...]> gmake[1]: Entering directory `/var/tmp/openssh-4.0p1/openbsd-compat' > gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I.. -I. -I./.. > -I/usr/sfw/include -I/usr/local/krb5/include -DHAVE_CONFIG_H -c > bsd-arc4random.c > In file included from bsd-arc4random.c:18: > ../log.h: In function `fatal': > ../log.h:56: warning: empty declaration > ../log.h:65: error: parse error before "volatile" > ../log.h:65: error: old-style parameter declarations in prototyped function > definitionSounds like this, which turned out to be a compiler installation problem: http://bugzilla.mindrot.org/show_bug.cgi?id=1013 -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
Darren Tucker wrote:> That version of OpenSSL may not work since the one that ships with > Solaris is missing some AES functions.Forgot to add: apparently if you install the "Solaris Data Encryption Supplement" (SUNWcry and SUNWcryr packages) then it will restore the missing functions. -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
>>Darren Tucker wrote: >> >> >>>That version of OpenSSL may not work since the one that ships with >>>Solaris is missing some AES functions. >>> >>> >>Forgot to add: apparently if you install the "Solaris Data Encryption >>Supplement" (SUNWcry and SUNWcryr packages) then it will restore the >>missing functions. >> >> > >tried that: > >-=- >% pkginfo | grep SUNWcry >system SUNWcry Crypt Utilities >system SUNWcryr Solaris Root Crypto >-=- > >... and it still blows up in the same place... > >-=- >(cd openbsd-compat && gmake) >gmake[1]: Entering directory `/var/tmp/openssh-4.1p1/openbsd-compat' >gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I.. -I. -I./.. >-I/usr/sfw/include -I/usr/local/krb5/include -DHAVE_CONFIG_H -c >bsd-arc4random.c >In file included from bsd-arc4random.c:18: >../log.h: In function `fatal': >../log.h:56: warning: empty declaration >../log.h:65: error: parse error before "volatile" >../log.h:65: error: old-style parameter declarations in prototyped function >definition >../log.h:56: error: parameter name omitted >bsd-arc4random.c:20: error: `rcsid' undeclared (first use in this function) >bsd-arc4random.c:20: error: (Each undeclared identifier is reported only once >bsd-arc4random.c:20: error: for each function it appears in.) >bsd-arc4random.c:20: warning: left-hand operand of comma expression has no >effect >bsd-arc4random.c:20: error: parse error before '}' token >gmake[1]: *** [bsd-arc4random.o] Error 1 >gmake[1]: Leaving directory `/var/tmp/openssh-4.1p1/openbsd-compat' >gmake: *** [openbsd-compat/libopenbsd-compat.a] Error 2 >-=- > >Note that I am calling up the ssl bits from /opt/sfw where the version of >OpenSSH that comes w/ Solaris resides. (attempts to compile OpenSSL from >source have been unsuccessful...) > >Has anyone successfully compiled 4.1p1 on a Solaris 10 system? > >-Peter > >I have compiled 4.0p1 on Solaris 10 (sparc). There was a problem with OpenSSL 0.9.7g at the time: http://www.mail-archive.com/openssl-dev at openssl.org/msg18853.html I ended up downloading openssl-0.9.7-stable-SNAP-20050317.tar.gz and building that instead. -- ******************************************************* Quellyn L. Snead UNIX Effort Team ( unixeffort at lanl.gov ) CCN-1 Central Services and Development Team Los Alamos National Laboratory (505) 667-4185 *******************************************************