php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56314 Compiling APC from CVS fails
Submitted: 2005-02-21 05:28 UTC Modified: 2005-02-21 11:13 UTC
From: derick@php.net Assigned:
Status: Not a bug Package: APC (PECL)
PHP Version: 4.3.10 OS: Linux
Private report: No CVE-ID: None
 [2005-02-21 05:28 UTC] derick@php.net
Description:
------------
Compiling APC from CVS (2005-02-21) fails with:

include/php/Zend -I/usr/local/php/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c /root/src/apc/apc_main.c  -fPIC -DPIC -o apc_main.lo

/root/src/apc/apc_main.c:31: httpd.h: No such file or directory

It seems that the correct (/usr/local/apache/include) path was not added to the Makefile. running configure as:

CFLAGS=/usr/local/apache/include ./configure 

made it work.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-21 11:13 UTC] rasmus@php.net
Uh, RTFM.  Quoting from the INSTALL file:

Temporary Apache httpd.h problem
--------------------------------
A better solution is on the way for this, but for now if you get an error
about not being able to find httpd.h, figure out where it is on your system
(if you don't have it, install the apache_dev package for your OS) and do:
  export CPPFLAGS=-I/usr/include/apache-1.3  (for bash on Debian)
  setenv CPPFLAGS -I/usr/include/apache-1.3  (for tsch on Debian)
and then re-run your configure script.

This dependency of APC on httpd.h will disappear in a future version of PHP
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 14:01:31 2024 UTC