Hi,

openssl-0.9.7e does not install on an AIX 5.1 system because of the
following errors:

make fails with
"fips_rand.c", line 59.9: 1506-236 (W) Macro name _XOPEN_SOURCE_EXTENDED
has been redefined.

The definition of _XOPEN_SOURCE_EXTENDED in fips/rand/fips_rand.c should
be made conditional i.e

#ifndef _XOPEN_SOURCE_EXTENDED
#define _XOPEN_SOURCE_EXTENDED
#endif

make install for the fips component fails with

installing fips...
making install in fips/xxx...
/usr/bin/sh: 0403-057 Syntax error at line 1 : `;' is not expected.
make: 1254-004 The error code from the last command is 2.

All Makefiles are potentionaly invalid on systems using ksh (KornShell).
The construct
install:
        @if test -n "$(EXHEADER)"; then \
          for i in $(EXHEADER); \
          do  \
            (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
            chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
          done  \
        fi

If EXHEADER happens to be empty, the for statement reduces to "for i in;"
which is invalid syntax in ksh. (The test statement does not prevent the
parsing of the for statement). One possible fix would be

install:
        @SH_EXHEADER=$(EXHEADER) ; \
         if test -n "$$SH_EXHEADER" ; then \
          for i in $$SH_EXHEADER ; \
          do  \
            (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ; \
            chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i )
; \
          done  \
        fi

Please note that the problem potentionally also existed in previous
versions of openssl, fips just happens to be the first component with an
empty EXHEADER macro. So all Makefile should be corrected.

Kind regards
Paul

========================================================================
Paul Tedaldi                     |
Informatikdienste                |    Email:  [EMAIL PROTECTED]
Universitaet Zuerich             |
Winterthurerstr. 190             |    Tel:    +41 (0)44 635 4523
CH-8057 Zuerich                  |    Fax:    +41 (0)44 635 4505
Switzerland                      |
========================================================================

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to