I have two machines that we are having problems compiling version 4.3p2. Both machines are Solaris 8 and gcc 3.3.2 openssl 0.9.8a is installed on both machines as well. The first exhibits an error in log.h: 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:56: error: parm types given both in parmlist and separately ../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 *** Error code 1 make: Fatal error: Command failed for target `bsd-arc4random.o' Current working directory /nau/src/Net/openssh-4.3p2/openbsd-compat *** Error code 1 make: Fatal error: Command failed for target `openbsd-compat/libopenbsd-compat.a' The second machine exhibits a different problem: In file included from port-aix.c:32: /nau/share/include/buffer.h:72: error: redefinition of `BUF_MEM' /nau/share/include/openssl/ossl_typ.h:114: error: `BUF_MEM' previously declared here *** Error code 1 make: Fatal error: Command failed for target `port-aix.o' Current working directory /nau/src/Net/openssh-4.3p2/openbsd-compat *** Error code 1 make: Fatal error: Command failed for target `openbsd-compat/libopenbsd-compat.a' Any ideas on how to fix these? I've done a web search for both and have not found any good answers. Thanks! ************************************************************************** * William Wilson - Northern AZ Univ * william.wilson at nau.edu *** http://jan.ucc.nau.edu/~wew
William wrote:> I have two machines that we are having problems compiling version 4.3p2. > > Both machines are Solaris 8 and gcc 3.3.2 openssl 0.9.8a is installed on > both machines as well. > > The first exhibits an error in log.h: > > 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:56: error: parm types given both in parmlist and separately > ../log.h:56: error: parameter name omittedThis sounds like this: http://bugzilla.mindrot.org/show_bug.cgi?id=1013 which was a compiler installation problem (a bogus cdefs.h file on the system somewhere).> The second machine exhibits a different problem: > > In file included from port-aix.c:32: > /nau/share/include/buffer.h:72: error: redefinition of `BUF_MEM' > /nau/share/include/openssl/ossl_typ.h:114: error: `BUF_MEM' previously > declared here > *** Error code 1 > make: Fatal error: Command failed for target `port-aix.o' > Current working directory /nau/src/Net/openssh-4.3p2/openbsd-compat > *** Error code 1 > make: Fatal error: Command failed for target > `openbsd-compat/libopenbsd-compat.a'That looks like the compiler is picking up a wrong buffer.h from /nau/share/include. Presumably you added that in CPPFLAGS or CFLAGS? What options did you give configure? -- 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.