Bug 71754

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   

Description Ilya Pizik 2004-09-15 09:00:53 UTC
	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")
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2004-09-16 06:34:34 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer.
Comment 2 flatfender 2004-09-17 21:14:08 UTC
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
Comment 3 Dmitry A Grigorovich 2004-10-03 09:03:53 UTC
See other PR: PATCH] php4 openssl building static

http://www.freebsd.org/cgi/query-pr.cgi?pr=72275

[ODiP] == Dmitry Grigorovich
Comment 4 Alex Dupre freebsd_committer freebsd_triage 2005-03-14 14:44:25 UTC
State Changed
From-To: open->closed

Problem fixed, thanks for submission.