Bug #2658: error while compiling PHP as apache module
| From: | Ramil dot Israfilov at ksu dot ru | Date: | Wed, 03 Nov 1999 16:55:35 +0000 |
| Subject: | Bug #2658: error while compiling PHP as apache module | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-12099@lists.php.net to get a copy of this message | ||
From: Ramil.Israfilov@ksu.ru
Operating system: AIX 4.2.1
PHP version: 3.0.12
PHP Bug Type: Compile Failure
Bug description: error while compiling PHP as apache module
Hello All!
I'm trying to install PHP 3.0.12 as Apache module with Russian Apache 1.3.9 PL28.20 and gcc
2.8.1
PHP compiled fine with such options:
/configure --with-apache=../apache_1.3.9rusPL28.20 --with-mod_charset=yes --with-gd=no
--with-oracle=/oracle/app/oracle/product/8.0.4 --with-mysql --with-msql=/var/db/Hughes
--with-system-regex=yes --enable-debug=no
Then I'm trying to configure apache with such options:
./configure --activate-module=src/modules/php3/libphp3.a
As described in FAQ I'm change the 2140 line in src/Configure to:
if ./helpers/TestCompile -v sanity; then
and receive such message
gcc -DAIX=42 -U__STR__ -DAIX_BIND_PROCESSOR -DRUSSIAN_APACHE -DUSE_EXPAT -I./lib/expat-lite
./apaci -lm helpers/dummy.c -o helpers/dummy
-Wl,-rpath,/oracle/app/oracle/product/8.0.4/lib -Wl,-rpath,/usr/local/lib/mysql
-Wl,-rpath,/var/db/Hughes/lib -L/oracle/app/oracle/product/8.0.4/lib -L/usr/local/lib/mysql
-lmysqlclient -L/var/db/Hughes/lib -lmsql -Lmodules/php3 -L../modules/php3 -L../../modules/php3
-lmodphp3 -lclntsh -lpsa -lcore4 -lnlsrtl3 -lclntsh /lib/crt0_r.o -lc_r -lpthreads -lodm -lm
-nostdlib /lib/crt0_r.o /usr/lib/libpthreads.a /usr/lib/libc_r.a -lgcc -lm -ldl
-lnsl
collect2: ld returned 1 exit status
/tmp/ccFm6Mqa1.o(.pr+0x6a):dummy.c: relocation truncated to fit: 0x03 LC..0
make: *** [dummy] Error 1
+ doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed. This is most likely because your C compiler
** is not ANSI. Apache requires an ANSI C Compiler, such
** as gcc. The above error message from your compiler
** will also provide a clue.
Aborting!
Any comments and suggestions for this bug