php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1326 Fails to compile with apache
Submitted: 1999-04-19 01:25 UTC Modified: 1999-04-19 04:43 UTC
From: mdd9 at cornell dot edu Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.5 OS: Red Hat 5.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mdd9 at cornell dot edu
New email:
PHP Version: OS:

 

 [1999-04-19 01:25 UTC] mdd9 at cornell dot edu
Compile Error... I know this one has been addressed already, but I just can't get the thing to work!

httpd.h etc.... can't be found!  I've tried every possible path configuration... what could be going on here.


Error:
or.o
gcc -I. -DPOSIX_MISTAKE -O2 -m486 -fno-strength-reduce   -c regfree.c -o regfree.o
rm -f libregex.a
ar cr libregex.a regcomp.o regexec.o regerror.o regfree.o
ranlib libregex.a
make: Leaving directory `/usr/src/redhat/BUILD/php-3.0.5/regex'
+ make
gcc -O2 -m486 -fno-strength-reduce -fpic  -I. -I.   -I      -I/usr/include/mysql                -c language-parser.tab.c -o language-parser.tab.o
In file included from language-parser.y:56:
php.h:183: ap_config.h: No such file or directory
php.h:189: ap_compat.h: No such file or directory
php.h:191: httpd.h: No such file or directory
php.h:192: http_main.h: No such file or directory
php.h:193: http_core.h: No such file or directory
php.h:194: http_request.h: No such file or directory
php.h:195: http_protocol.h: No such file or directory
php.h:196: http_config.h: No such file or directory
php.h:197: http_log.h: No such file or directory

Dir:

usr/include/apache:

[root@Speck apache]# ls
alloc.h              explain.h            httpd.h
ap.h                 fnmatch.h            multithread.h
ap_compat.h          hsregex.h            os.h
ap_config.h          http_conf_globals.h  rfc1413.h
ap_config_auto.h     http_config.h        scoreboard.h
ap_ctype.h           http_core.h          util_date.h
ap_md5.h             http_log.h           util_md5.h
ap_mmn.h             http_main.h          util_script.h
buff.h               http_protocol.h      util_uri.h
compat.h             http_request.h
conf.h               http_vhost.h



Speck file:

%build
CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s \
./configure \
        --with-apxs \
        --prefix=/usr \
        --with-gd \
        --with-freetype \
        --with-zlib \
        --with-dbase \
        --with-filepro \
        --with-mysql=/usr \
        --with-apache=/usr/include/ \
        --with-config-file-path=/etc/httpd/conf \
        --disable-debug \
        --enable-magic-quotes \
        --enable-debugger \
        --enable-bcmath \
        --enable-track-vars

Help... I beg of you.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-04-19 04:43 UTC] rasmus
Don't use --with-apxs and --with-apache together.  One or the other.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 21 00:01:27 2024 UTC