|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
24 + 36 = ?
Subscribe to this entry?

 [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-2021 The PHP Group
All rights reserved.
Last updated: Fri Jul 30 07:01:23 2021 UTC