From schneider@blackfur.de  Tue Jun 10 04:41:50 2003
Return-Path: <schneider@blackfur.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C53C937B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 10 Jun 2003 04:41:50 -0700 (PDT)
Received: from mail.blackfur.net (mail.blackfur.net [217.115.133.225])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 791E743F93
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 10 Jun 2003 04:41:49 -0700 (PDT)
	(envelope-from schneider@blackfur.de)
Received: from blackfur.net (fux@localhost [127.0.0.1])
	by mail.blackfur.net (8.12.9/8.12.9) with ESMTP id h5ABflDW054912
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 10 Jun 2003 13:41:48 +0200 (CEST)
	(envelope-from schneidt@blackfur.net)
Received: (from schneidt@localhost)
	by blackfur.net (8.12.9/8.12.9/Submit) id h5ABflLU054911;
	Tue, 10 Jun 2003 13:41:47 +0200 (CEST)
	(envelope-from schneidt)
Message-Id: <200306101141.h5ABflLU054911@blackfur.net>
Date: Tue, 10 Jun 2003 13:41:47 +0200 (CEST)
From: Torsten Schneider <fbsd-bugs@tschneider.org>
Reply-To: Torsten Schneider <fbsd-bugs@tschneider.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: mod_php4 does not work with IMAP w/o SSL
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         53141
>Category:       ports
>Synopsis:       mod_php4 does not work with IMAP w/o SSL
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    nork
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 10 04:50:16 PDT 2003
>Closed-Date:    Thu Jun 19 22:26:04 PDT 2003
>Last-Modified:  Thu Jun 19 22:26:04 PDT 2003
>Originator:     Torsten Schneider
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
private
>Environment:
System: FreeBSD blackfur.net 4.8-STABLE FreeBSD 4.8-STABLE #29: Wed Jun 4 14:42:17 CEST 2003 schneidt@blackfur.net:/usr/src/sys/compile/BLACKFUR i386

>Description:

The www/mod_php4 port does not work if the installed IMAP c-client does
not contain IMAP/SSL-Support. It is normally not neccessary to have
SSL enabled if the only accessed host is localhost.

After restarting apache the symbol 'ssl_onceonlyinit' is not found.

>How-To-Repeat:

Just install it as described above.

>Fix:

There should be the possibility to install this port without having
an SSL-enabled c-client.

>Release-Note:
>Audit-Trail:

From: Paulius Bulotas <paulius@kaktusas.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc: fbsd-bugs@tschneider.org
Subject: Re: ports/53141: mod_php4 does not work with IMAP w/o SSL
Date: Sat, 14 Jun 2003 22:00:15 +0300

 Hi,
 
 I've been bitten by this too ;)
 You could use the following diff, or use the same define as cclient uses,
 WITHOUT_SSL instead of WITHOUT_IMAP_SSL.
 
 --- lang/php4/Makefile.orig       Sat Jun 14 18:54:03 2003
 +++ lang/php4/Makefile    Sat Jun 14 18:55:06 2003
 @@ -311,7 +311,11 @@
  
  .if defined(WITH_IMAP)
  LIB_DEPENDS+=  c-client4.8:${PORTSDIR}/mail/cclient
 +.if defined(WITHOUT_IMAP_SSL)
 +CONFIGURE_ARGS+=--with-imap=${LOCALBASE}
 +.else
  CONFIGURE_ARGS+=--with-imap=${LOCALBASE} --with-imap-ssl=${LOCALBASE}
 +.endif
  .endif
  
  .if defined(WITH_INTERBASE)

From: Paulius Bulotas <paulius@kaktusas.org>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: sysadmin@alexdupre.com
Subject: Re: ports/53141: mod_php4 does not work with IMAP w/o SSL
Date: Sun, 15 Jun 2003 00:39:05 +0300

 Well, the practically correct but large ;) fix for this IMO would be below.
 The idea is to be prepared to build cclient non-interactively with or
 without SSL and with existing cclient installation.
 
 --- lang/php4/Makefile       Sat Jun  7 20:45:10 2003
 +++ lang/php4/Makefile    Sat Jun 14 21:33:46 2003
 @@ -311,7 +311,20 @@
  
  .if defined(WITH_IMAP)
  LIB_DEPENDS+=  c-client4.8:${PORTSDIR}/mail/cclient
 +.if !exists(${LOCALBASE}/lib/libc-client4.so)
 +.if defined(WITHOUT_SSL)
 +CONFIGURE_ARGS+=--with-imap=${LOCALBASE}
 +.else
  CONFIGURE_ARGS+=--with-imap=${LOCALBASE} --with-imap-ssl=${LOCALBASE}
 +.endif
 +.else
 +WITH_IMAP_SSL!=/usr/bin/strings ${LOCALBASE}/lib/libc-client4.so | ${GREP} ssl_onceonlyinit || ${TRUE}
 +.if defined(WITH_IMAP_SSL) && empty(WITH_IMAP_SSL)
 +CONFIGURE_ARGS+=--with-imap=${LOCALBASE}
 +.else
 +CONFIGURE_ARGS+=--with-imap=${LOCALBASE} --with-imap-ssl=${LOCALBASE}
 +.endif
 +.endif
  .endif
  
  .if defined(WITH_INTERBASE)
 
State-Changed-From-To: open->analyzed 
State-Changed-By: nork 
State-Changed-When: Tue Jun 17 09:54:08 PDT 2003 
State-Changed-Why:  
I'm waiting for maintainer's response. 


Responsible-Changed-From-To: freebsd-ports-bugs->nork 
Responsible-Changed-By: nork 
Responsible-Changed-When: Tue Jun 17 09:54:08 PDT 2003 
Responsible-Changed-Why:  
I'll handle this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53141 
State-Changed-From-To: analyzed->closed 
State-Changed-By: nork 
State-Changed-When: Thu Jun 19 22:25:50 PDT 2003 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53141 
>Unformatted:
