php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17521 Compile problems with ICAP extension.
Submitted: 2002-05-30 04:34 UTC Modified: 2002-06-15 23:18 UTC
From: derekm at hackunix dot org Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.2.1 OS: Heavily modified Red Hat 6.2
Private report: No CVE-ID: None
 [2002-05-30 04:34 UTC] derekm at hackunix dot org
I'm having problems compiling PHP 4 with the ICAP extension enabled.  I have the latest version on MCAL installed on my system (0.6).

'ext/icap/php_icap.c' attempts to #INCLUDE 'cal.h'--however, MCAL has no header file called 'cal.h'.  It does have 'cal_misc.h' and 'mcal.h', but not 'cal.h'.  In /usr/local/include/mcal, I symlinked 'cal.h' to 'cal_misc.h', and ran 'make' again.  This time compilation of 'ext/icap/php_icap.c' successed.  However, a few files later, it tried to compile something with '-licap'.  MCAL no longer has a seperate libicap.  I found that '-licap' was coming from $ICAP_SHARED_LIBADD in 'config_vars.mk'.  I changed '-licap' to '-lmcal' and this second file compiled without errors.

I think this generally means that the ICAP extension must be pretty out of date.  Maybe somebody should do some work on it.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-30 07:20 UTC] sniper@php.net
Why aren't you using mcal extension ??
(what is icap anyway? :)


 [2002-05-30 13:52 UTC] derekm at hackunix dot org
I have both the MCAL and the ICAP extensions turned on.  Mostly just because I can.  ICAP is to calendars as IMAP is to email.  I do a lil' bit of development work for the Horde Project, and I thought maybe Kronolith (Horde's calendar application) might be able to make use of the ICAP extension.
 [2002-06-15 23:18 UTC] sniper@php.net
Just FYI: You don't need ext/icap. MCAL extension is enough.

http://www.php.net/manual/en/ref.mcal.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 28 01:01:27 2024 UTC