|  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: Assigned:
Status: Not a bug Package: APC (PECL)
PHP Version: 4.3.10 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
New email:
PHP Version: OS:


 [2005-02-21 05:28 UTC]
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-21 11:13 UTC]
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: Sun May 26 18:01:33 2024 UTC