| Summary: | php4 modules do not include functions which requires openssl | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Ilya Pizik <polzun> |
| Component: | Individual Port(s) | Assignee: | Alex Dupre <ale> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: freebsd-ports-bugs->ale Over to maintainer. This problem also breaks using TLS with IMAP-UW from within Squirrelmail. It would be good if openssl was statically compiled back into PHP instead of being and extension. Thank You, Matt Pusateri See other PR: PATCH] php4 openssl building static http://www.freebsd.org/cgi/query-pr.cgi?pr=72275 [ODiP] == Dmitry Grigorovich State Changed From-To: open->closed Problem fixed, thanks for submission. |
When php4 port has been splited, some functions wich requires openssl were lost. It so because of #ifdef HAVE_OPENSSL_EXT directive in sources. F.e. ext/ftp, ext/standard, main and sapi/apache directiories contian files having such directive. Fix: Use CFLAGS and LIBS directives in Makefile of propper modules. (patch fot /usr/ports/ftp/php4-ftp/Makefile included) It is useful to check at compile time if php4-openssl is present (f.e. from /var/db/ports/php4-extensions/options) +LIBS+= -lssl -lcrypto +CFLAGS+= -DHAVE_OPENSSL_EXT + .include "${MASTERDIR}/Makefile"--JAhCkENAxrmhhgJMjRcD6OK1b7l50MtOLdrCwCI9RGZxa5v1 Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- Makefile Mon Jul 19 12:05:40 2004 +++ Makefile.ssl Wed Sep 15 11:24:57 2004 @@ -12,3 +12,6 @@ PKGNAMESUFFIX= -ftp How-To-Repeat: Compile lang/php4 (or www/mod_php4), security/php4-openssl and ftp/php4-ftp and try to use ftp_ssl_connect (or use "srtings /usr/local/lib/php/20020429/ftp.so|grep ssl")