Wouldn't the best approach simple be to define the function as a macro, eg

#define memmove(a,b,c) bcopy(b,a,c)?

-----Original Message-----
From: Charles Levert [mailto:[EMAIL PROTECTED]]
Sent: Monday, 17 July 2000 9:43
To: [EMAIL PROTECTED]
Subject: [openssl-0.9.5a] use of library functions missing on SunOS
4.1.4


Hi.

These functions

        memmove
        strtoul
        strerror,

used in OpenSSL, are not available on SunOS 4.1.4.  From my
experience, the best technique by far for building a library on such
systems is, for each missing function, to replace all calls to that
function by calls to a replacement function with another name to be
included in the library, e.g., ssl_strerror.  (Putting a replacement
function with the same name causes problems when several libraries
that do this end up later on being linked together.  Not putting any
replacement function at all moves the problem to each application that
uses the library and that problem is then highly unexpected.)

Uses of the missing functions seem to be in the following files:

        memmove
                crypto/bio/bss_rtcp.c
                crypto/evp/bio_ok.c
                crypto/stack/stack.c
                ssl/s3_pkt.c

                [ bcopy is available ]

        strtoul
                crypto/asn1/a_strnid.c

                [ strtol is available, but not the same ]

        strerror
                crypto/err/err.c

                [ sys_nerr and sys_errlist are available ]


Charles


========================================================================
OpenSSL version:  0.9.5a
Last change:      Make sure _lrotl and _lrotr are only used with MSVC....
Options:          --prefix=/usr/local --openssldir=/usr/local/etc/ssl
OS (uname):       SunOS faucon 4.1.4 1 sun4m
OS (config):      sun4m-sun-sunos4
Target (default): sunos-gcc
Target:           sunos-gcc
Compiler:         gcc version 2.7.2.2
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to