php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21794 Error Output for sanity check
Submitted: 2003-01-21 07:57 UTC Modified: 2003-03-27 06:42 UTC
Votes:4
Avg. Score:4.8 ± 0.4
Reproduced:4 of 4 (100.0%)
Same Version:4 (100.0%)
Same OS:3 (75.0%)
From: jacques at jacques dot eng dot br Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.1 OS: RedHat 8.0
Private report: No CVE-ID: None
 [2003-01-21 07:57 UTC] jacques at jacques dot eng dot br
[root@babe ~/work/apache_1.3.27]# ./configure --prefix=/usr/local/etc/httpd --activate-module=src/modules/php4/libphp4.a
Configuring for Apache, Version 1.3.27
 + using installation path layout: Apache (config.layout)
 + activated php4 module (modules/php4/libphp4.a)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
 + configured for Linux platform
 + setting C compiler to gcc
 + setting C pre-processor to gcc -E
 + checking for system header files
 + adding selected modules
    o php4_module uses ConfigStart/End
 + using builtin Expat
 + checking sizeof various data types
 + doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed.  The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

======== Error Output for sanity check ========
cd ..; gcc  -DLINUX=22 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`     -o helpers/dummy helpers/dummy.c   -Wl,-rpath,/usr/X11R6/lib -Wl,-rpath,/root/work/swf/lib  -rdynamic -L/usr/X11R6/lib -L/root/work/swf/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -export-symbols /root/work/php-4.3.0/sapi/apache/php.sym   -rdynamic -L/usr/X11R6/lib -L/root/work/swf/lib   -lswf -lt1 -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lbz2 -lz -lcrypt -lresolv -lm -ldl -lnsl  -lcrypt   -lm -lcrypt
/usr/bin/ld:/root/work/php-4.3.0/sapi/apache/php.sym: file format not recognized; treating as linker script
/usr/bin/ld:/root/work/php-4.3.0/sapi/apache/php.sym:2: parse error
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
============= End of Error Report =============

OBS: I used the next comand line to compile php:
[root@babe ~/work/apache_1.3.27]# ./configure --with-apache=../apache_1.3.27 --with-gd --with-mysql --enable-versioning --enable-track-vars --enable-force-cgi-redirect --enable-discard-path --disable-short-tags --disable-display-source --enable-safe-mode --with-swf=../swf --enable-trans-sid --enable-calendar --enable-ftp --with-bz2 --enable-sockets --enable-inline-optimization --enable-memory-limit --with-xpm-dir=/usr/X11R6 --with-jpeg-dir=/usr --with-png-dir=/usr --with-ttf --with-zlib --with-zlib-dir=/usr --with-freetype-dir=/usr/include/freetype2 --with-t1lib

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-23 10:36 UTC] sniper@php.net
Try this configure line for PHP:

./configure --with-apache=../apache_1.3.27 --disable-all

 [2003-02-04 08:07 UTC] jacques at jacques dot eng dot br
But I have no error compiling PHP.. the error is when I compile apache after installing PHP.
 [2003-02-04 11:01 UTC] sniper@php.net
Yes, I know. Please try what I asked.

 [2003-02-19 04:40 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2003-03-26 10:55 UTC] jacques at jacques dot eng dot br
Sorry my later answer..
I changed to php 4.3.1 and I got same error, so I did what you ask for:

[root@babe ~/work/php-4.3.1]# ./configure -with-apache=../apache_1.3.27 --disable-all

I did make with no errors, but when I did make install a got an error:

[root@babe ~/work/php-4.3.1]# make install
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP SAPI module
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment:      /usr/local/lib/php/

Fatal error: Call to undefined function:  preg_split() in /root/work/php-4.3.1/pear/System.php on line 64

Fatal error: Call to undefined function:  preg_split() in /root/work/php-4.3.1/pear/System.php on line 64
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
  program: phpextdist
[root@babe ~/work/php-4.3.1]#

I'm using:
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
on an 2.4.18-27.8.0 kernel system.

thanks for your help.
 [2003-03-27 06:42 UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Aug 17 13:01:28 2024 UTC