php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33354 I recieve a warning on ./configure for no apparent reason
Submitted: 2005-06-15 16:36 UTC Modified: 2005-06-16 15:30 UTC
From: webmaster at pro-g dot co dot uk Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.0.4 OS: freeBSD 5.4-RELEASE
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: webmaster at pro-g dot co dot uk
New email:
PHP Version: OS:

 

 [2005-06-15 16:36 UTC] webmaster at pro-g dot co dot uk
Description:
------------
When trying to configure PHP as a shared apache module (./configure --with-apxs2=/usr/local/apache2/bin/apxs) it completes with a warning altering me to a problem, even with the most basic configuration.  It says to check the debug log, but there appears to be nothing wrong.  The output seems normal.




Reproduce code:
---------------
debug.log file:

CONFIGURE:   './configure' '--with-apxs2=/usr/local/apache2/bin/apxs'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:   
CXX:        
CXXFLAGS:   
INCLUDES:    -I/usr/local/include/libxml2 -I/usr/local/include
LDFLAGS:     -R/usr/local/lib -L/usr/local/lib
LIBS:       -lcrypt -lm  -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lcrypt
DLIBS:      
SAPI:       apache2handler
PHP_RPATHS:  /usr/local/lib
uname -a:   FreeBSD jack 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May  8 07:00:26 UTC 2005     root@portnoy.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

gcc -o conftest -g -O2   -R/usr

-------------

The output I get can be seen here: http://nopaste.php-q.net/141222

Expected result:
----------------
Should configure with no warning.

Actual result:
--------------
Displays warning.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-15 17:05 UTC] webmaster at pro-g dot co dot uk
Just found out the same thing also happens with no arguments; simply with the command ./configure
 [2005-06-15 19:20 UTC] sniper@php.net
The reason would be this:

checking for crypt in -lcrypt... yes
checking for standard DES crypt... Segmentation fault (core dumped)
checking for extended DES crypt... Segmentation fault (core dumped)
checking for MD5 crypt... Segmentation fault (core dumped)
checking for Blowfish crypt... Segmentation fault (core dumped)

If you can put the config.log online too, that'd help a lot.

 [2005-06-15 20:05 UTC] webmaster at pro-g dot co dot uk
Thanks for replying.

The config.log for the './configure' command alone can be found here: http://nopaste.php-q.net/141291
 [2005-06-16 12:45 UTC] sniper@php.net
This warning comes from all those crypt tests:
"cast to pointer from integer of different size"
Propably some 64bit issue. 

Please try the latest snapshot:

http://snaps.php.net/php5-latest.tar.gz



 [2005-06-16 14:44 UTC] webmaster at pro-g dot co dot uk
This appears to have worked (with both the --with-apxs2= switch too).  Well done!  

I assume it is safe to use this version in production?
 [2005-06-16 14:56 UTC] webmaster at pro-g dot co dot uk
I successfully ./configured with my additional extentions etc, but then went to actually compile and recieved syntax errors, as seen in the following log (scroll down):

http://nopaste.php-q.net/141421

Perhaps my GCC is out of date?
 [2005-06-16 15:13 UTC] sniper@php.net
Let's close this bug report as the configure is fixed.
5.1 is gonna be the next PHP 5 release. But it might not be yet stable enough for production use. (as seen with the compile failure with ext/date which was added recently :)

 [2005-06-16 15:30 UTC] webmaster at pro-g dot co dot uk
Right... so what can I do?  I require php5 on the server within the next week, but do not need your added features for 5.1...
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 12:01:33 2025 UTC