Subject: PHP3 + Apache 1.3.9
To: None <netbsd-users@netbsd.org>
From: Emre <emre@iris.vsrc.uab.edu>
List: netbsd-users
Date: 12/16/1999 22:28:17
Hi Folks,
I tried to build Apache with mod_php the other day. The box is a fresh
installed NetBSD 1.4.1 (release). I went to
http://www.php.net/manual/install-unix.php3 and read the instructions how
to do a quick install. PHP3 builds just fine, but unfortunately when I
attempt to build Apache it complains about my compiler not being ansi.
bash-2.03# cc -v
Using builtin specs.
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
It is though. So I said screw it, and looked for a different
alternative. I found the ap-php3 in the ports by accident. So I went
ahead and "make; make install"
It compiles Apache and some modules, but when it comes to php it does
this:
bash-2.03# make
===> Validating dependencies for ap-php-3.0.7
>> Checksum OK for php-3.0.7.tar.gz.
===> Extracting for ap-php-3.0.7
===> ap-php-3.0.7 depends on installed package: apache-1.3.* -
apache-1.3.9p0 found
===> ap-php-3.0.7 depends on installed package: gdbm-1.7.3 - gdbm-1.7.3
found
===> ap-php-3.0.7 depends on installed package: php-3.0.7 - php-3.0.7
found
===> ap-php-3.0.7 depends on installed package: perl-5.00404 -
perl-5.00404 found
===> Patching for ap-php-3.0.7
===> Applying NetBSD patches for ap-php-3.0.7
===> Configuring for ap-php-3.0.7
creating cache ./config.cache
checking whether build environment is sane... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for bison... bison -y
checking bison version... 1.28 (ok)
checking for gcc... cc -ansi
checking whether the C compiler (cc -ansi -O2 -Wl,-R/usr/pkg/lib
-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib) works... yes
checking whether the C compiler (cc -ansi -O2 -Wl,-R/usr/pkg/lib
-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib) is a
cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc -ansi accepts -g... yes
checking for ranlib... ranlib
checking whether cc -ansi and cc understand -c and -o together... yes
checking for perl... /usr/pkg/bin/perl
checking if compiler supports -R... yes
checking for sendmail... /usr/lib/sendmail
[............]
checking whether to enable short tags by default... yes
checking whether to enable the URL-aware fopen wrapper... yes
checking whether to enable System V semaphore support... yes
checking for union semun... yes
checking whether to enable System V shared memory support... yes
checking whether to enable displaying source support... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating build-defs.h
creating stamp-h
creating libphp3.module
creating doc/Makefile
creating doc/version.ent
creating doc/checkdoc
creating extra/gd/bdf2gdfont
creating regex/Makefile
creating dbase/Makefile
creating config.h
===> Building for ap-php-3.0.7
cc -ansi -O2 -I/usr/pkg/include -DPIC -fPIC -DPHP_INTERNAL_FUNCS
-I. -I. -I/usr/pkg/include/httpd -c language-parser.tab.c -o
language-parser.tab.o
In file included from language-parser.y:56:
php.h:148: syntax error before `/'
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
Does anyone know why the heck it isn't building? The pkgsrc.tar.gz is
fairly new (downloaded today)...
Thanks for any advice.
---
Emre Yildirim
DH/DSS KeyID: 0xA007E75C | RSA KeyID: 0xFD5FD2C7