ports/71754: php4 modules do not include functions which requires openssl

Ilya Pizik polzun at scar.jinr.ru
Wed Sep 15 08:00:54 UTC 2004


>Number:         71754
>Category:       ports
>Synopsis:       php4 modules do not include functions which requires openssl
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 15 08:00:53 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Ilya Pizik
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
Joint Institute for Nuclear Research
>Environment:
System: FreeBSD scar.jinr.ru 4.10-STABLE FreeBSD 4.10-STABLE #12: Thu Jul 22 11:16:54 MSD 2004 root at scar.jinr.ru:/usr/obj/usr/src/sys/SCAR i386

>Description:
	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.
>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")  
>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)

--- Makefile    Mon Jul 19 12:05:40 2004
+++ Makefile.ssl        Wed Sep 15 11:24:57 2004
@@ -12,3 +12,6 @@
 PKGNAMESUFFIX=	-ftp

+LIBS+=		-lssl -lcrypto
+CFLAGS+=	-DHAVE_OPENSSL_EXT
+
 .include "${MASTERDIR}/Makefile"
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list