From:             [EMAIL PROTECTED]
Operating system: redhat 6.2 i386
PHP version:      4.3.0
PHP Bug Type:     Compile Failure
Bug description:  --with-openssl and openssl 0.95 does not buid: ERR_error_string_n 
missing.

not really important, just in case somebody else has the
same trouble.
compiling 4.3.0 with openssl < 0.96 leads to an undefined
reference to ERR_error_string_n, here is the small fix.

--- main/network.c.orig Sat Dec 28 00:15:15 2002
+++ main/network.c      Sat Dec 28 00:14:34 2002
@@ -50,6 +50,7 @@
 #endif
 
 #ifdef HAVE_OPENSSL_EXT
+#include <openssl/crypto.h>
 #include <openssl/err.h>
 #endif
 
@@ -809,10 +810,18 @@
                                if (ebuf) {
                                        esbuf[0] = '\n';
                                        esbuf[1] = '\0';
+#if OPENSSL_VERSION_NUMBER < 0x0090600fL
+                                       ERR_error_string(code, esbuf +
1);
+#else
                                        ERR_error_string_n(code, esbuf +
1, sizeof(esbuf) - 2);
+#endif
                                } else {
                                        esbuf[0] = '\0';
+#if OPENSSL_VERSION_NUMBER < 0x0090600fL
+                                       ERR_error_string(code, esbuf);
+#else
                                        ERR_error_string_n(code, esbuf,
sizeof(esbuf) - 1);
+#endif
                                }
                                code = strlen(esbuf);
                                esbuf[code] = '\0';

-- 
Edit bug report at http://bugs.php.net/?id=21240&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21240&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21240&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21240&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21240&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21240&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21240&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21240&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21240&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21240&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21240&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21240&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21240&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21240&r=isapi

Reply via email to