php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5668 Can't find the include files when...
Submitted: 2000-07-19 02:04 UTC Modified: 2000-08-01 01:11 UTC
From: shawn dot m at microcore dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.1pl2 OS: TurnoLinux 4.0 (TurboCluster)
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: shawn dot m at microcore dot net
New email:
PHP Version: OS:

 

 [2000-07-19 02:04 UTC] shawn dot m at microcore dot net
Ok... I'm trying to install PHP 4 (Latest version), crashes HTTPD when installed. Figured it needed the latest version of Apache Web Server, went downloaded it, installed it (compiled then installed)

I try making the DSO and static module, both times, same thing.  I would like a static module, but here's what I'm getting...

[root@centri src]# ./Configure 
Using config file: Configuration
Creating Makefile
 + configured for Linux platform
 + setting C compiler to gcc
 + setting C pre-processor to gcc -E
 + checking for system header files
 + adding selected modules
 + checking sizeof various data types
 + doing sanity check on compiler and options
Creating Makefile in support
Creating Makefile in regex
Creating Makefile in os/unix
Creating Makefile in ap
Creating Makefile in main
Creating Makefile in lib/expat-lite
Creating Makefile in modules/standard
Creating Makefile in modules/php4

=====================

Great.. Everything looks great!! I'm happy.. Now let's run a make...

Output from  'make'
=============================
<=== modules/standard
===> modules/php4
gcc -c  -I../../os/unix -I../../include   -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED   mod_php4.c
mod_php4.c:28: zend.h: No such file or directory
mod_php4.c:29: php.h: No such file or directory
mod_php4.c:30: php_variables.h: No such file or directory
mod_php4.c:31: SAPI.h: No such file or directory
mod_php4.c:48: php_ini.h: No such file or directory
mod_php4.c:49: php_globals.h: No such file or directory
mod_php4.c:50: SAPI.h: No such file or directory
mod_php4.c:51: php_main.h: No such file or directory
mod_php4.c:53: zend_compile.h: No such file or directory
mod_php4.c:54: zend_execute.h: No such file or directory
mod_php4.c:55: zend_highlight.h: No such file or directory
mod_php4.c:56: zend_indent.h: No such file or directory
mod_php4.c:58: ext/standard/php_standard.h: No such file or directory
make[2]: *** [mod_php4.o] Error 1
make[1]: *** [all] Error 1
make: *** [subdirs] Error 1
==============================


Crap.. what did I do wrong?  There are files under the modules/php4 directory, but the include (header) files are not there.

I've been working on this for about a week now, and I've read every FAQ and bug report that I could.  This is my last hope..  Now I just want some 12 year old to point out to me what I'm doing wrong. (But you don't have to be 12 to reply and give help to me.. :)  )

Thanks everyone!! :)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-31 14:58 UTC] sas@php.net
Don't remove the php-4.xx directory before compiling the Apache module. That won't work (the header files are located there).
 [2000-08-01 01:11 UTC] shawn dot m at microcore dot net
I didn't remove the directories, they are all still there.
 [2002-12-14 02:09 UTC] dcadenas at ucu dot edu dot uy
I had the same problem. And I didn't remove my php folder.
 [2002-12-30 20:40 UTC] dcadenas at ucu dot edu dot uy
My problem disappeared when I wrote exactly "libphp4.a" when configuring
apache (the second time you call ./configure)

# ./configure --prefix=/usr/local/apache \
    --enable-module=rewrite \
    --activate-module=src/modules/php4/libphp4.a

At first I didn't use libphp4.a because that file doesn't exists, so I thought that was an error but it isn't.
I hope this is useful
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 11 14:01:28 2024 UTC