ID:               23850
 Updated by:       [EMAIL PROTECTED]
 Reported By:      B dot Candler at pobox dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Compile Warning
 Operating System: FreeBSD-4.8
 PHP Version:      4.3.1
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2003-05-28 08:01:03] B dot Candler at pobox dot com

If there was a problem running APXS at configure time, it is re-run to
generate a visible error message. However the script forgets to add the
correct command-line parameters; as a result you always get the default
APXS usage page instead of a report of what the error actually was.

The following patch fixes it:

--- php-4.3.1/sapi/apache/config.m4.orig        Thu Jul 25 19:37:16
2002
+++ php-4.3.1/sapi/apache/config.m4     Wed May 28 13:51:44 2003
@@ -26,7 +26,7 @@
     AC_MSG_RESULT([2.  Apache was not compiled with DSO support
(--enable-module=so);])
     AC_MSG_RESULT([3.  'apxs' is not in your path.  Try to use
--with-apxs=/path/to/apxs])
     AC_MSG_RESULT([The output of $APXS follows])
-    $APXS
+    $APXS -q CFLAGS
     AC_MSG_ERROR([Aborting]) 
   fi 

Without this patch, all you see is:
Usage: apxs -g [-S <var>=<val>] -n <modname>
       apxs -q [-S <var>=<val>] <query> ...
       apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
               [-I <incdir>] [-L <libdir>] [-l <libname>]
[-Wc,<flags>]
               [-Wl,<flags>] <files> ...
       apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
       apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...

which is not very helpful.

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


-- 
Edit this bug report at http://bugs.php.net/?id=23850&edit=1

Reply via email to