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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: derick@php.net
New email:
PHP Version: OS:

 

 [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: Thu Apr 25 10:01:29 2024 UTC