Bug 53141 - mod_php4 does not work with IMAP w/o SSL
Summary: mod_php4 does not work with IMAP w/o SSL
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Norikatsu Shigemura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-10 12:50 UTC by Torsten Schneider
Modified: 2003-06-20 06:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Schneider 2003-06-10 12:50:16 UTC
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.

Fix: 

There should be the possibility to install this port without having
an SSL-enabled c-client.
How-To-Repeat: 
Just install it as described above.
Comment 1 Paulius Bulotas 2003-06-14 20:00:15 UTC
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)
Comment 2 Paulius Bulotas 2003-06-14 22:39:05 UTC
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)
Comment 3 Norikatsu Shigemura freebsd_committer freebsd_triage 2003-06-17 17:54:08 UTC
State Changed
From-To: open->analyzed

I'm waiting for maintainer's response. 


Comment 4 Norikatsu Shigemura freebsd_committer freebsd_triage 2003-06-17 17:54:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->nork

I'll handle this.
Comment 5 Norikatsu Shigemura freebsd_committer freebsd_triage 2003-06-20 06:25:50 UTC
State Changed
From-To: analyzed->closed

Committed, thanks!