Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable OpenSSL #1

Closed
terrafrost opened this issue Oct 7, 2019 · 0 comments
Closed

enable OpenSSL #1

terrafrost opened this issue Oct 7, 2019 · 0 comments

Comments

@terrafrost
Copy link
Owner

In contrast to terrafrost/php4.4 I was never able to even get PHP to compile with OpenSSL support.

I tried it with OpenSSL 0.9.8x and at first was getting this error:

ext/openssl/openssl.o: In function `zif_openssl_sign':
/usr/local/src/php-build/php-5.0.5/ext/openssl/openssl.c:2890: undefined reference to `EVP_md2'
collect2: error: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1

So I created a patchfile to fix it:

http://pastebin.com/raw/U9CgJdZA

But then I started getting this error:

/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected ';' before '__s1_len'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: '__s1_len' undeclared (first use in this function)
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: '__s2_len' undeclared (first use in this function)
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'
/tmp/php-5.0.5/ext/openssl/openssl.c:3198:11: error: expected expression before 'const'

Here's line 3198:

match = strcmp(cnmatch, buf) == 0;

That line looks fine to me. I'm also not seeing __s1_len anywhere in the file. Not on line 3198 or on any other line for that matter.

https://museum.php.net/php5/php-5.0.5-Win32.zip uses OpenSSL 0.9.8.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant